f_getmatfile.m
来自「digital signal processing常用工具箱」· M 代码 · 共 24 行
M
24 行
function [user,path] = f_getmatfile (caption,default);
%F_GETNATFILE: Prompt the user for the name of an M-file function
%
% Usage: [user,path] = f_getmatfile (caption,default)
%
% Inputs:
% caption = prompt string
% default = string containing name of default MAT-file
% Outputs:
% user = string containing name of MAT-file
% path = string containing path of MAT-file
%
% Note: If cancel button is choosen, user = path = 0
%
% See also: F_GETMFILE
ver = version;
if all(ver(1:3) == '6.1')
[user,path] = uigetfile ('*.mat',caption);
else
[user,path] = uigetfile ('*.mat',caption,default);
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?