Specify What to Edit for User

2 Ansichten (letzte 30 Tage)
Ephraim Bryski
Ephraim Bryski am 10 Jul. 2019
Bearbeitet: per isakson am 30 Jul. 2019
I'm writing code which should allow the user to edit certain sections, and I want to make it clear to the user where they should edit (it doesn't have to prevent them from editing other stuff). The user would select what they want to modify in the code (through a GUI) and it would take them to the correct section of the code. I thought of a number of options (unfolding only that section, disabling editing other code, moving to the correct line) but I couldn't find a command to do any of these things. (Having it display something in line through live editor won't work because it's a class). Does anyone know how you might implement this?
  26 Kommentare
Ephraim Bryski
Ephraim Bryski am 13 Jul. 2019
I thought about all this and I described how the api should work here. I still have to learn a bit more I think before I start coding (things like handle functions, handle functions as inputs, assert). I also don't know how good my basic idea so far is.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Image Analyst
Image Analyst am 12 Jul. 2019
I'd just use app designer or guide and make a gui with either 3 radio buttons or a drop down list (popup) with three selections. Then in the main part of your code, you can check the state of the GUI controls to see which of your available options they selected.
  4 Kommentare
Ephraim Bryski
Ephraim Bryski am 13 Jul. 2019
If you're referring to the GUI, I decided the first thing I'll do is get rid of it.

Melden Sie sich an, um zu kommentieren.


Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange





Community Treasure Hunt

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

Start Hunting!

Translated by