Spencer Checkoway
Followers: 0 Following: 0
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 ...
4 years 前 | 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...
4 years 前 | 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); ...
4 years 前 | 1 个回答 | 0