Home How do I make a uitable in GUIDE of a specific format?
Reply: 0

How do I make a uitable in GUIDE of a specific format?

user1220 Published in May 26, 2018, 11:39 pm

I need to create a MATLAB GUI uitable of the following format:

Environment (Column name) ( Segm ,Arc,Circuit) (pop up menu options)

Location (column name) (City,country,Highway) (pop up menu options)

Environment is a column name and Segm,Arc,Circuit should come as popup menu options; similarly for the Location column name 'City,Country and Highway should come as pop up options) And also I need to create a checkbox in the third column.

I was creating the code for it but unfortunately it does not form the format wanted above:

type_environment ={'Segm' 'Arc' 'Circuit' 'Intersection' 'Round' 'Spline'};
type_Location ={'City' 'Country' 'Highway'};
columnname ={'Environment' , 'Location'};
tabledata =[type_environment type_Location];
columnformat = {'logical', 'logical'};
columneditable =  [false true]; 
handles.Load_data=uitable('Parent',figure,'Units','normalized','Position',[0.5 0.438 0.4913 0.3],'ColumnWidth','auto','Data', tabledata,'ColumnName', columnname,'ColumnFormat', columnformat,'ColumnEditable', columneditable,'RowName',[] ,'BackgroundColor',[.7 .9 .8],'ForegroundColor',[0 0 0]);
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.242498 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO