主题:请教:等号左边的表达式不是一个有效的赋值目标?
t=[0,0.2,0.4,0.8,1.2,1.6,2.2,2.4,2.6,3,3.4,3.8,4.6,6.2,6.6,7,7.6,8.8,9.4,10,10.8,11.8,12,12.4];
y=[0,0.1987,0.3894,0.7174,0.932,0.9996,0.8085,0.6755,0.5155,0.1411,-0.2555,-0.6119,-0.9937,-0.08309,0.3115,0.657,0.9679,0.5849,0.02478,-0.544,-0.9809,-0.6935,-0.5366,-0.1656];
for T=6:0.1:7
for i=1:length(t)
index = fix(2*(t(i)/T-fix(t(i)/T)));
if index = 0
??? if index = 0
|
Error: The expression to the left of the equals sign is not a valid target for an assignment.
请问:这是什么问题?清高手帮帮忙!
y=[0,0.1987,0.3894,0.7174,0.932,0.9996,0.8085,0.6755,0.5155,0.1411,-0.2555,-0.6119,-0.9937,-0.08309,0.3115,0.657,0.9679,0.5849,0.02478,-0.544,-0.9809,-0.6935,-0.5366,-0.1656];
for T=6:0.1:7
for i=1:length(t)
index = fix(2*(t(i)/T-fix(t(i)/T)));
if index = 0
??? if index = 0
|
Error: The expression to the left of the equals sign is not a valid target for an assignment.
请问:这是什么问题?清高手帮帮忙!