how can ı plot my plot at certain location ?
7 views (last 30 days)
Show older comments
I have three variable namely; X/D, Y,D, and u/U , let's say want to plot u/U at x/D=1,2 3,4 and I want to plot so that the graph should be seen at x/d =1,2,3,4 at the same graph as it shown in the picture.
0 Comments
Answers (1)
Ashu
on 21 Mar 2023
As per my understanding, you want to plot some points over X/D at 1, 2, 3, 4 on an existing plot.
To do that you can do something similar to this
% Define x/D vector
x_D = [1 2 3 4];
% Define matrix of u/U values
u_U = [1 2 3 4 ;
5 6 7 8;
9 10 11 12;
13 14 15 16];
% Plot u/U against x/D
hold on;
plot(x_D, u_U, 'x');
hold off;
To know more about 'hold', you can go through the following documentation :
0 Comments
See Also
Categories
Find more on 2-D and 3-D 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!