matlab assignin导出指定workspace evalin执行指定workspace 命令
2012-01-16 16:20
134 查看
assignin
Assign value to variable in specified workspace
Syntax
assignin(ws, 'var', val)
Description
assignin(ws, 'var', val) assigns the value val to the variable var in the workspace ws. The var input must be the array name only; it cannot contain array indices. If var does not exist in the specified workspace, assignin creates it. ws can have a value of
'base' or 'caller' to denote the MATLAB base workspace or the workspace of the caller function.
The assignin function is particularly useful for these tasks:
Exporting data from a function to the MATLAB workspace
Within a function, changing the value of a variable that is defined in the workspace of the caller function (such as a variable in the function argument list)
evalin
Execute MATLAB expression in specified workspace
Syntax
evalin(ws, expression)
[a1, a2, a3, ...] = evalin(ws, expression)
Description
evalin(ws, expression) executes expression, a string containing any valid MATLAB expression, in the context of the workspace ws. ws can have a value of 'base' or 'caller' to denote the MATLAB base workspace or the workspace of the caller function. You can construct
expression by concatenating substrings and variables inside square brackets:
expression = [string1, int2str(var), string2,...]
Assign value to variable in specified workspace
Syntax
assignin(ws, 'var', val)
Description
assignin(ws, 'var', val) assigns the value val to the variable var in the workspace ws. The var input must be the array name only; it cannot contain array indices. If var does not exist in the specified workspace, assignin creates it. ws can have a value of
'base' or 'caller' to denote the MATLAB base workspace or the workspace of the caller function.
The assignin function is particularly useful for these tasks:
Exporting data from a function to the MATLAB workspace
Within a function, changing the value of a variable that is defined in the workspace of the caller function (such as a variable in the function argument list)
evalin
Execute MATLAB expression in specified workspace
Syntax
evalin(ws, expression)
[a1, a2, a3, ...] = evalin(ws, expression)
Description
evalin(ws, expression) executes expression, a string containing any valid MATLAB expression, in the context of the workspace ws. ws can have a value of 'base' or 'caller' to denote the MATLAB base workspace or the workspace of the caller function. You can construct
expression by concatenating substrings and variables inside square brackets:
expression = [string1, int2str(var), string2,...]
相关文章推荐
- C#以管理员(Run as Administrator)的权限打开cmd.exe程指定序并执行命令
- cron命令————是linux系统下一个自动执行指定任务的程序
- Bash脚本:命令重复执行指定次数
- exec命令_Linux exec 命令用法详解:调用并执行指定的命令
- 十七周四次课 2018.03.05 expect脚本同步文件、expect脚本指定host和要同步的文件、构建文件分发系统、批量远程执行命令
- 使用incrontab监控文件夹变化,执行指定命令_树莓派求助&教程_ICKey电子工程师论坛-ickey电子工程师社区
- linux 下使用指定的用户来执行命令
- busybox关机执行指定命令
- awk -F选项同时指定多个符号做为分割符时遇到空格坑,题目:请执行命令取出 linux 中 eth0 的 IP 地址
- Oralce 导出脚本命令,定时执行
- Centos 7关于rc.local脚本命令开机不执行及指定用户启动的解决方法
- linux下指定特定用户执行命令
- 执行SQL Server2005导入导出数据命令出现错误
- MAC下查找所有指定名字的文件并执行相应命令
- 使用java命令执行bat文件(重启本地指定位置的Tomcat)
- [linux命令] 在某指定时间执行命令 at
- 《GOF设计模式》—命令(COMMAND)—Delphi源码示例:在不同的时刻指定、排列和执行请求
- 多平台遍历目录和子目录中指定类型文件,并对每个文件执行命令
- Oracle中用Exp命令导出指定用户下的部分表或数据
- 怎样在Linux启动后执行指定的命令