採用された回答

KSSV
KSSV 2022 年 7 月 16 日

0 投票

a1=1:10 % generate numbers between 1 and 10 with increment of 1
a1 = 1×10
1 2 3 4 5 6 7 8 9 10
a2 = 75:-1:50 ; % generate numbers between 75 and 50 with difference of 1. As 75 > 50, to generate numbers
% you need to give -1
a=[a1 a2] % join a1 and a2 into a single array. As both a1 and a2 are row vectors, you can do this
a = 1×36
1 2 3 4 5 6 7 8 9 10 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56

2 件のコメント

Abinath
Abinath 2022 年 7 月 16 日
a2 i am not clear where can i refer it. Which concept
KSSV
KSSV 2022 年 7 月 16 日
You can try it your self... also read about linspace.

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeInstrument Control Toolbox についてさらに検索

質問済み:

2022 年 7 月 16 日

コメント済み:

2022 年 7 月 16 日

Community Treasure Hunt

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

Start Hunting!

Translated by