Matlab向量倒序。
28 ビュー (過去 30 日間)
古いコメントを表示
採用された回答
kpwqmn
2023 年 5 月 20 日
注意向量格式,我电脑上都没问题的。
clear,clc;
a=[1,4,2,3,5,6]
b=fliplr(a)
disp('----------------------------------------');
a=[1;4;2;3;5;6]
b=flipud(a)
a =
1 4 2 3 5 6
b =
6 5 3 2 4 1
----------------------------------------
a =
1
4
2
3
5
6
b =
6
5
3
2
4
1
0 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!