how can I write this exponential function in MATLAB?

2 vues (au cours des 30 derniers jours)
ayushman srivastava
ayushman srivastava le 21 Jan 2022
velocity= 1m/s; x= 0 to 3; zeta= 125.7, u(x,0)= u(space, time); u=0.5 from the wave graph
  3 commentaires
John D'Errico
John D'Errico le 21 Jan 2022
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 le 29 Jan 2022
yes

Connectez-vous pour commenter.

Réponse acceptée

Bhavana Ravirala
Bhavana Ravirala le 25 Jan 2022
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.

Plus de réponses (0)

Catégories

En savoir plus sur Mathematics dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by