How can i drag and drop ?

3 views (last 30 days)
graja sara
graja sara on 4 Apr 2019
Commented: graja sara on 9 Apr 2019
How can I drag and drop??
I have 4 axes containing signals in a gui/matlab R2013b.How can I drag and drop each signal in a new axe to draw time spectrum (the 4 spectrums must be in the same axe)???

Answers (1)

Jan
Jan on 4 Apr 2019
Edited: Jan on 4 Apr 2019
Matlab does not have the feature for using drag&drop by mouse. But the copyobj command let you copy the contents of one axes into another one.
  4 Comments
Jan
Jan on 8 Apr 2019
It depends on what "its frequency representation" is. So created it and display in in the 2nd axes object.
If your question contains more details, a more detailed answer would be possible.
graja sara
graja sara on 9 Apr 2019
I have the first 'push button':
function Load_button_Callback(hObject, eventdata, handles)
axes(handles.axes1);
[filename pathname]=uigetfile({'*.*'},'data');
fullpathname=strcat(pathname,filename);
signal=fileread(fullpathname);
x=str2double(signal);
load('data.mat');
t=0:1/1000:1;
plot(t,x);
the second 'push button' :freq_representation of the signal in 'axes2'
how can I write the code of the second push button ??

Sign in to comment.

Categories

Find more on Visual Exploration in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!