how can I write this exponential function in MATLAB?
4 次查看(过去 30 天)
显示 更早的评论
velocity= 1m/s; x= 0 to 3; zeta= 125.7, u(x,0)= u(space, time); u=0.5 from the wave graph
3 个评论
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?
采纳的回答
Bhavana Ravirala
2022-1-25
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 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!