use for loop to create a big Array out of a few smale Ones
Mostrar comentarios más antiguos
HeyHo, i have create a function that gives me 9 subplots. Now I want to get all the y Values and write them into ONE big Array. How do i do it ?
Data = findobj('type','axes')
Data = sort(Data)
for i = 1:length(Data)
PlotLines = get(Data(i),'children')
PlotLines = sort(PlotLines)
yValues = get(PlotLines(3),'ydata')
%StoreArray(i) = yValues %%does not work
end
I go into every axes handel, take its children and get the yValues. Now i want to store them in one Array.Pls try to use my given Code to help me but feel free to optimize it.
Respuesta aceptada
Más respuestas (1)
Max Müller
el 22 de Ag. de 2014
0 votos
1 comentario
Image Analyst
el 22 de Ag. de 2014
It shouldn't be that complicated. See the FAQ: http://matlab.wikia.com/wiki/FAQ#How_can_I_share_data_between_callback_functions_in_my_GUI.28s.29.3F
Categorías
Más información sobre Annotations en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!