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

11 ビュー (過去 30 日間)
ac_09
ac_09 2017 年 12 月 11 日
コメント済み: ac_09 2017 年 12 月 11 日
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

採用された回答

Birdman
Birdman 2017 年 12 月 11 日
b[j]=norm(X,1);
This line should be
b(j)=norm(X,1);
  1 件のコメント
ac_09
ac_09 2017 年 12 月 11 日
thanks again

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCall Python from MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by