? 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)
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)
其他人气:379 ℃时间:2020-04-03 01:08:22
优质解答
Subscript indices must either be real positive integers or logicals下标索引必须是正整数类型或者逻辑类型出错原因:在访问矩阵(包括向量、二维矩阵、多维数组,下同)的过程中,下标索引要么从 0 开始,要么出现...
我来回答
类似推荐
猜你喜欢
- 1出来,在晚餐时间,发卡,没有权利做某事,英语单词
- 2Please thanslate some chinese sentences into English
- 3下面这个句子是不是病句?语病在哪?
- 4在△ABC中,AB=AC,点D,E,F分别是BC,AB,AC的中点,求证:四边形AEDF是菱形.
- 5天时地利人和分别是什么意思?
- 6我们永远都热爱自己伟大的祖国拼音问题 韵母是后鼻韵母的字是 声母是平舌音的字是 读轻声的字是
- 7学校体育老师为同学们添置了6个皮球和8根跳绳,一共花去24元.一支买一个皮球的钱可以买到2跟跳绳,皮球、跳绳的单价各是多少?
- 8There is a boat in the m_______of the lake
- 9字母S和x怎么读
- 10He is learning English but he hasn't made much progress.