How to call a matrix in another pushbutton_callback?

1 view (last 30 days)
I am using a algorithm in GUI in a callback which is giving an matrix 'c'. Now I want to plot this matrix 'c' with another matrix 'x' but in another callback function. Can anyone please tell me how to call these matrices.
  1 Comment
Brij Bhushan Singh
Brij Bhushan Singh on 23 Jun 2015
I have a kX1 matrix 'depth' and kXm matrix 'c'. My GUI command for plot is Depth=handles.Depth c=handles.c l=length(Depth) for i=1:l hold on plot(c(:,i),Depth) c is kXm and depth is kX1. Now please tell me how to give fill command in GUI and scale x-axis from zero to 1 in gui.

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 21 Jun 2015
First routine:
handles.c = c;
guidata(gcbo, handles);
Second routine:
c = handles.c;

More Answers (0)

Categories

Find more on Polar Plots in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!