Displaying two functions by use of subplots
이전 댓글 표시
Good evening everyone,
I have, what I hope is, a very simple question. I'd like to display two functions (by use of subplots ) side-by-side and starting at the same time.
Below is a brief explanation of each of the functions does.
function_scatter - a simple scatter graph.
function_images - displays a folder full of images with imshow.
subplot(2,1,1), function_scatter();
subplot(2,1,2), function_images();
I am able to display them one after another, but they will not stay side-by-side or start simultaneously.
Thanks for your help,
댓글 수: 3
Walter Roberson
2012년 12월 3일
What do you mean by "start simultaneously" in this situation? scatter plots are static so they cannot be said to "start" ?
How are you updating the images with imshow() ?
Dan
2012년 12월 3일
José-Luis
2012년 12월 3일
Make a single function combining the two you have and pass the handle of both subplots to it. Plot inside the new function.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Subplots에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!