フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Error message 'Unable to perform assignment because brace indexing is not supported for variables of this type'

1 回表示 (過去 30 日間)
JJH
JJH 2018 年 10 月 31 日
閉鎖済み: Stephen23 2018 年 10 月 31 日
I have a code to extract a parameter from a list of file names in a for loop. However, if I run this I get the error message in the title. Where have I gone wrong?
Rarray = zeros(1,19);
cf=0.71;
for file = 1:numel(files')
myfilename = sprintf('20181030u%d.mat',file)
matfile{file} = importdata(myfilename);
A4 = cf*A+B+cf*C;
B4 = cf*C+D+cf*E;
C4 = cf*E+F+cf*G;
D4 = cf*G+H+cf*A;
V = 2*complex(A4-C4,B4-D4)./(A4+B4+C4+D4);
for m=1:numel(files')
R = sum(abs(V))/length(V);
Rarray(m) = R;
end
end
  2 件のコメント
madhan ravi
madhan ravi 2018 年 10 月 31 日
upload two sample files two rectify the error
JJH
JJH 2018 年 10 月 31 日
I've uploaded 2 files, they each contain multiple outputs, including A, B, C etc that I use in the code.

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by