On Mon, Feb 04, 2019 at 14:36:59 -0600, usman wrote:
The directory view:
|-->EVD_Program
|-->example
|--> maincode.m
|-->Functions
|-->plotfunctions
|--> plotftn1.m
|--> plotftn2.m
|-->extension
|-->vehicle_data.m
|-->electric_machine_map.m
where plotftn1.m, vehicle_data.m, electric_machine_map.m are functions
called by maincode.m.
I don't know how to implement this for a number of functions that might be
in different directories of the parent directory.
QUESTION is " How do I include a command or a method that can do the same
operation like in MATLAB you just select include folder and subfolders and
everything works fine... how can I do this in OCTAVE??
I think you are looking for the function "genpath".
Calling
addpath (genpath ('/path/to/EVD_Program'))
will add EVD_Program and each subdirectory to the load path.