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일

0 개 추천

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기

질문:

2017년 12월 11일

댓글:

2017년 12월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by