MATLAB: Attempt to call constructor uitable with incorrect letter case

error

f = figure('Position',[100 100 400 150]);
dat = {6.125, 456.3457, true, 'Fixed';…
6.75, 510.2342, false, 'Adjustable';...
7, 658.2, false, 'Fixed';};
columnname = {'Rate', 'Amount', 'Available', 'Fixed/Adj'};
columnformat = {'numeric', 'bank', 'logical', {'Fixed' 'Adjustable'}};
columneditable = [false false true true];
t = uitable('Units','normalized','Position',…
[0.1 0.1 0.9 0.9], 'Data', dat,...
'ColumnName', columnname,...
'ColumnFormat', columnformat,...
'ColumnEditable', columneditable,...
'RowName',[]);
% this example from matlab help. When I run these codes I receive "Attempt to call constructor uitable with incorrect letter case" error.

Best Answer

It worked fine for me, after I got rid of your blank lines. Please read this: http://www.mathworks.com/matlabcentral/answers/13205-tutorial-how-to-format-your-question-with-markup