How do we solve Stellar Motion,Task 5

5 次查看(过去 30 天)
How do
This is my code which keeps getting marked as wrong where we have to
hold on
plot(lambdaHa,sHa,"red square","MarkerSize",8)
hold off
  1 个评论
Dyuman Joshi
Dyuman Joshi 2023-8-24
What is the error? or why is it marked as wrong?
Are the dimensions of the inputs compatible for plotting?

请先登录,再进行评论。

回答(1 个)

Rohit Kulkarni
Rohit Kulkarni 2023-8-28
Hi,
In my understanding in the given task you need to plot the graph using a base 10 logarithmic scale,
use the loglog() function to plot this graph instead of plot() function.
hold on
loglog(lambdaHa,sHa,"red square","MarkerSize",8)
hold off
Thanks

类别

Help CenterFile Exchange 中查找有关 Line Plots 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by