Error using insertShape when I try to insert the ROI labels

2 ビュー (過去 30 日間)
Fahad Parvez Mahdi
Fahad Parvez Mahdi 2018 年 10 月 3 日
コメント済み: Harimohan Jha 2019 年 11 月 7 日
I am getting the following error when I try to insert the ROI labels in loaded image (I)
Error using insertShape Expected POSITION to be one of these types:
cell
Error in insertShape>checkPosition (line 283) validateattributes(position,{'cell'}, {'nonempty', 'vector'}, ...
Error in insertShape>validateAndParseInputs (line 232) checkPosition(position);
Error in insertShape (line 101) validateAndParseInputs(I, shape, position, varargin{:});
How can I overcome this problem? Please guide me.
  1 件のコメント
Harimohan Jha
Harimohan Jha 2019 年 11 月 7 日
Try to use str2num or str2mat function if data is if string data type. Else just try to convert data to mat. I hope this will solve your issue.

サインインしてコメントする。

回答 (0 件)

製品


リリース

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by