sonnetify.m

来自「利用matlab控制3维仿真软件sonnet的工具箱」· M 代码 · 共 28 行

M
28
字号
function [filename, SizeOfProject]=Sonnetify(newLen, width0, prboffset, bw0, prbimp0, lam0, height, er, zin, freq, TemplateText, RunNumber, Path, LossTanD, MetCond, MetThickness)

% This function prepares the parameters, generates the sonnet project, 
% checks to see how much memory the project will use, and sends the project
% off to be simulated.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Author: Serhend Arvas, sarvas@syr.edu
% Part of Patch Antenna Design Code
% August 2007
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% Prepare parameters to be inserted into template file
Parameters=PrepPatchVars(newLen, width0, prboffset, bw0, prbimp0, lam0, height, er, zin, freq, LossTanD, MetCond, MetThickness);

% Generate the text of the Sonnet Project.
OutputText=GenerateSonProjectText(TemplateText,Parameters); % Gen Text

% Write the text to a Sonnet Project File.
[success,filename]=WriteSonProject(OutputText,RunNumber); % Gen File

% Approximate Project Memory Usage.
SizeOfProject=CallEMtoCheckLITE(filename, Path); % Check MEM
disp(['  This project is expected to utilize ' num2str(SizeOfProject) ' MB of Memory.'])

% Simulate the Project
CallEMtoSimulate(filename, Path, RunNumber); % CALL EM

⌨️ 快捷键说明

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