logical data some time is not 0/1
Show older comments
function startupFcn(app, setting)
app.Calling_Predy2=settings;
app.UITable.ColumnName=["Strategy";"On";"Underlying";"Trading";"OOS";"Sipp.source";"Slippage";"Type";"Horizon";"Filter skip";"Static Size";"Min Size";"Max Size";"Min AvgTrade";"Select"];
app.UITable.ColumnEditable=[false,true,false,true,true,true,true,true,true,true,true,true,true,true,true];
cat = categories(app.Trading);cat2=categories(app.SlippSource);cat3=categories(app.Type);cat4=categories(app.Horizon);cat5=categories(app.SiNo);
colu={'char' 'logical' 'char' {cat{:}} 'char' {cat2{:}} 'char' {cat3{:}} {cat4{:}} {cat5{:}} 'char' 'char' 'char' 'char' 'logical'};
app.UITable.ColumnFormat=colu;
app.SaveAsButton.Visible="off";
app.SaveButton.Visible="off";
app.Edit_Button.Visible='off';
...
..
colu={'char' 'logical'.. ===> i set "logical" the second column of table
then i go in app designer and i change value of "On" (pics 1.png), i save it
and i check it using import(file)
and i see similar to this (see 2.png)
i see true and false.... (but having set the field as logical they should all be 0/1)
Accepted Answer
More Answers (0)
Categories
Find more on Data Type Conversion in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!