My code is:
pvals = 10:1:15;nump = length(pvals);for pidx = 1 : nump p=pvals(pidx); [x(pidx),y(pidx)]=solve('9*x(pidx)+8*y(pidx)=p','13*x(pidx)+14*y(pidx)=p+2','x(pidx)','y(pidx)');endplot(pvals,x)
The error is:
In an assignment A(:) = B, the number of elements in A and B must be the same.
Any help is appreciated! Thanks!
Best Answer