MATLAB Onramp 14.1 Project- Stellar Motion Task 7

215 ビュー (過去 30 日間)
Prem Pankaj
Prem Pankaj 2020 年 7 月 11 日
移動済み: Dyuman Joshi 2024 年 3 月 20 日 16:38
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?
  5 件のコメント
Ajithkumar
Ajithkumar 2023 年 8 月 27 日
移動済み: Dyuman Joshi 2024 年 3 月 20 日 16:38
task 2-4
Abhishek
Abhishek 2023 年 10 月 22 日
Add an else statement if speed (v) is greater than 0 create a plot of s against lambda using a line width of 3

サインインしてコメントする。

回答 (4 件)

VAIBHAV PANDEY
VAIBHAV PANDEY 2020 年 9 月 20 日
s = spectra(:,2)
[sHa,idx] = min(s)
lambdaHa = lambda(idx)
z = lambdaHa/656.28 - 1
speed = z*299792.458
  4 件のコメント
Jayleen
Jayleen 2023 年 2 月 1 日
just take the second and third line for task 4
Deeksha
Deeksha 2023 年 9 月 4 日
tast 2 & 7
s=spectra(:,2)
Did you store the second column of spectra in s?------> this error is not remove..why?

サインインしてコメントする。


Othello Deemi
Othello Deemi 2022 年 8 月 12 日
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.

Prabhan Purwar
Prabhan Purwar 2020 年 7 月 14 日
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 2023 年 2 月 1 日
[sHa,idx] = min(spectra(:,2))
to
[sHa,idx] = min(spectra)
  3 件のコメント
Ahmad Rohan
Ahmad Rohan 2023 年 10 月 29 日
help me pleace
Öznur
Öznur 2024 年 3 月 3 日
hold on
plot(lambdaHa,sHa,"rs",'MarkerSize',8)

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeDebugging and Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by