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
Best Answer