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!