call data plot graph on click

조회 수: 4 (최근 30일)
Jay Desai
Jay Desai 2016년 3월 5일
댓글: Walter Roberson 2016년 3월 5일
pain = abs(pa_in_d4(:,1));%Sample Points
paout = abs( pa_out_d4(:,1));%empirical result at each sample point
%n=10;
figure(1);
plot(pain,paout);grid on;
title('pa_in_d4 V/S pa_out_d4');
xlabel('pa_in_d4(db)');
ylabel('pa_out_d4(db)');
how to call this data and plot a graph on click in gui.
  댓글 수: 1
Jay Desai
Jay Desai 2016년 3월 5일
I am new to gui and I am trying to write function but not able to write down a code. is there any pre define function that I can use directly and pass my parameters?

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2016년 3월 5일
You can use an axes ButtonDownFcn callback, or a figure ButtonDownFcn callback, or an figure WindowButtonDownFcn callback. Or possibly you want to use a uicontrol('style','push') with a Callback callback.
  댓글 수: 2
Jay Desai
Jay Desai 2016년 3월 5일
I am new to gui and I am trying to write function but not able to write down a code. is there any pre define function that I can use directly and pass my parameters?
Walter Roberson
Walter Roberson 2016년 3월 5일
No. No-one has happened to need that general sequence closely enough for anyone to have bothered to program it to be able to just pass in parameters.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by