How do i do i use the log transformation to transform both the x,y values containing negative and positive values .
1 次查看(过去 30 天)
显示 更早的评论
I tried using the semilogy but it doesn't seem to work.is it because the x and y values are both negative and both. x=[-0.0992000000000000 0.291600000000000 -0.0673000000000000 -0.109500000000000 0.322600000000000 -0.159700000000000 -0.121000000000000 -0.120800000000000 -0.139600000000000 0.178600000000000]
y=[-0.139380000000000 0.167300000000000 -0.153700000000000 -0.120200000000000 0.339100000000000 -0.172300000000000 -0.130400000000000 -0.172700000000000 -0.131600000000000 0.362600000000000]
2 个评论
Tejas Jayashankar
2018-6-14
Hi,
You cannot take the logarithm of negative values as you pointed out. Do you want to plot y against x?
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Time Series Events 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!