how can i create a GUI for scilab????

12 vues (au cours des 30 derniers jours)
taufiq khot
taufiq khot le 24 Août 2015
Commenté : Walter Roberson le 16 Août 2025 à 9:05
i had a spring damper system and i wrote a scilab code for plotting a graph of TIME VS DISPLACEMENT. now i want to make a GUI for it, so that i can take a value from user and plot a graph simultaneously on same screen. my problem is i am not able to code gui in scilab nor in matlab?? can u plz help me in this??///

Réponses (1)

TED MOSBY
TED MOSBY le 16 Août 2025 à 7:51
Hi,
As a starting point you can follow the workaround below to code the GUI:
  1. We need a small GUI where the user enters and the app plots displacement x(t) for the system mx¨+cx˙+kx=0
  2. Write the model you’ll solve (2nd-order → 1st-order). Use MATLAB's ODE solvers for this.
  3. Pick the numerical method . Use ode45 (adaptive Runge–Kutta).
  4. Decide the GUI controls (what the user touches).
  5. Make a uifigure and lay out controls (grid layout is easiest), add a uiaxes for the plot, and a label for the damping info.
  6. Wire the events i.e. how the app reacts. Then validate the inputs
  7. Assemble the ODE from the inputs. Perform integration.
  8. Plot and display.
Hope this helps!
  1 commentaire
Walter Roberson
Walter Roberson le 16 Août 2025 à 9:05
Note: uifigure() and grid layout were not available when this question was originally asked in 2015.

Connectez-vous pour commenter.

Catégories

En savoir plus sur App Building dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by