To input an array in an edited field in App Designer in Matlab, you can use a textbox component and allow users to enter the values separated by a delimiter (e.g., space, comma). You can then convert this input to an array in your code.
Here's an example of how you can achieve this:
Drag and drop a Text Field component from the Component Library to your App Designer UI.
In the Callback section of the Text Field component, add the appropriate code to convert the input string to an array.
main.m360 chars10 lines
This approach will enable users to enter an array in an edit field in App Designer, which you can then process in your Matlab code.
Remember to add error handling in case the user enters invalid input.
gistlibby LogSnag