How can the data from a script m file be accessed by a function?

I have a .m script file which contains data that is required for the execution of a function .m file. How to access that data. Simply writing the name of the script file in the function does not work.

1 Comment

In what sense does "writing the name of the script file in the function" not work? This is exactly the correct procedure for doing this.

Answers (0)

This question is closed.

Tags

Asked:

on 8 Jul 2013

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!