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

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

 Risposta accettata

Birdman
Birdman il 11 Dic 2017

0 voti

b[j]=norm(X,1);
This line should be
b(j)=norm(X,1);

Più risposte (0)

Richiesto:

il 11 Dic 2017

Commentato:

il 11 Dic 2017

Community Treasure Hunt

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

Start Hunting!

Translated by