Slider in live editor
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Luca
am 15 Apr. 2018
Beantwortet: David Garrison
am 19 Apr. 2018
Hi guys, How could I create 3 uislider and catch corrispondent values?
this is my code:
sld1 = uislider(); sld1.Limits = [0.2 0.5]; c=get(sld1.Value)
sld2 = uislider(); sld2.Limits = [0.01 0.1]; C_r=get(sld2.Value)
sld3 = uislider(); sld3.Limits = [1*10^(3) 10*10^(3)]; k=get(sld3.Value)
% disegna la funzione ftheta=vibrazione(c,C_r,k)
figure('Name','Vibrazione in funzione della pulsazione naturale e smorzata.','NumberTitle','off'); plot(t,ftheta,'r','LineWidth',1) legend('Vibrazione in funzione della pulsazione naturale e smorzata.') % xticks(0:0.25:1) ylabel('\theta(t) in radianti') xlabel('tempo in secondi')
0 Kommentare
Akzeptierte Antwort
David Garrison
am 19 Apr. 2018
In R2018a, you can add sliders and dropdowns in a live script. Search the documentation for "Add Interactive Controls to a Live Script".
0 Kommentare
Weitere Antworten (0)
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!