how to write this equation in matlab

e^(3x) + sin(4x^2) + 1/(3x)

1 Comment

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).

Sign in to comment.

 Accepted Answer

Manikanta Aditya
Manikanta Aditya on 20 Jun 2022
Edited: Manikanta Aditya on 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 Comment

And if you need to handle the case that x is non-scalar:
exp(3*x) + sin(4*x.^2) + 1./(3*x)

Sign in to comment.

More Answers (0)

Categories

Find more on Programming in Help Center and File Exchange

Products

Release

R2020a

Tags

Community Treasure Hunt

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

Start Hunting!