Hi, everytime I run the following programme no plot comes up - grateful for any idea? I eventually need to build a programme to fit the planck function to a black body, any tips gratefully recieved.
W =[0:1:3000];
t=6000;
f=((1.19104*10^(-16))/(W^5))*(exp(0.014387769/(W*t))-1);
plot(W,f)

1 Kommentar

Robbie Baillie
Robbie Baillie am 19 Aug. 2020
Thank you for reply - the plot comes up now - but does not have anything actually plotted - any ideas why?

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

KSSV
KSSV am 19 Aug. 2020

0 Stimmen

W =[0:1:3000];
t=6000;
f=((1.19104*10^(-16))./(W.^5)).*(exp(0.014387769./(W*t))-1);
plot(W,f)

2 Kommentare

Robbie Baillie
Robbie Baillie am 19 Aug. 2020
Thank you for reply - the plot comes up now - but does not have anything actually plotted - any ideas why?
KSSV
KSSV am 19 Aug. 2020
Check the formula, check the values..

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Startup and Shutdown finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 19 Aug. 2020

Kommentiert:

am 19 Aug. 2020

Community Treasure Hunt

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

Start Hunting!

Translated by