必须创建一个matlab计数器

编程入门 行业动态 更新时间:2024-10-09 11:22:18
本文介绍了必须创建一个matlab计数器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

Q-从0:limit-1创建一个计数器"(例如,如果选择3,它将显示0,1,2).计数器的长度在程序中没有确定,应在运行时确定,并且输入可以互不相同

Q- Create a "counter" from 0:limit-1 (for example if you choose 3 it will display 0,1,2). The length of counter is not determined in the program and it should be determined when it is being run and the inputs can differ from each other

推荐答案

不是很确定你的意思...但是

not really sure what you mean...but

for i = 0:limit-1 disp(i) end

将显示0,1,2 ... limit-1

will display 0,1,2 ... limit-1

更多推荐

必须创建一个matlab计数器

本文发布于:2023-10-18 15:30:57,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1504633.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:创建一个   计数器   matlab

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!