How to express this equation to convert y values to a new vector and plot as a function of x?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
The equation is of the form: z (new vector) = y*[(e^(x/k*T)-1)/(x/h)^2]; where k = Boltzman constant, h = Planck constant, T = 300K
0 Commenti
Risposte (1)
Askic V
il 11 Mar 2023
Modificato: Askic V
il 11 Mar 2023
websave('test.xlsx','https://www.mathworks.com/matlabcentral/answers/uploaded_files/1321170/test.xlsx');
data = xlsread('test.xlsx')
x = data(:,1);
y = data(:,2);
% the rest should not be a problem
% z = y .*( (exp(x/k*T)-1) ./ (x/h).^2)
0 Commenti
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!