当前位置: > ? Subscript indices must either be real positive integers or logicals. 什么错误啊?...
题目
? Subscript indices must either be real positive integers or logicals. 什么错误啊?
n=[1:15];x=zeros(1,15);x=rand(1,10);z=zeros(1,15);y=[x,0,0,0,0,0];
forj=3:1:12
z(j)=y(j-2)
end
subplot(2,1,1);stem(n,y);subplot(2,1,2);stem(n,z)

提问时间:2020-10-09

答案
Subscript indices must either be real positive integers or logicals下标索引必须是正整数类型或者逻辑类型出错原因:在访问矩阵(包括向量、二维矩阵、多维数组,下同)的过程中,下标索引要么从 0 开始,要么出现...
举一反三
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
1,人们染上烟瘾,最终因吸烟使自己丧命.
版权所有 CopyRight © 2012-2019 超级试练试题库 All Rights Reserved.