shuftting graph plot matlab
1 view (last 30 days)
Show older comments
Rashid Hussein on 11 Apr 2019
Commented: Adam Danz on 11 Apr 2019
theta= inv(A)* S;
The original question asked how to shift the x and y coordinates of a mesh plot produced by mesh(z).
mesh(Z) by itself uses the row and column index values of Z as the x and y coordinates. Your matrix is [9x19] so the x values are 1:9 and the y values are 1:19.
If you'd like to start at x=-4 and y=-9, you'll need to produce your own X and Y values using meshgrid().
[Xval, Yval] = meshgrid((1:size(th,2))-10, (1:size(th,1))-5); %shift x and y so they start at -4 and -9
mesh(Xval, Yval, th);
More Answers (0)
Find more on Surface and Mesh Plots 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!