关于MATLAB,Error:Unexpected MATLAB operator.>> xita0=[15:15:75]'xita0 =1530456075length(xita0)ans =5>> x=[0:5:80]'x =05101520253035404550556065707580>> length(x)ans =17>> g=9.81;v0=28;y0=0;>> y=(tan(xita0)).*x.-(g/2.*v0.^2*cos.^2(xita0))*x.^2.+y0y=

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/17 22:30:43

关于MATLAB,Error:Unexpected MATLAB operator.>> xita0=[15:15:75]'xita0 =1530456075length(xita0)ans =5>> x=[0:5:80]'x =05101520253035404550556065707580>> length(x)ans =17>> g=9.81;v0=28;y0=0;>> y=(tan(xita0)).*x.-(g/2.*v0.^2*cos.^2(xita0))*x.^2.+y0y=
关于MATLAB,Error:Unexpected MATLAB operator.
>> xita0=[15:15:75]'
xita0 =
15
30
45
60
75
length(xita0)
ans =
5
>> x=[0:5:80]'
x =
0
5
10
15
20
25
30
35
40
45
50
55
60
65
70
75
80
>> length(x)
ans =
17
>> g=9.81;v0=28;y0=0;
>> y=(tan(xita0)).*x.-(g/2.*v0.^2*cos.^2(xita0))*x.^2.+y0
y=(tan(xita0)).*x.-(g/2.*v0.^2*cos.^2(xita0))*x.^2.+y0
Error:Unexpected MATLAB operator.
求修改

关于MATLAB,Error:Unexpected MATLAB operator.>> xita0=[15:15:75]'xita0 =1530456075length(xita0)ans =5>> x=[0:5:80]'x =05101520253035404550556065707580>> length(x)ans =17>> g=9.81;v0=28;y0=0;>> y=(tan(xita0)).*x.-(g/2.*v0.^2*cos.^2(xita0))*x.^2.+y0y=
y=(tan(xita0)).*x-(g/2.*v0.^2*cos(xita0).^2)*x.^2+y0
没有点加点减还少个乘号
xita0和x维数还不符合
cos后有错误是
cos.^2*(xita0)还是cos(xita0).^2