AVI 格式视频输出问题。
이전 댓글 표시
%%%代码如下所示:%%%
clear
aviobj = VideoWriter('test3.avi');
aviobj.FrameRate=10;
open(aviobj);
fig=figure;
x=0:1:3000;
for i=1:length(x)
y=0.008*sin(0.2996*i*x+1.92)-0.00016*sin(0.7997*i*x+1.714)+1.516;
plot(x,y,'b')
xlabel('Time (s)')
ylabel('R (Ω)')
set(gca,'XTick',0:1000:3000);
set(gca,'XTicklabel',{'0','1000','2000','3000'});
set(gca,'YTick',0:1:2);
set(gca,'YTicklabel',{'0','1','2'});
axis ([0 3000 0 2]);
pause(1)
currFrame = getframe;
writeVideo(aviobj,currFrame);
end
close(aviobj);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%运行图中坐标标题和数据标签都有显示%%%
%%%%%%
问题来了!
画面里横纵轴的数据标签和标题超出画面范围看不到了。
求大神解答!!!
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 图像算术에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!