how to write this equation in matlab

6 Ansichten (letzte 30 Tage)
aqil hilman
aqil hilman am 19 Dez. 2020
Kommentiert: Voss am 3 Jul. 2022
e^(3x) + sin(4x^2) + 1/(3x)
  1 Kommentar
Rik
Rik am 19 Dez. 2020
This is basic Matlab syntax. If you have trouble with Matlab basics you may consider doing the Onramp tutorial (which is provided for free by Mathworks).

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Manikanta Aditya
Manikanta Aditya am 20 Jun. 2022
Bearbeitet: Manikanta Aditya am 20 Jun. 2022
Hi Aqil,
The equation can be written in MATLAB as follows:
exp(3*x) + sin(4*x^2) + 1/(3*x)
For clear understanding you can check the below link" which shows you how to add exponential equations:
  1 Kommentar
Voss
Voss am 3 Jul. 2022
And if you need to handle the case that x is non-scalar:
exp(3*x) + sin(4*x.^2) + 1./(3*x)

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Programming finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by