<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/142929</link>
    <title>MATLAB Central Newsreader - How to scroll uipanel?</title>
    <description>Feed for thread: How to scroll uipanel?</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Tue, 06 Mar 2007 11:04:41 -0500</pubDate>
      <title>How to scroll uipanel?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/142929#359713</link>
      <author>Munie Ahmad</author>
      <description>Hi there, anyone knows how to make uipanel scrolling down because I&lt;br&gt;
want to insert a large number of images and I want to use slider to&lt;br&gt;
make it scroll. how to do that? pls help me with this.. thanks :)</description>
    </item>
    <item>
      <pubDate>Tue, 06 Mar 2007 17:33:24 -0500</pubDate>
      <title>Re: How to scroll uipanel?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/142929#359720</link>
      <author>Titus</author>
      <description>Hi,&lt;br&gt;
you probably need to do it yourself, but shouldn't be too difficult:&lt;br&gt;
- add a usual slider&lt;br&gt;
- use subplot to e.g. display 5x5 images&lt;br&gt;
for i=1:5&lt;br&gt;
&amp;nbsp;&amp;nbsp;for j=1:5&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;im(i,j) = image(...);&lt;br&gt;
&amp;nbsp;&amp;nbsp;end&lt;br&gt;
end&lt;br&gt;
- use the callback of the slider to show different images, something like&lt;br&gt;
for i=1:5&lt;br&gt;
&amp;nbsp;&amp;nbsp;for j=1:5&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set(im(i,j), 'cdata', &amp;lt;imagevalues of image(i+slidervalue, j)&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;end&lt;br&gt;
end&lt;br&gt;
&lt;br&gt;
Titus&lt;br&gt;
&lt;br&gt;
&quot;Munie Ahmad&quot; &amp;lt;miz.jaggy18@gmail.com&amp;gt; schrieb im Newsbeitrag &lt;br&gt;
news:ef4fa8d.-1@webcrossing.raydaftYaTP...&lt;br&gt;
&amp;gt; Hi there, anyone knows how to make uipanel scrolling down because I&lt;br&gt;
&amp;gt; want to insert a large number of images and I want to use slider to&lt;br&gt;
&amp;gt; make it scroll. how to do that? pls help me with this.. thanks :) </description>
    </item>
    <item>
      <pubDate>Wed, 07 Mar 2007 22:20:04 -0500</pubDate>
      <title>Re: How to scroll uipanel?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/142929#360023</link>
      <author>Munie Ahmad</author>
      <description>Hi Titus, thank you very much for your solution, but unfortunately I&lt;br&gt;
cannot get it :( This is what I'm doing now:&lt;br&gt;
&lt;br&gt;
hf=figure('Visible','Off');&lt;br&gt;
for i=1:30&lt;br&gt;
im(i)=subplot(5,6,i);&lt;br&gt;
imshow(dicomread(dicominfo(dbimageID(sorted(i,2),:))),'DisplayRange',[&lt;br&gt;
]);&lt;br&gt;
end&lt;br&gt;
hn=copyobj(im,handles.uipanel2);&lt;br&gt;
close(hf);&lt;br&gt;
&lt;br&gt;
As for now, I only use single for-loop, and I copied the subplots to&lt;br&gt;
uipanel. How can I apply your solution to mine? for slider callback,&lt;br&gt;
what do u mean by &quot;imagevalues of image&quot;?&lt;br&gt;
&lt;br&gt;
&amp;nbsp;Titus wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Hi,&lt;br&gt;
&amp;gt; you probably need to do it yourself, but shouldn't be too&lt;br&gt;
&amp;gt; difficult:&lt;br&gt;
&amp;gt; - add a usual slider&lt;br&gt;
&amp;gt; - use subplot to e.g. display 5x5 images&lt;br&gt;
&amp;gt; for i=1:5&lt;br&gt;
&amp;gt; for j=1:5&lt;br&gt;
&amp;gt; im(i,j) = image(...);&lt;br&gt;
&amp;gt; end&lt;br&gt;
&amp;gt; end&lt;br&gt;
&amp;gt; - use the callback of the slider to show different images,&lt;br&gt;
&amp;gt; something like&lt;br&gt;
&amp;gt; for i=1:5&lt;br&gt;
&amp;gt; for j=1:5&lt;br&gt;
&amp;gt; set(im(i,j), 'cdata', &amp;lt;imagevalues of image(i+slidervalue,&lt;br&gt;
j)&amp;gt;&lt;br&gt;
&amp;gt; end&lt;br&gt;
&amp;gt; end&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Titus&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &quot;Munie Ahmad&quot; &amp;lt;miz.jaggy18@gmail.com&amp;gt; schrieb im Newsbeitrag&lt;br&gt;
&amp;gt; news:ef4fa8d.-1@webcrossing.raydaftYaTP...&lt;br&gt;
&amp;gt;&amp;gt; Hi there, anyone knows how to make uipanel scrolling down&lt;br&gt;
because&lt;br&gt;
&amp;gt; I&lt;br&gt;
&amp;gt;&amp;gt; want to insert a large number of images and I want to use&lt;br&gt;
slider&lt;br&gt;
&amp;gt; to&lt;br&gt;
&amp;gt;&amp;gt; make it scroll. how to do that? pls help me with this.. thanks&lt;br&gt;
:)&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;</description>
    </item>
  </channel>
</rss>

