Plotting data from text file , subplot

1 回表示 (過去 30 日間)
Jes
Jes 2022 年 5 月 5 日
コメント済み: dpb 2022 年 5 月 5 日
I have setup a figure with this code
fig = figure('NumberTitle','off',...
'Name','1',...
'Color',[0.9725 0.9725 0.9725],'Visible','On');
s1 = subplot(3,1,1,'XGrid','on','YGrid','on');
set(get(s1,'YLabel'),'String','horizontal direction [gon]')
hold on;
s2 = subplot(3,1,2,'XGrid','on','YGrid','on');
set(get(s2,'YLabel'),'String','vertical angle [gon]')
hold on;
s3 = subplot(3,1,3,'XGrid','on','YGrid','on');
set(get(s3,'YLabel'),'String','slope distance [m]')
hold on;
  • I have the text file with measurements
  • Need to plot the 1st column and 4th column in the above mentioned figure in 1st graph
  • 2nd vs 4th in 2nd graph
  • 3rd vs 4th in 3rd graph
  1 件のコメント
dpb
dpb 2022 年 5 月 5 日
This is second time in last couple days have seen the
s1 = subplot(3,1,1,'XGrid','on','YGrid','on');
set(get(s1,'YLabel'),'String','horizontal direction [gon]')
syntax. Whassup with the indirect reference and use of get() here instead of just wrting
ylabel(s1,'horizontal direction [gon]')
???

サインインしてコメントする。

採用された回答

Cris LaPierre
Cris LaPierre 2022 年 5 月 5 日
See the examples in the following documentation pages
  1 件のコメント
dpb
dpb 2022 年 5 月 5 日
Add to the list tiledlayout

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by