Filter löschen
Filter löschen

access this is a probme

1 Ansicht (letzte 30 Tage)
Nasir Qazi
Nasir Qazi am 5 Mär. 2012
I have made a function file and in it i have a value assigned to a variable which save my results like this
bub(2,m)= T(L);
where T(L) is a variable changing values and every iteration i am saving the value of T(L) to bub(2,m) where 'm' is 1:8 iterations, problem I want to discuss is I want to access this bub(2,m)or bub(2,:) from other file for plotting it , how can I access it ?

Akzeptierte Antwort

Wayne King
Wayne King am 5 Mär. 2012
I'm not sure I understand, you can access it just as you have said.
bub(2,:)
returns all the elements of the 2nd row of bub.
You can assign that to another variable if you wish:
y = bub(2,:);
% plot(bub(2,:));
plot(y)
Can you be more specific, or if you are getting an error, show the code you are using that throws the error.
  1 Kommentar
Nasir Qazi
Nasir Qazi am 5 Mär. 2012
the value of 'y' is not all my saved bub(2,:) values , by doing this , I only have just one value of bub(2,:) so i cannot plot with just one value . u get my point ?

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Develop Apps Using App Designer finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by