hi……i created two functions(add,sub).in sample.m file, i called this two function with below paths.
path_01 = 'C:\Users\Desktop\folder\'; path_02= 'C:\Users\Desktop\folder\add\';.the input is a .txt file is located in path_01..to access the file,i called this path_01 file globally inside add like below,but the add() function is working here..any ides to solve this?? inside function add.m function add() global path_01 ...... .... end
Best Answer