Possible MatLab versions incompatibility
1 回表示 (過去 30 日間)
古いコメントを表示
The attached function was developed using MatLab 2011. Line 104 in the attached function Image.m :
% Set parent object in list of arguments to be passed to the image function
*imageargs = [imageargs 'Parent' handles.main_axes];*
triggers an error message that reads: “ Error using matlab.graphics.axis.Axes/horzcat Conversion to matlab.graphics.axis.Axes from cell is not possible. ”
We changed it as follows:
*imageargs = [imageargs 'Parent' double(handles.main_axes)];*
Now function EImage works. The results of its elaborations are displayed on a graphic window that, unluckily, cannot be resized. We suspect something about the window 'Parent' is wrong after our patch. We would greatly appreciate knowing the right correction to apply.
Thank you in advance. Sincerely, Maura Monville
5 件のコメント
回答 (1 件)
Adam
2016 年 9 月 16 日
I assume this array gets interpreted somewhere later on so you should probably just add
{ handles.main_axes }
to the array rather than converting to double, since it appears to be a cell array anyway, then just interpret it as such when you use it.
3 件のコメント
Adam
2016 年 9 月 16 日
It doesn't seem like your problem is related to the parent - if it is correctly set to be the right axes then this should not affect the resizeability of the window containing those axes.
参考
カテゴリ
Help Center および File Exchange で Interactive Control and Callbacks についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!