This question is not about mathematics, within the scope defined in the help center.
Closed 6 years ago.
I don't really know how to explain what I'm after without an example. I guess the title could be better but I'm not sure how to describe the issue.
I've got the following function
Now I want to use f(z) as a function handle in the next function as the input "func" and I want x and y back from f(z) to use separately in the 2nd function.
But I get the following error when trying to do so
How do I get x and y back separately? This doesn't seem to be working.
I also tried:
but this assigns x to the first index of x and y to the 2nd index of x. How do I get it to do what I want, whilst keeping the input name as "func" and using f(z) which returns 2 outputs?