フィルターのクリア

how can I write a function of another function of two variables

1 回表示 (過去 30 日間)
Maryam Albuhayr
Maryam Albuhayr 2024 年 5 月 22 日
コメント済み: Maryam Albuhayr 2024 年 5 月 22 日
How can I wtite
where are constant.
in such a way I can evaluate vectors in it, For example ,where
Lt=linespace(0,1,10) and Lt=linespace(0,10,10)

回答 (1 件)

Star Strider
Star Strider 2024 年 5 月 22 日
Create the ρ function and then call it in the μ function —
rho = @(t,z) something;
mu = @(t,z) c .* log(rho(t,z)*b ./ (1 - rho(t,z)*b)) + rho(t,z)*b./(1-rho(t,z)*b);
Example —
b = rand
b = 0.4246
c = rand
c = 0.0166
rho = @(t,z) t./z;
mu = @(t,z) c .* log(rho(t,z)*b ./ (1 - rho(t,z)*b)) + rho(t,z)*b./(1-rho(t,z)*b);
Li = linspace(0, 1, 10);
Lz = linspace(0, 10, 10);
Mu = mu(Li, Lz)
Mu = 1x10
NaN -0.0072 -0.0072 -0.0072 -0.0072 -0.0072 -0.0072 -0.0072 -0.0072 -0.0072
<mw-icon class=""></mw-icon>
<mw-icon class=""></mw-icon>
.
  8 件のコメント
Torsten
Torsten 2024 年 5 月 22 日
It's very unusual to give dt/dz^2 the name Lambda. Lambda is thermal conductivity in general.
So your code works now ? At least it should no longer give syntax errors.
Maryam Albuhayr
Maryam Albuhayr 2024 年 5 月 22 日
Unfortunately, not yet

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

カテゴリ

Help Center および File ExchangePropagation and Channel Models についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by