How do we solve Stellar Motion,Task 5

11 Ansichten (letzte 30 Tage)
Yash
Yash am 24 Aug. 2023
Beantwortet: Rohit Kulkarni am 28 Aug. 2023
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 Kommentar
Dyuman Joshi
Dyuman Joshi am 24 Aug. 2023
What is the error? or why is it marked as wrong?
Are the dimensions of the inputs compatible for plotting?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Rohit Kulkarni
Rohit Kulkarni am 28 Aug. 2023
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

Kategorien

Mehr zu Line Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by