How to plug in values from for loop to a single formula?
Show older comments
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
Accepted Answer
More Answers (0)
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!