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

3 次查看(过去 30 天)
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

回答(1 个)

Askic V
Askic V 2023-3-11
编辑:Askic V 2023-3-11
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)

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by