how to make equation solving calculator in matlab gui
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I want to make a calculator in matlab gui that can solve the equation. first write the whole equation on single box(just as calculator screen) and on pressing push button it gives the answer. without using gui it can be done as(example): c = solve(’2*x - y = exp(-x)’, ’x + 2*y = exp(-y)’); c.x ans = 0.42551406154010883454714967781887142 c.y ans = 0.19759432948542880834848668074929059 but in gui how can i do this
0 commentaires
Réponses (1)
mizuki
le 30 Déc 2016
1. Create a callback for the pushbutton (on .fig, right click and select callback - it will create a callback function in .m)
2. Copy and paste your function under the pushbutton callback
3. Put one textedit on .fig
4. Show it to the textedit by adding the code under the pushbutton callback such as
handles.textedit1.String = c.x;
0 commentaires
Voir également
Catégories
En savoir plus sur Migrate GUIDE Apps 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!