Creating a Global Variable File

Hello. I need to create a global function for a variable which is a vector that is of the order [5130,1], that is 5130 columns and 1 row please. Thanks.

3 Kommentare

Guillaume
Guillaume am 18 Mär. 2016
Bearbeitet: Guillaume am 18 Mär. 2016
'global function' does not really mean anything. The first function in a m file is always global.
Can you explain a lot more clearly what it is you want to do? Maybe give examples.
Pavithra Ashok Kumar
Pavithra Ashok Kumar am 24 Mär. 2016
Hi,
As asked by Guillaume, kindly explain what you mean by global function. The function will be accessible as long as the function is present in the path of the system.
Private folders are an exception which you may want to look at if that is your use case.
For global variables, please refer to the documentation link given below,
Hope this helps.
Regards
Pavithra
Brendan Hamm
Brendan Hamm am 24 Mär. 2016
Rather for global variables you should refer to Stuart's blog post:
Avoid globals is the real take away here.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Gefragt:

am 18 Mär. 2016

Kommentiert:

am 24 Mär. 2016

Community Treasure Hunt

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

Start Hunting!

Translated by