How to divide each column in array 1 by corresponding column in array 2 and put answers in new array, array 3
1 回表示 (過去 30 日間)
古いコメントを表示
Christopher Gordon
2020 年 9 月 5 日
コメント済み: Christopher Gordon
2020 年 9 月 5 日
I have two arrays ('SPFPMTSignal' and 'SkinPMTSignal') that are 111 x 9. I want to create a new 111 x 9 matrix ('Transmittance') where each column in 'SPFPMTSignal' is divided by the corresponding column in 'SkinPMTSignal' to produce the new column in 'Transmittance'.
I've tried
Transmittance = SPFPMTSignal/SkinPMTSignal
but I believe it performed matrix division because it produced a matrix that is 111 x 111. Any help would be greatly appreciated. I'm still trying to navigate the nuance of the coding in MatLAB. I'm brand new to it. Any help would be greatly appreciated.
Also, if you could direct me where to look for straight forward issues like this would also appreciate it. Thank you!
0 件のコメント
採用された回答
Sulaymon Eshkabilov
2020 年 9 月 5 日
Perform the elementwise division:
Transmittance = SPFPMTSignal./SkinPMTSignal;
This solves your exercise.
Good luck
その他の回答 (1 件)
Alan Stevens
2020 年 9 月 5 日
Try
Transmittance = SPFPMTSignal ./ SkinPMTSignal
Notice the dot before the backslash. It means element by element division.
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!