Use of variables in a new function

I already have some variables calculated in Matlab. I am going to run a function in which a couple of those variables are used. When I run my function, I get the error of undefined variables. How can I use those variables in my new function?
Thanks,

1 Comment

I don't want to include calculation steps for those variables in my function, that's why I am going this way.

Answers (0)

This question is closed.

Asked:

on 18 Jun 2012

Closed:

on 20 Aug 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!