dynamic pressure m m
1 回表示 (過去 30 日間)
古いコメントを表示
How to get this type of output ? (Strokes second order Wave theory) Please help .
The ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/353612/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/353612/image.png)
0 件のコメント
採用された回答
Image Analyst
2020 年 9 月 8 日
Use the plot() function, the xlabel() and ylabel() functions, the text() function, and the legend() function.
1 件のコメント
Image Analyst
2020 年 9 月 26 日
NAS, not sure what your edit was. I think you should have been able to figure it out over the past month, but in case you weren't able to, here is a start:
x = [0, 1.5];
dynamicPressure = [0, 0];
hydrostaticPressure = [100000, 120000];
totalPressure = dynamicPressure + hydrostaticPressure;
plot(x, dynamicPressure, 'r-', 'LineWidth', 2);
ylim([-20000, 120000]);
grid on;
hold on;
plot(x, hydrostaticPressure, 'g-', 'LineWidth', 2);
plot(x, hydrostaticPressure, 'b-', 'LineWidth', 2);
fontSize = 22;
xlabel('z', 'FontSize', fontSize);
ylabel('pressure', 'FontSize', fontSize);
legend('Dynamic Pressure', 'Hydrostatic Pressure', 'Total Pressure', 'Location', 'east');
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/366949/image.png)
If this solves your problem, then could you let me know if the time I spent to help you was worthwhile and please "Accept this answer"? Thanks in advance. If it didn't work, then explain better what you want and what didn't work. If you really want that "b" in a box you can use rectangle() and text().
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Discrete Multiresolution Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!