필터 지우기
필터 지우기

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