velocity= 1m/s; x= 0 to 3; zeta= 125.7, u(x,0)= u(space, time); u=0.5 from the wave graph

3 件のコメント

Hi, you can define a function with syms and then substitute the value you want.
for Example
syms x t a
u(x,t)=exp(a*x^2)*t
u(x, t) = 
u2(x,t)=subs(u,a,2)
u2(x, t) = 
John D'Errico
John D'Errico 2022 年 1 月 21 日
That just looks like a boundary value. Are you hoping to solve a partial differential equation, with that as a boundary value?
ayushman srivastava
ayushman srivastava 2022 年 1 月 29 日
yes

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

 採用された回答

Bhavana Ravirala
Bhavana Ravirala 2022 年 1 月 25 日

0 投票

Hi Ayushman,
You can use exp() function in the MATLAB. Refer to the below example
for x=0:3
u=exp(-16*(x-1/2)^2)*sin(zeta*x)+u;
end
Refer to the below documentation for more information:
Hope this helps.

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Simulink についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by