Assignment has more non-singleton rhs dimensions than non-singleton subscripts
1 次查看(过去 30 天)
显示 更早的评论
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
- size(a) is 1x100
- size(b) is 1x100
- size(c) is 1x100
- size(p) is 1x100
- size(q) is 1x1
- size(res) is 1x1
- size(E) is 1x1
- 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
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 Center 和 File Exchange 中查找有关 Logical 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!