Why is GUIDE not allowing me to have one (1) column and three (3) rows in my table? It seems as if the default table is 4 x 2

조회 수: 3 (최근 30일)
Is there away i can get a 3x1 table
thanks in advance,
Cordelle

채택된 답변

Sean de Wolski
Sean de Wolski 2013년 6월 25일
In the table's createFcn add the following line:
set(handles.table1,'Data',cell(3,1));
Where table1 is the 'Tag' of your table.
  댓글 수: 12
Cordelle
Cordelle 2013년 6월 25일
yes, it works. I dont know why its not working on the GUI i already created. I guess i just have to work on it.
Thank you
Sean de Wolski
Sean de Wolski 2013년 6월 25일
If you want default contents, instead of setting an empty cell, set it to some default values.

댓글을 달려면 로그인하십시오.

추가 답변 (2개)

Iain
Iain 2013년 6월 25일
In your workspace, generate the default contents for the table. Set the data on the table to that.
  댓글 수: 3
Cordelle
Cordelle 2013년 6월 25일
Lain,
can you give me directions on how to go to the workspace and generate the default contents of the table?
Iain
Iain 2013년 6월 25일
ok Cordeiie,
At your matlab command line type something like:
default = {5 '4' 3};

댓글을 달려면 로그인하십시오.


Neman Abdoli
Neman Abdoli 2021년 11월 10일
You can also set the width of the column you wanna remove to 0.

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by