Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as Matlab by xixor ( 17 years ago )
%% main.m - main driving file to call some functions


[a,b,c] = some_function();

fprintf('%s\n',a);  % this prints the string variable that is returned

fprintf('%g\n',b); % this should print 3.14159

fprintf('%g\n',c); % this will print 3.14159 -pi


%% SEE HOW THE NAMES OF THE VARIABLES a,b,c DO NOT MATCH THE NAMES IN some_function.m
% IT IS THE ORDER OF OUTPUT THAT MATTERS

 

Revise this Paste

Your Name: Code Language: