Can I only declare a variable NOT define.
显示 更早的评论
When I make a program, I've got a question. In C/C++, before using a variable, should define or at least declare the variable like the following.
int a;
or
int a = 2;
However in MATLAB, Can I just declare a variable? In other words, is
variable;
varid?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 사전 작성된 MATLAB 인터페이스를 C++ 라이브러리에 사용하기 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!