作业帮 > 英语 > 作业

MATLAB出错.The expression to the left of the equals sign is no

来源:学生作业帮 编辑:作业帮 分类:英语作业 时间:2024/05/20 17:26:42
MATLAB出错.The expression to the left of the equals sign is not a valid target for an assignment.
Pendulum30=load('Pendulum_30deg.dat.')
Pendulum60=load('Pendulum_60deg.dat.')
Pendulum90=load('Pendulum_90deg.dat.')
Time30=Pendulum30(:,1)
Angle30=Pendulum30(:,2)
Time60=Pendulum60(:,1)
Angle60=Pendulum60(:,2)
Time90=Pendulum90(:,1)
Angle90=Pendulum90(:,2)
GRAVITY_ACCEL=9.81
Length_P=1
Theta0_30=30
Theta0_60=60
Theta0_90=90
Time=0:0.01:3
Theta30=Theta0_30*cos((GRAVITY_ACCEL=9.81/Length_P)^(1/2)*Time)
Theta30=Theta0_30*cos((GRAVITY_ACCEL/Length_P)^(1/2)*Time) %里面多了个=9.81..