How to use imscrollpanel(hFig,hIm) in a Live Script

Executing the following code in an m.file works nice:
%% Example
load mri
hFig = figure();%'Toolbar','none','Menubar','none');
hIm=imshow(cell2mat(reshape((num2cell(squeeze(D),[1 2])),[],1)'),[]);
hSP = imscrollpanel(hFig,hIm);
but using that code in a live script does not allow to use the scroll bar.
Any suggestions how to make it interactive?
many thx
Peter

2 Kommentare

Neeraj
Neeraj am 21 Sep. 2022
This code is working fine in MATLAB R2022a in a live script
HI!
thx for testing but in the output window of the live editor the scroll bar is not interactive. Its just an image and shows the scroll bar in the middle (yes the additional external opend image works).

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Medical Physics finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2019b

Gefragt:

am 21 Sep. 2022

Bearbeitet:

am 21 Sep. 2022

Community Treasure Hunt

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

Start Hunting!

Translated by