setappdata and getappdata for multiple variables
Ältere Kommentare anzeigen
Hi,
I am trying to write a code like
function function1=givenfunction(variable)
for i=1:length(variable)
setappdata (0,'data_(i)',variable(i))
end
end
The '(i)' after 'data_' puts a number stored in 'i'. In another function, I would like to get the data like
function function2=anotherfunction
for i=1:length(variable)
m(i)=getappdata (0,'data_(i)')
end
end
How should I do it? Please help me.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu MATLAB Support Package for USB Webcams finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!