'Exceedes array bounds' In Matlab App
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hi everyone,
the question is simple:
why can I do this
>> DATA(1:15,[1:4,13])
ans =
0 0.1803 0.3203 0.7438 0.4269
0.0000 0.1897 0.3556 0.8024 0.3909
0.0001 0.1156 0.3319 0.6641 0.3755
0.0001 0.1996 0.3653 0.8183 0.3961
0.0002 0.0993 0.3325 0.6299 0.4166
0.0002 0.0767 0.3281 0.5458 0.4681
0.0002 0.0000 0.3000 0.3317 0.3806
0.0003 -0.0236 0.3770 0.3004 0.3652
0.0003 -0.0959 0.3123 0.2093 0.3652
0.0004 0.0359 0.4026 0.4127 0.3549
0.0004 0.1000 0.4768 0.6102 0.3034
0.0004 0.0792 0.4322 0.5611 0.4990
0.0005 0.1652 0.4498 0.6640 0.3240
0.0005 0.0736 0.3865 0.4678 0.3446
0.0005 0.1145 0.4484 0.5628 0.3549
in my command line, but when I do this (on the same data)
% Display in table
app.LoadedDataTable.Data = app.DATA(1:15,[1:4,13]);
I get an "index in position 1 exceedes array bounds" error? (The table is also set up to have 5 columns.)
The second is in an App environment where I'm simply trying to display the data in matrix DATA in a UiTable component.
Thanks.
0 Commenti
Risposte (1)
Kevin Holly
il 11 Ago 2022
Modificato: Kevin Holly
il 11 Ago 2022
Have you tried debugging the line
app.LoadedDataTable.Data = app.DATA(1:15,[1:4,13]);
I would check the size of app.DATA
I believe you may be exceeding the array bounds of app.DATA. Once you are in debug mode and trigger that line, type the command below in the command window which should show k>> in debug mode.
size(DATA)
I made a test app, but could not replicate your error (see attached).
0 Commenti
Vedere anche
Categorie
Scopri di più su Operators and Elementary Operations in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!