How to plug in values from for loop to a single formula?
Mostra commenti meno recenti
Hey guys, I was wondering, how would I input 3 variables that have multiple values into one equation in matlab? I ran my variables through a for loop so they have multiple values for each point and I have stored my values from each of the for loops into a single variable x. For example:
When x=1, y=2, z=3
When x=2, y=3, z=4
When x=3, y=4, z=5
Formula: x^2+y^2+z^2
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Loops and Conditional Statements in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!