Custom Datatip Cursor Code that can display data from a workspace?
7 ビュー (過去 30 日間)
古いコメントを表示
I have a script that generates a graph of points by looping a function, and I wish to use the Datatip Cursor to click on a point and have it tell me some values (inputs, outputs) that were used to calculate the X and Y of that point.
I have tried several different ways - at first I thought I could simply pass the datatip cursor function a vector or matrix of values that was already in the workspace, but that doesn't work, which makes sense. I've tried saving the workspace in the script that makes the graph, and loading it or otherwise attempting to refer to it later, but that doesn't seem to work either.
When I run the script to get the X and Y points that I subsequently plot, simultaneously I get "point label data" that I save, which is what I want to display when I click. I keep getting "error with custom datatip function" though.
0 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Axis Labels についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!