hi to all:
i wan to plot these two series of data and after plot i want to show each point value in plotted graphs.
I=[116 207 414 611 909 1009 951 909 805 615 311 120];
Ta=[29.164 30.256 31.186 32.237 33.127 34.137 35.148 37.129 36.119 35.148 34.137 33.127];
thanks

 採用された回答

Star Strider
Star Strider 2020 年 11 月 21 日

1 投票

I have absolutely no idea how you want them plotted.
Try this:
I=[116 207 414 611 909 1009 951 909 805 615 311 120];
Ta=[29.164 30.256 31.186 32.237 33.127 34.137 35.148 37.129 36.119 35.148 34.137 33.127];
figure
plot(I, Ta, '-p')
grid
txtc = sprintfc('\\leftarrow(%g, %g)', [I; Ta].');
text(I, Ta, txtc, 'HorizontalAlignment','left', 'VerticalAlignment','middle', 'FontSize',8)
This should provide everything you need in the event that you want a different sort of plot.
Make appropriate changes to get the result you want.

4 件のコメント

Engineer Batoor khan mummand
Engineer Batoor khan mummand 2020 年 11 月 21 日
thanks you so much dear from your reply.
i want to plot each graph seprate and than i show each point value in plotted graph.
figure
plot(Ta)
hold on
plolt(I)
Star Strider
Star Strider 2020 年 11 月 21 日
My pleasure!
Try this:
I=[116 207 414 611 909 1009 951 909 805 615 311 120];
Ta=[29.164 30.256 31.186 32.237 33.127 34.137 35.148 37.129 36.119 35.148 34.137 33.127];
x = 1:numel(I);
figure
yyaxis left
plot(x, I, '-p')
txtc_I = sprintfc('\\leftarrow(%g, %g)', [x; I].');
text(x, I, txtc_I, 'HorizontalAlignment','left', 'VerticalAlignment','middle', 'FontSize',8)
ylabel('I')
yyaxis right
plot(x, Ta, '-p')
ylabel('T_a')
txtc_Ta = sprintfc('\\leftarrow(%g, %g)', [x; Ta].');
text(x, Ta, txtc_Ta, 'HorizontalAlignment','left', 'VerticalAlignment','middle', 'FontSize',8)
xlabel('x')
Make appropriate changes to get the result you want.
Engineer Batoor khan mummand
Engineer Batoor khan mummand 2020 年 11 月 21 日
thank you so musch dear.
Star Strider
Star Strider 2020 年 11 月 21 日
As always, my pleasure!

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

その他の回答 (0 件)

カテゴリ

製品

リリース

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by