Separate part of function's codes as script?
Afficher commentaires plus anciens
I have a question, is it possible to separate the part of a function into a separate script, which still can get access to inputs of original function and give values back to caller function?
/-------------------------------/
<File 1: f.m>
function f()
input = 1;
....
% Call the script
script.m
....
output = output + 1;
/-------------------------------/
/-------------------------------/
<File 2: script.m>
output = input + 1;
/-------------------------------/
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Simulink Functions dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!