how to create column vector by inputs with matlab app designer to have final vector throught inputs
Mostrar comentarios más antiguos
i want get a column vector or row using app designer to use it in its final form not one by one throught user inputs which are changed.
thanks for help
6 comentarios
Dyuman Joshi
el 6 de Jul. de 2025
If I am understanding correctly, you want to get a vector of data from the user as an input, and then process it afterwards?
m.montaser sabry
el 6 de Jul. de 2025
User numeric data other than a single element isn't really well handled by the available controls; probably the most convenient for the user would be to use a <Table> component in which the user can edit the various columns (or rows depending on your chosen orientation). In the examples there is one on code response to user editing.
The alternative is just a text box in which user types free form data...this is possible but fraught with all the issues of bad syntax, bum characters, etc., etc., ... to handle.
Other than that, one is basically reduced to either multiple text boxes or other controls like the slider, etc., for the various elements and then put them together programmatically for the vector, or prompt in a loop. I don't think there's any really ideal solution.
I have resorted with the Foundation office staff to opening an Excel spreadsheet for them to work in, but that also has issues of getting the user to follow the rules in formatting, placing, saving the file before continuing, etc., etc., ...
Stephen23
el 6 de Jul. de 2025
I second dpb's suggestion, a UITABLE is likely a good approach.
dpb
el 7 de Jul. de 2025
"... a UITABLE is likely a[s] good approach.[as there is]"
m.montaser sabry
el 8 de Jul. de 2025
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Workspace Variables and MAT Files en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
