How to divide whole string with specific number?

2 ビュー (過去 30 日間)
vimal kumar chawda
vimal kumar chawda 2021 年 12 月 13 日
編集済み: the cyclist 2021 年 12 月 13 日
A = [1 2 3 4 5 6 7 8 9];
A_2 = A/2;
divide = [6 7 8 9 6 3 4 2 5]
divide = 1×9
6 7 8 9 6 3 4 2 5
results = A/divide
results = 0.6781
Output should be string but I am getting only one value. How to divide whole string ?

採用された回答

the cyclist
the cyclist 2021 年 12 月 13 日
編集済み: the cyclist 2021 年 12 月 13 日
A = [1 2 3 4 5 6 7 8 9];
A_2 = A/2;
divide = [6 7 8 9 6 3 4 2 5];
results = A./divide
results = 1×9
0.1667 0.2857 0.3750 0.4444 0.8333 2.0000 1.7500 4.0000 1.8000

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by