Undefined function or variable
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi!
I have two different Datas(data1,data2) and one function, that makes some stuff:
data1 = dir;
resultsData1 = myfunction(data1);
cd
data2 = dir;
resultsData2 = myfunction(data2);
function [var1,var2,var3,var4] = myfunction(direct)
...
end
How can I get later all variables : var1,var2,var3,var4 separete for data1, data2?
I have tried :
data1 = dir;
resultsData1 = myfunction(data1);
resultsData1{1} = var1;
resultsData1{2} = var2;
cd
data2 = dir;
resultsData2 = myfunction(data2);
function [var1,var2,var3,var4] = myfunction(direct)
...
end
But doesnt work. Error : Undefined function or variable . May you help me please ?
A lot thanks in advance!
Réponses (1)
Voir également
Catégories
En savoir plus sur Calendar dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!