Filter löschen
Filter löschen

How to express this equation to convert y values to a new vector and plot as a function of x?

3 Ansichten (letzte 30 Tage)
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

Antworten (1)

Askic V
Askic V am 11 Mär. 2023
Bearbeitet: Askic V am 11 Mär. 2023
websave('test.xlsx','https://www.mathworks.com/matlabcentral/answers/uploaded_files/1321170/test.xlsx');
data = xlsread('test.xlsx')
data = 411×2
2.1999 66.0225 2.1995 67.5449 2.1991 69.1438 2.1987 70.8191 2.1983 72.5710 2.1979 74.3994 2.1975 76.3043 2.1971 78.2858 2.1967 80.3437 2.1963 82.4781
x = data(:,1);
y = data(:,2);
% the rest should not be a problem
% z = y .*( (exp(x/k*T)-1) ./ (x/h).^2)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Produkte


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by