フィルターのクリア

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

3 ビュー (過去 30 日間)
ct8
ct8 2023 年 3 月 11 日
編集済み: Askic V 2023 年 3 月 11 日
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 Center および File ExchangeGet 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