配列内の要素を行ごとに演算する方法を教えてください
Show older comments
例えば、下記配列A
A=
3 6
4 2
8 1
6 3
7 3
を配列B
B=
1行目1列目÷1行目2列目
2行目1列目÷2行目2列目
3行目1列目÷3行目2列目
4行目1列目÷4行目2列目
5行目1列目÷5行目2列目
を配列Bに格納する方法が知りたいです。
B=
3/6
4/2
8/1
6/3
7/3
Accepted Answer
More Answers (1)
Yoshio
on 20 Feb 2018
2 votes
是非無償で利用できる MATLAB 入門 https://jp.mathworks.com/training-schedule/matlab-onramp.html を使って勉強してみてください。2時間やってみると、お尋ねの質問は自分で解けるようになります。
Categories
Find more on 算術演算 in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!