From: Adam Chapman on
Hi,

I've been trying to modify the "oceanmap" gui on the file exchange
(http://www.mathworks.fr/matlabcentral/fileexchange/8350) for my own
purposes.

I want to set the column Width in code, but am getting an error that I
don't understand.

I have pasted my code for setting the column headers and the last line
is my attempt at setting the column widths:

-----------------------------------------------

set(handles.activex1,'Row',0);
set(handles.activex1,'Col',0);
set(handles.activex1,'Text','');
for k = 1:get(handles.activex1,'Cols')-1
set (handles.activex1,'Col',k);
%set (handles.activex1,'Text',[num2str(k)]);
if k==1
set(handles.activex1,'Text','Speed (rpm)');
elseif k==2
set(handles.activex1,'Text','Torque (Nm)');
end
end
set(handles.activex1,'ColWidth',5)

-----------------------------------------------

the last 'colwidth' line gives an error:

??? Error: Missing a required parameter

Error in ==> torquecurveinput2>labelupdate at 101
set(handles.activex1,'ColWidth',5)

Something strange is that in GUIDE I can't edit the field
"ColWidth".

Any help is greatly appreciated