Plotting a Figure for Velocity/Temperature as One moves along a 'radial line' in steps of 0.2
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I have results for velocity and temperature due to a flow when you choose fix theta and phi in spherical polar coordinates and move out in the radial direction at steps of 0.2 at a time, so that the radial coordinate goes from 1 to 10 in steps of 0.2.
Basically the result that you get is a 4 x 46 array, so that's 46 column vectors where the components are thought of as [v1, v2, v3, theta], so you have 46 column vectors giving the velocity vector and temperature at each position on the radial line (the velocity vector is in Cartesian coordinates however).
I need to plot separate graphs where I take the radial component of the velocity, the polar component of the velocity and the temperature and then plot against radius if that makes sense. So there will be a black circle on the plot at r = 1 for the radial component of the velocity in the first vector in the array, then at r = 1.2 another dot for the radial component of the velocity of the second vector in the array, and so on. Please let me know if my intention is not clear.
3 Kommentare
Agnish Dutta
am 5 Feb. 2020
Bearbeitet: Agnish Dutta
am 5 Feb. 2020
From what I understand, you would like to plot multiple lines with dots at fixed intervals on the same graph. The following command will plot a dotted curve:
>> plot(x_data, y_data, '.-');
You can then use "hold on" and "hold off" to plot additional curves on the same graph. Please refer to the following documentation link for more details regarding the same:
Retain current plots while adding more: https://www.mathworks.com/help/matlab/ref/hold.html
The above suggestions will worlk provided you know what exactly you would like to plot and in what format your data is in. Further investigation into this would require a more lucid explanation of the issue from your end.
Please feel free to revert to this thread in case you need further assistance.
Antworten (0)
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!