uitable callback: replace cell in a cell array with 'char' string value gives NAN not 'text'
古いコメントを表示
I have a mat file with a cell array with various numbers and text. I load this into a uitable and give the user the opportunity to change the values of certain cells then it auto saves to csv (cell2csv). This works fine for pop-up and numeric columnn formats, but if the column format is set at 'char' 'ABC' it appears as NaN in the table/cell array.
My callback is basically: datacellarray(event.Indices) = {event.NewData}
I've tried [] {} () in various positions and tried inputting different things in the uitable cell and setting the uitable column format to no avail. I am sure it is something completely obvious but I can only bang my head against the wall for so long. Any help/insight is greatly appreciated.
5 件のコメント
G
2011 年 8 月 29 日
G
2011 年 8 月 29 日
Fangjun Jiang
2011 年 8 月 29 日
That's fine. What is your MATLAB version?
Fangjun Jiang
2011 年 8 月 29 日
In earlier release, if you type help uitabel, you will see
This function is undocumented and will change in a future release
G
2011 年 8 月 29 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Characters and Strings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!