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

12 vues (au cours des 30 derniers jours)
ac_09
ac_09 le 11 Déc 2017
Commenté : ac_09 le 11 Déc 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

Réponse acceptée

Birdman
Birdman le 11 Déc 2017
b[j]=norm(X,1);
This line should be
b(j)=norm(X,1);
  1 commentaire
ac_09
ac_09 le 11 Déc 2017
thanks again

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Call Python from MATLAB dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by