Subscripted assignment dimension mismatch.
1 view (last 30 days)
Show older comments
tahseen alshmary
on 16 Nov 2018
Commented: tahseen alshmary
on 25 Nov 2018
I have this error
((Subscripted assignment dimension mismatch))
appear with this function
for i=1:50
f0(i,1)=ofun(x0(i,:));
end
how can i solve this problem?
0 Comments
Accepted Answer
madhan ravi
on 16 Nov 2018
Edited: madhan ravi
on 16 Nov 2018
f0=cell(1,50); %preallocation
for i=1:50
f0{i}=ofun(x0(i,:));
end
celldisp(f0)
3 Comments
More Answers (0)
See Also
Categories
Find more on Linear Least Squares in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!