Skip to content
Snippets Groups Projects
Commit ab387f43 authored by Wang Shiwen's avatar Wang Shiwen
Browse files

Upload New File

parent 8249211a
No related branches found
No related tags found
No related merge requests found
pic_num = 1;
% set(gcf,'Position',[0,0,800,400]);
for i = 2:length(value(1,:)) / 5
figure(1)
% set(gcf, 'color', 'w'); % 背景颜色为白色
set(gca, 'units', 'pixels'); % 设定单位为像素
set(gcf, 'units', 'pixels');
set(gcf, 'position', [80,80,1000,600])
set(gca,'FontName','Times New Roman','FontSize',10);
set (gca,'position',[100,100,800,400])
plot(t(1:i*5),value(1, 1:i*5),LineStyle="-", LineWidth=1.5);
hold on
plot(t(1:i*5),value(3, 1:i*5),LineStyle="--", LineWidth=1.2);
legend(['P', "Activator"], 'FontName','Times New Roman','FontSize',10, 'location','NorthWest')
title("Desired Data",'FontName','Times New Roman','FontSize',15)
xlabel("Time/s",'FontName','Times New Roman','FontSize',12)
ylabel('Concentration', 'FontName','Times New Roman','FontSize',12)
axis([0 200 -0.5 max(value(1,:))]+0.1)
grid on
% grid on
% daspect(1,0.6)
hold off
% drawnow
% frame = getframe(fig);
% im{idx} = frame2im(frame);
% legend(name_list, 'FontName','Times New Roman','FontSize',7, 'location','NorthWest')
%
% % xlim([0, t(-1)]);
% ylim([0, max(value)]);
F=getframe(gcf);
I=frame2im(F);
[I,map]=rgb2ind(I,256);
if pic_num == 1
imwrite(I,map,'Desired.gif','gif','Loopcount',inf,'DelayTime',0.1);
%
else
imwrite(I,map,'Desired.gif','gif','WriteMode','append','DelayTime',0.1);
end
pic_num = pic_num + 1;
end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment