converting a function into a code ?

1 visualizzazione (ultimi 30 giorni)
maryam 94
maryam 94 il 18 Dic 2014
Modificato: Stephen23 il 20 Dic 2014
hello everyone i'm struggling with this question (sin(x), exp(x^2-y^2), 0) how do i convert the whole thing into a matlab code ? and how can i use matlab to find the "curl" of a function ?

Risposta accettata

Stephen23
Stephen23 il 19 Dic 2014
Modificato: Stephen23 il 20 Dic 2014
If the x and y values are defined, then the beauty of MATLAB is there there is not really much then you need to do to convert this to MATLAB code: it can read (almost) like the mathematical operations that you want to perform!
x = 1:10;
y = sin(x);
z = exp(x.^2-y.^2)
If this is tricky, then you should find some tutorials online on how to start in MATLAB.

Più risposte (0)

Categorie

Scopri di più su Text Data Preparation in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by