changing a variable in an equation

3 ビュー (過去 30 日間)
Paul Rogers
Paul Rogers 2020 年 12 月 11 日
編集済み: Paul Rogers 2020 年 12 月 11 日
Hi, I wrote this little piece of code to evaluate
mass_flow
I then find out I have mass_flow, and I need to evaluate ER. Is there an automatic way to do so without doing the math?
clear
clc
close all
load
datas.mat
k = 1.4; %Gas constant ratio, cp/cv()
R = 287.05; %ideal gas constant [J/Kg*K]
A_eff = .0069; %[m^2]
mass_flow = phi_10Hz; %expansion ratio
mass_flow = A_eff.*((k./R).^0.5).*((1./E_R).^(1/k)).*(((2./k-1).*(1-(1./E_R).^((k-1)./k))).*0.5);
figure()
plot(E_R,mass_flow)
In attached the datas.mat you need to run the file
  4 件のコメント
Paul Rogers
Paul Rogers 2020 年 12 月 11 日
編集済み: Paul Rogers 2020 年 12 月 11 日
mmm, thanks, but basically what I wanted is to write the following euation as a function of m and not ER like it is now.
Since it's pretty rought I wanted to know if there is some matlab tricks I don't know to do so.
In short I have m=f(ER), and I want ER=f(m)

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeGas Models についてさらに検索

タグ

製品


リリース

R2014b

Community Treasure Hunt

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

Start Hunting!

Translated by