parse error at '[', '=',')'.

8 Ansichten (letzte 30 Tage)
ac_09
ac_09 am 11 Dez. 2017
Kommentiert: ac_09 am 11 Dez. 2017
I am getting error at "b[j]=norm(X,1);" as: parse error at '[', '=',')'. How should i rectify it?
function [b]=rf(l,k,H,d)
b=zeros(1,Nu);
for j=0:Nu-1
X= H'*d(:,j);
b[j]=norm(X,1);
end
end

Akzeptierte Antwort

Birdman
Birdman am 11 Dez. 2017
b[j]=norm(X,1);
This line should be
b(j)=norm(X,1);
  1 Kommentar
ac_09
ac_09 am 11 Dez. 2017
thanks again

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Call Python from MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by