- #1

Pouyan

- 103

- 8

## Homework Statement

I have a function :

and I want to draw :

## Homework Equations

where T has values : 600, 800, 1000, 1100 And λ:(0,10*^-5] I have to use max function with two values and the solution must not consist of repeating four times of similar snippets of code, one for each curve.The image should be stylish. For example. so the texts may not cut curves, but neatly placed just above the maximum point.

## The Attempt at a Solution

[/B]

This is the way how I start :

F=@(L,T) 3.7415E-16 ./((L.^5).*(exp(0.014 ./(L.*T))-1));

T=[600, 800, 1000, 1100];

L=0:10^-6:10^-5;

[Lm Tm]=meshgrid(L,T);

fm=F(Lm,Tm);

plot(L,fm)

hold on

grid on

[Y I]=max(fm);

plot(L(I),Y,'*')

And I get :

https://se.mathworks.com/matlabcentral/answers/uploaded_files/70252/image1.bmp

My question is how should I use text function in Matlab to write T for correspond curve