PDA

查看完整版本 : 如何使用户清楚在Matlab中将函数的参数作为字符串输入?


poster
2019-12-10, 20:48
我有以下函数,其最后一个参数是文本文件的名称:

function [property_without_headers]=gslib_file_to_matlab_var(nModel,nCell,gslib_file_name) % must enter the last argument, gslib_file_name, in single quotes as its treated as a string if nargin