How do we solve Stellar Motion,Task 5

조회 수: 5 (최근 30일)
Yash
Yash 2023년 8월 24일
답변: Rohit Kulkarni 2023년 8월 28일
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