Finding Y vector using a given X vector and a equation
Mostra commenti meno recenti
I have the equation Y= X^2
Given X = [1:0.5:3]
Calucluate in code the Y Vector
How Do I So .
2 Commenti
Matt J
il 3 Ott 2019
In what way are you "overthinking" it? What are you thinking?
Chandler Vaughan
il 3 Ott 2019
Risposte (1)
Jess Lovering
il 3 Ott 2019
You have to define your vector and then pass it into your equaiton but make sure to use .^ instead of ^ so that it goes element-wise through your equation.
X = [1:0.5:3]
Y = X.^2
Categorie
Scopri di più su Mathematics in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!