how to solve index exceeds matrix dimensions in matlab
Afficher commentaires plus anciens
GaugeTypePanel=findobj('Tag','GaugeTypePanel');
GaugeTypetable=findobj('Parent',GaugeTypePanel,'Type','uitable');
GTtableData=get(GaugeTypetable,'Data');
TBW=4;
TBH=2;
pPpos=get(sdbTablePanel,'Position');
formatTable=uitable('Parent',vTabs(1),...
'Units','characters',...
'Position',[0.00 pPpos(4)-2*TBH-4 pPpos(3) TBH],...
'tag','sdbFormatTable',...
'ColumnFormat',repmat({transpose(GTtableData(:,1))},1,size(resultsInj,2)),...
'ColumnEditable',true(1,size(resultsInj,2)),...
'RowName',[],'ColumnName',[],...
'Data',[{'Skip'} {'Date/Time'} {'Skip'} repmat({'N/A'},1,size(resultsInj,2))]);
I get the error while executing line for formatTable. Please help!
2 commentaires
Guillaume
le 5 Juin 2017
Well, what is the size of
vTabs
pPpos
GTableData
Also, make sure that you have no variable called
size
transpose
Siddhesh Shelke
le 6 Juin 2017
Réponses (0)
Catégories
En savoir plus sur Matrix Indexing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!