in Matlab App Designer, I'm building an App which imports a .csv.
I've added a Numeric Edit Field in which is displayed the Number of Rows of the Imported Table.
app.RowsEditField.Value = size(ImportedTable,1);
I would like to make this Edit Field interactive, so that whatever Number I type into that EditField, the Imported Table will be modified to have that number of rows.
If I change the Value to one smaller than the displayed number of Rows, can I make this 'chop' off the corresponding number of Rows in the Table?
If the Imported Table has 100 Rows, and the EditField displays '100', and I change that to 80, I'd like the App to then chop off 20 Rows, let's say the 20 first Rows, of the imported Table.
When I enter a Number greater than the number of Rows in the imported Table, it should simply reset my input to the number of rows, e.g. when I type 250 into the EditField, it should simply jump straight back at displaying 100, not add 150 rows into the Table.
Thank you most kindly in advance!