How to plot lnx ?
16 ビュー (過去 30 日間)
古いコメントを表示
let us say
x= [0 1 2 3 4 5 6 7 8 9]
and y = ln(x)
plot (x,y ) does not work. Is y=ln(x) a wrong statement ?
2 件のコメント
Titus Edelhofer
2013 年 9 月 29 日
Since I guess, y = ln(x) has thrown an error like "Undefined function or variable y" I would say, yes, this is a wrong statement. My suggestion: open the doc and search for logarithm ...
採用された回答
Azzi Abdelmalek
2013 年 9 月 29 日
編集済み: Azzi Abdelmalek
2013 年 9 月 29 日
x= [0 1 2 3 4 5 6 7 8 9]
y=log(x)
plot(x,y)
You should know that log is not defined for x=0
2 件のコメント
Azzi Abdelmalek
2013 年 9 月 29 日
編集済み: Azzi Abdelmalek
2013 年 9 月 29 日
log is just the name of the function corresponding to ln(x). You can check
log(exp(1))
help log
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Exponents and Logarithms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!