inc

版本 1.0.0.0 (431 字节) 作者: Jeffrey Johnson
Increments variable in local workspace.
738.0 次下载
更新时间 2004/1/15

无许可证

INC is a function designed to simplify increments of variables. For example,

"inc my_variable_name"

produces the same result as

"my_variable_name = my_variable_name + 1;"

but takes a lot less time to write out.

"inc variable 5" will increment VARIABLE by 5 (any arbitrary value OK)

INC works on a variable in the local workspace, be it the base workspace or within a function, without producing any output to the command line.

引用格式

Jeffrey Johnson (2024). inc (https://www.mathworks.com/matlabcentral/fileexchange/4366-inc), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R13
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Workspace Variables and MAT-Files 的更多信息
致谢

启发作品: IncVar

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0