How are these lines supposed to work?
s1(i,1)=[h(361) h(362) h(363)];
s2(i,2)=[h(223) h(224)];
s3(i,3)=[h(249) h(250)];
s4(i,4)=[h(294) h(295)];
s5(i,5)=[h(297) h(298)];
It looks like you are doing this:
s1(i,1)= 1 x 3 vector;
s2(i,2)= 1 x 2 vector;
s3(i,3)= 1 x 2 vector;
s4(i,4)= 1 x 2 vector;
s5(i,5)= 1 x 2 vector;
So it looks like you are trying to stuff vectors into scalar elements. What is s1, s2, s3, s4, s5?
2 Comments
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/242265-i-am-getting-following-error-when-i-run-my-code-assignment-has-more-non-singleton-rhs-dimen#comment_309182
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/242265-i-am-getting-following-error-when-i-run-my-code-assignment-has-more-non-singleton-rhs-dimen#comment_309182
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/242265-i-am-getting-following-error-when-i-run-my-code-assignment-has-more-non-singleton-rhs-dimen#comment_309183
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/242265-i-am-getting-following-error-when-i-run-my-code-assignment-has-more-non-singleton-rhs-dimen#comment_309183
Sign in to comment.