MATLAB Onramp 14.1 Project- Stellar Motion Task 7

277 visualizaciones (últimos 30 días)
Prem Pankaj
Prem Pankaj el 11 de Jul. de 2020
Respondida: leela krishna el 20 de Mayo de 2024
Modify the Task 2 & 7 section of the script so that it performs the red shift calculation on the second star in spectra, not the sixth.
I have changed s to the second column (s= spectra(:,2)), and that is right.
How do I get the correct values of lambdaHa and speed?

Respuestas (5)

VAIBHAV PANDEY
VAIBHAV PANDEY el 20 de Sept. de 2020
s = spectra(:,2)
[sHa,idx] = min(s)
lambdaHa = lambda(idx)
z = lambdaHa/656.28 - 1
speed = z*299792.458
  5 comentarios
Deeksha
Deeksha el 4 de Sept. de 2023
tast 2 & 7
s=spectra(:,2)
Did you store the second column of spectra in s?------> this error is not remove..why?

Iniciar sesión para comentar.


Othello Deemi
Othello Deemi el 12 de Ag. de 2022
Could some kindly help me with Tasks 2&7 on the MATLAB Onramp on the topic "Project > Stella Motion"?
Here is my answer:
s = spectra(:,2)
[sHa, idx] = min(s)
lambdaHa = lambda(idx)
z = (lambdaHa/656.28) - 1
speed = z*299792.458
I cannot go further beyond this point. Many thanks.

leela krishna
leela krishna el 20 de Mayo de 2024
[sHa,idx]=min(s)
lambdaHa=lambda(idx)
hold on
x=lambdaHa
y=sHa
plot(x,y,'rs','MarkerSize',8)

Prabhan Purwar
Prabhan Purwar el 14 de Jul. de 2020
Hi,
The correct values for lambdaHa and speed are calculated using Task 4. At every Task whole of the script runs not the portion of the same.
Thanks

PERUMALSAMY ROHANKUMAR
PERUMALSAMY ROHANKUMAR el 1 de Feb. de 2023
[sHa,idx] = min(spectra(:,2))
to
[sHa,idx] = min(spectra)
  2 comentarios
Ganisher
Ganisher el 10 de Feb. de 2023
how will be the next step's code?
Did you add a point to the existing axes?
Add a point to the existing axes by plotting x = lambdaHa, y = sHa as a red square ("rs") with a marker size ("MarkerSize") of 8.
Öznur
Öznur el 3 de Mzo. de 2024
hold on
plot(lambdaHa,sHa,"rs",'MarkerSize',8)

Iniciar sesión para comentar.

Categorías

Más información sobre Motion Modeling and Coordinate Systems en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by