问题描述:
MATLAb 提示The expression to the left of the equals sign is not a valid target for an assignment.
clear
clear
[NUM,TXT,RAW]=xlsread('D:\123.xls');
n=2
[a,b]=size(RAW)
A(1,:)=RAW(1,:)
for i=1:b
if RAW(1,i)='电压等级' %提示这一行有问题,
for j=1:a
if RAW(j,i)='交流10kV'
n=n+1
end
end
end
end
clear
clear
[NUM,TXT,RAW]=xlsread('D:\123.xls');
n=2
[a,b]=size(RAW)
A(1,:)=RAW(1,:)
for i=1:b
if RAW(1,i)='电压等级' %提示这一行有问题,
for j=1:a
if RAW(j,i)='交流10kV'
n=n+1
end
end
end
end
问题解答:
我来补答展开全文阅读