How to set specific values from 3 edittextbox to 4 radio button (total of 12 static outputs).
Show older comments
Hi MatLab Users. I need some help. I have 4 radio buttons tag as channels (Channel1-4) and 3 editboxes which contains (Freq,Ampl, and Offset) to be Applied and also a display (Static Text) of all channels contains of its values.
How can I set the value of Frequency, Amplitude, and Offset of the specific radio button (from Channel1 to 4) without interrupting the other radio button and display it as Static Text.
Any ideas how to *set/*get handles this values
I'm trying to implement also the use of If-else button
like on Frequency set button under it i applied:
hz=get(handles.editFrequency,'String')
if hObject ==handles.channel1
a=get(handles.editFrequency, hz)
set(handles.editStatic1, 'String', a)
elseif hObject ==handles.channel2
b=get(handles.editFrequency, hz)
set(handles.editStatic2, 'String', b)
elseif hObject ==handles.channel3
c=get(handles.editFrequency, hz)
set(handles.editStatic3, 'String', c)
elseif hObject ==handles.channel4
d=get(handles.editFrequency, hz)
set(handles.editStatic4, 'String', d)
end
yet when i changed the Channel number the values are still on edisStatic1.
editstatic is the static text just to display the given values. editFrequency is the textbox name for editing frequency values
any ideas how to set the values of Freq., Amplitude, and Offset w/o Interrupting other values. thanks. I need some syntax Thanks!
Accepted Answer
More Answers (0)
Categories
Find more on Variables 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!
