How can I calculate log10(variable) ??? there is error..
7 ビュー (過去 30 日間)
古いコメントを表示
How can I calculate log10(variable) ??? there is error..
2 件のコメント
Steven Lord
2021 年 10 月 17 日
What is the full and exact text of that error message (everything displayed in red in the Command Window)?
the cyclist
2021 年 10 月 17 日
Or upload variable in a mat file here, using the paperclip in the INSERT section of the toolbar.
採用された回答
Dave B
2021 年 10 月 17 日
Assuming you've defined your variable and it's numeric, this should work:
variable=100;
log10(variable)
x=[100 200 500 1000];
log10(x)
It may fail if you haven't defined your variable:
log10(y)
Or if your variable is not numeric:
z="100";
log10(z)
0 件のコメント
その他の回答 (0 件)
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!