Multiplying a column in a table by a constant
45 ビュー (過去 30 日間)
古いコメントを表示
Hello,
I need to multiply a one-column table by e^-9. I don't know MATLAB code, so this is new to me. How can I do this please, any help would be appreciated.
Thank you,
Tim
0 件のコメント
採用された回答
Walter Roberson
2023 年 8 月 17 日
編集済み: Walter Roberson
2023 年 8 月 18 日
YourTableName.NameOfColumn = YourTableName.nameOfColumn * 1e-9;
The above is the recommended form.
If, for some reason, you do not know hte column name, but you know the column number, then
YourTableName.(ColumnNumber) = YourTableName.(ColumnNumber) * 1e-9;
3 件のコメント
Zachary
2024 年 9 月 7 日
I am trying to change units in my column. I want to go from mm to cm, so I just divide by 10. At the same time, I want to keep the original column value. How would you do that?
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Resizing and Reshaping Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!