semilogy comes to mind.
How to improve plot
1 次查看(过去 30 天)
显示 更早的评论
I have ran logistic regression using gradient descent and obtained values for my cost function. Since I ran 100000 iterations, it computed 100000 values for my cost function which I am trying to plot against the number of iterations ran. I have plotted using the following code:
plot(1:length(cost),cost,'r.')
This resulted in the following plot:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/974150/image.png)
Is there any better way to plot this, so that the minimisation can be better seen converging to a final value? Since there are 100000 data points for the x axis, MATLAB squeezes them all in to fit a smaller scale. Would there be any better way to modify this to present the information better?
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Least Squares 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!