feval 执行字符串指定的文件 script Matlab语句及文件信息function Matlab函数定义关键词3.2控制流程函数名 功能描述 函数名 功能描述break 中断循环执行的语句 if 条件转移语句case 与switch结合实现多路转移 otherwise 多路转移中的缺省执行部分else 与if一起使用的转移语句 return 返回调用函数elseif 与if一起使用的转移...
%函数文件:以function开头,有输入输出,变量为局部变量不返回工作空间,需要调用 %以下是函数文件 %*** function [s, p] = circ(r) % 文件命名应与函数名一致,系统找文件名circ.m %CIRC 计算圆面积和周长 % 简单说明 %参数:输入参数r:圆半径;输出参数s:圆面积,p:周长 % 详细说明 s = pi*r*r; p =...
function [y] = stretch(nscat,taup,f0,b,rrec,scat_range,scat_rcs,winid)eps = 1.0e-16; % 未用到htau = taup / 2.; % 未用到c = 3.e8;trec = 2. * rrec / c; % 接收窗时间大小n = fix(2. * trec * b); % 所要求的最小样本数,足以完全描述时宽为接收窗大小,带宽为 b 的 ...
1);% 初始解,初始值epsilon=1e-6;% 允许ε精度为1e-6itertimes=500;% 允许的最大迭代次数% 调用最速下降法函数[x,k]=steepest_descent_method(A,b,x0,epsilon,itertimes);rlast=b-A*x;disp(min(abs(rlast)));disp(max(abs(rlast)));% 最速下降法function[x, k]=steepest_descent...
1、软件概况 MATLAB是美国Math Works公司开发的大型数学计算软件,它具有强大的矩阵处理功能和绘图功能,...
figure1); function CloseMenuItem_Callback(hObject, eventdata, handles) selection = questdlg(['Close' get(handles.figure1,'Name') '?'],...%提示框信息 ['Close' get(handles.figure1,'Name') '...'],...%提示框名称 'Yes','No','Yes');%预选Yes if strcmp(selection,'No') return; ...
%callback-导出图片functionsavefile(~,~)globalGUIh=figure;set(h,'Visible','off');h1=copyobj(GUI.Axes1,h);set(h1,'Units','default','Position','default');[fileName,pathName]=uiputfile({'*.jpg','JPEG(*.jpg)';},'save picture','Picture1');iffileName==0close(h);return;elseprint(st...
%UIWAIT makes txrh wait for user response (see UIRESUME)%uiwait(handles.figure1); %--- Outputs from this function are returned to the command line.function varargout = txrh_OutputFcn(hObject, eventdata, handles)%varargout ce...
% --- Outputs from this function are returned to the command line. function varargout = MouseClickDrawFrame_OutputFcn(hObject, eventdata, handles) % varargout cell array for returning output args (see VARARGOUT); % hObject handle to figure ...
close allclear alltaup =0.2;pri=1;n=5;x = train_ambg (taup, n, pri);figure(1)mesh(x)xlabel ('Delay - seconds')ylabel ('Doppler - Hz')zlabel ('Ambiguity function')figure(2)contour(x);xlabel ('Delay - seconds')ylabel ('Doppler - Hz') ...