matlab命令行调试程序的命令列表

命令列表如下,来自maltab2010 help文档的Simulink/User's Guide/Managing Blocks/Using the Embedded MATLAB Function Block/Debugging an Embedded MATLAB Function Block 

 

 

 

CommandDescription

ctrl-c

Quit debugging and terminate simulation.

dbcont

Continue execution to next breakpoint.

dbquit

Quit debugging and terminate simulation.

dbstep [in|out]

Advance to next program step after a breakpoint is encountered. Step over or step into/out of an Embedded MATLAB subfunction.

help

Display help for command line debugging.

print <var>

Display the value of the variable var in the current scope. If var is a vector or matrix, you can also index into var. For example, var(1,2).

save

Saves all variables in the current scope to the specified file. Follows the syntax of the MATLAB save command. To retrieve variables to the MATLAB base workspace, use load command after simulation has been ended.

 

 

翻译如下:

 

 

命令描述

ctrl-c

结束调试,终止仿真

dbcont

继续执行到下一个断电

dbquit

结束调试,终止仿真

dbstep [in|out]

当遇到断点时,执行下一步 进入或者一步执行过子函数

help

显示help文档

print <var>

显示当前scope中的变量 var in 如果 var 是个向量或矩阵 你可以索引变量 var. 例如, var(1,2).

save

保存变量到某个文件中。 和matlab命令 save一样的用法. 恢复某个变量到matlab工作空间,,使用 load 命令

<var>

如果变量在当前scope,和 "print <var>"一样

who

显示当前scope的变量

whos

显示当前scope中所有变量的类型和大小

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值