I am creating a function in matlab which extracts data out of different functions. I have 6 different functions which are really basic. My goal in the function I am building is to extract the input\output variables as a cell array and display the results in a structure. For example , I extracted the name of the function to a structure.
% This function extracts the name of the function in the function path , as
% well it gives information on the input and output variables
function info=extractInfo(functionPath)
% A simple function which returns the path of the function(p) , the name
% (name) and the extension (e)
function name=getFuncName(funcPath)
[p,name,e]=fileparts(funcPath);
end
% Get the name of the function
name=getFuncName(functionPath);
input=????
%insert into struct form
info=struct('functionName',name);
end