NaN when I type "known" variables (like pi, etc) in an editable uitable
Show older comments
Hi,
I have an uitable with 2 columns and its ColumnFormat are char and numeric; the numeric column is editable.
When I type pi or pi/2 it returns 'NaN' where I type.
Matlab Help suggests to use CellEditCallback command, but I don't understand how I shoud use it and how can it solves my problem.
Thanks
Accepted Answer
More Answers (1)
Azzi Abdelmalek
on 21 Jan 2013
0 votes
If you want to type pi/2, then make your column format char
4 Comments
Marco
on 21 Jan 2013
Azzi Abdelmalek
on 21 Jan 2013
Edited: Azzi Abdelmalek
on 21 Jan 2013
Because the previous value was not a string
Azzi Abdelmalek
on 21 Jan 2013
If you want to use pi/2 as numeric , just use the function str2num
Marco
on 21 Jan 2013
Categories
Find more on Logical in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!