Apply a function to a specific column of multiple matrices?
古いコメントを表示
Hi Guys. I would very like to have help on this. I have 4 sensors that give me 4 double matrices. I'd like to apply a function to convert mm into m, but I would like to create it for each column at a time. I know how to do that for both columns of each matrix, but I like to do that separetely just to have different outputs for each axis in the matrix.
For instance: I have 4 matrices called Sen1 to Sen4. They are double matrices 10000x2. I'm trying this:
for i=1:4
eval(['XSen' num2str(i) '=Sen' num2str(i) './1000;'])
end
But I would like to apply it only for the first column, and after to the second, changing XSen to Zsen. Any thought on how to solve it.
Thanks.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Partial Differential Equation Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!