⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 contpath.m

📁 一个基于打靶法的最优控制求解软件 求解过程中采用参数延续算法
💻 M
字号:
% Discrete continuation path scriptclear all; format long;  filename=input('Data file prefix: ','s') fid=fopen([filename '.contpath']); % Discrete continuation pathtext=fgets(fid)% Problem size and path lengthtext=fgets(fid)n = fscanf(fid,'%d',1) imax = fscanf(fid,'%d',1) % Pathblank=fgets(fid);text=fgets(fid)for i=1:imax  path(i,:) = fscanf(fid,'%f',n+1);endfclose(fid) for i=1:nfigure;hold on;title(['PATH COMPONENT ',int2str(i)],'FontSize',12) plot(path(:,i),path(:,n+1),'b+','LineWidth',2);set(gca,'FontSize',16) end 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -