Afficher commentaires plus anciens
%%%代码如下所示:%%%
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);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%运行图中坐标标题和数据标签都有显示%%%
%%%%%%
问题来了!
画面里横纵轴的数据标签和标题超出画面范围看不到了。
求大神解答!!!
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur 图像算术 dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!