Clear Filters
Clear Filters

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

3 views (last 30 days)
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

Answers (1)

Askic V
Askic V on 11 Mar 2023
Edited: Askic V on 11 Mar 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)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!