how can I write a function of another function of two variables
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
How can I wtite
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1701776/image.png)
where
are constant.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1701781/image.png)
in such a way I can evaluate vectors in it, For example
,where
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1701786/image.png)
Lt=linespace(0,1,10) and Lt=linespace(0,10,10)
0 Kommentare
Antworten (1)
Star Strider
am 22 Mai 2024
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
c = rand
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)
.
8 Kommentare
Torsten
am 22 Mai 2024
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.
Siehe auch
Kategorien
Mehr zu Propagation and Channel Models finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!