plot single vector and plot matrix
4 ビュー (過去 30 日間)
古いコメントを表示
TEE =[3 8 9 12 3 2]
TEE1=[98 45 32 45 1 8]
TEE2(1,:)=TEE;
TEE2(2,:)=TEE1;
figure
hold on
plot(TEE)
plot(TEE1)
hold off
figure
plot(TEE2)
but the result is different!
how can build matrix using single vector and plot it?
0 件のコメント
採用された回答
Dyuman Joshi
2023 年 11 月 23 日
編集済み: Dyuman Joshi
2023 年 11 月 23 日
To get the same result, transpose the array and then plot.
TEE =[3 8 9 12 3 2];
TEE1=[98 45 32 45 1 8];
TEE2(1,:)=TEE;
TEE2(2,:)=TEE1;
figure
hold on
plot(TEE)
plot(TEE1)
hold off
figure
%% Plot the transpose of the array
plot(TEE2.')
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Line Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!