From: fraser5002 on
Hi i have a gui with 2 axes handles

i have a matrix that is 1024 * 45 elements

i want one of the graphs to display an imagesc of the matrix and the other a surf plot

i currently use the following

axes(handles.axes1);
imagesc(matrix);

axes(handles.axes2);
surf(matrix);

According to the profiler this is where my code is getting held up for the majority of the time . Is there any way to speed up this code?

Thanks
Fraser
From: us on
fraser5002 <fraser.dickson(a)selexgalileo.com> wrote in message <364981867.304789.1267618081544.JavaMail.root(a)gallium.mathforum.org>...
> Hi i have a gui with 2 axes handles
>
> i have a matrix that is 1024 * 45 elements
>
> i want one of the graphs to display an imagesc of the matrix and the other a surf plot
>
> i currently use the following
>
> axes(handles.axes1);
> imagesc(matrix);
>
> axes(handles.axes2);
> surf(matrix);
>
> According to the profiler this is where my code is getting held up for the majority of the time . Is there any way to speed up this code?
>
> Thanks
> Fraser

a hint:
- sometimes(!) this helps...

set(gcf,'visible','off');
imagesc(peaks(128));
set(gcf,'visible','on');

us