Feeds
질문
Why does the second matrix start with zeros?
for i=-10:10 if i<0 a(i+11)=i; if i>0 b(i+10)=i; end end end Out of curiosity, why, if ...
5년 초과 전 | 답변 수: 1 | 0
1
답변질문
How to relate x and y coordinate matrices to points on a larger matrix of zeroes?
x=zeros(1000); %creates a 100x100 zeros matrix numRandom = 10; % Generate 10 random locations... xli = ceil(sqrt(numel(x)) * r...
5년 초과 전 | 답변 수: 0 | 0
0
답변질문
Why do I get "array indices must be positive integers or logical values" when running this for loop?
i_theta_max =100; for i_theta = 0:i_theta_max theta = i_theta/(i_theta_max)*2*pi; xcoord(i_theta)=1*sin(theta); ...
5년 초과 전 | 답변 수: 1 | 0

