Assignment has more non-singleton rhs dimensions than non-singleton subscripts

조회 수: 1 (최근 30일)
Debashis Panda
Debashis Panda 2018년 1월 12일
댓글: Rik 2018년 2월 12일
I am getting an error message in my code "Assignment has more non-singleton rhs dimensions than non-singleton subscripts". The systax of code is given here.First i have tried to solve it by using similar types of questions in mathworkscentral. Unfortunately i am unable to resolve it. The size of each variable is
  1. size(a) is 1x100
  2. size(b) is 1x100
  3. size(c) is 1x100
  4. size(p) is 1x100
  5. size(q) is 1x1
  6. size(res) is 1x1
  7. size(E) is 1x1
  8. res is a structure please anyone help me to resolve this issue..regardsDebashis
for i=1:length(q)
for j=1:length(p)
[a(i,j) b(i,j) c(i,j)]=p_call(p(j),q(i),res,E)
end
end
  댓글 수: 1
Rik
Rik 2018년 2월 12일
There is no obvious reason why this should fail, even if I would choose to separate outputs with a comma as well as a space. What are the contents of p_call? Are all outputs scalars?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by