How can I control two different signals with one slider
1 view (last 30 days)
Show older comments
Hello, I’m building a GUI that supposed to display two different signals in two different axes. How can I control the two different signals simultaneously with one slider. I use the following code for first sinusoidal signal:
freq=get(handles.slider1,'Value');
ampl=get(handles.slider2,'Value');
t=0:1/freq/100:10/freq;
y=ampl*sin(2*pi*freq*t);
axes(handles.axes1);
plot(t,y,'k')
title('Sinusoidal Signal');
ylabel('Amplitude--->');
xlabel('Time--->');
0 Comments
Answers (0)
See Also
Categories
Find more on Signal Processing Toolbox 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!