Hi Cristian,
I understand that you are encountering an error related to a scalar name while trying to set a value from a "uitable" into an "edit" field in a MATLAB GUI.
I assume that the value you are trying to extract from the "uitable" is expected to be a scalar, and the error arises when the value is not scalar.
- Check the Table Structure: Ensure that the data you are retrieving from the "uitable" is indeed a single element. If "a(1,1)" is returning a table, make sure it contains only one element.
- Extract the Scalar Value: Use "table2array" to convert the table element to an array and ensure it is a scalar before setting it to the edit field.
- Handle Non-Scalar Values: If the value is not scalar, handle this case appropriately by displaying an error message or taking corrective action.
- Update the GUI: Ensure that the "edit" field is updated only when a valid scalar value is available.
- Test the Solution: Run your GUI application and test the solution with different inputs to verify that it handles both scalar and non-scalar values correctly.
Refer to the documentation of the "table2array" function for more details: https://www.mathworks.com/help/matlab/ref/table2array.html
Refer to the documentation of the "isscalar" function for more details: https://www.mathworks.com/help/matlab/ref/isscalar.html
Hope this helps!