How to plot velocity profile?

23 ビュー (過去 30 日間)
Vishnuvardhan Naidu Tanga
Vishnuvardhan Naidu Tanga 2021 年 9 月 16 日
コメント済み: KSSV 2021 年 9 月 16 日
Hello all,
I am trying to plot a velocity profile at different locations as shown in the figure. Where I need x=1, x=25, ...x=150 at bottom x-axis and Dia at y-axis and the scale of the data at top x-axis as lables. I have tried to plot, but i am getting an error as 'Unrecognized function or variable 'X_1'.'. I am reading the data from Excel. I have tried with the following code:
data = readtable('Atq16.xlsx');
p1 = plot(X_1 + 1 , Dia ,'r', 'linewidth', 2); hold on; %grid on
p2 = plot(X_25 + 25 , Dia ,'g', 'linewidth', 2);
p3 = plot(X_50 + 50, Dia,'b', 'linewidth', 2);
p4 = plot(X_100 + 100, Dia,'k', 'linewidth', 2);
p5 = plot(X_150 + 150, Dia,'m', 'linewidth', 2);
xticks([1 25 50 100 150]);
Please kindly do the needful. Thanks in advance.
With regards


KSSV 2021 年 9 月 16 日
T = readtable('Atq16.xlsx') ;
data = table2array(T) ;
  4 件のコメント
KSSV 2021 年 9 月 16 日
Read about text. Or you can do through .fig via gui.


その他の回答 (0 件)


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!

Translated by