How to create equally spaced complex points
Show older comments
Hello,
I have to place 49 equally spaced points in A+jB form in a 100x100 space and write them in an array. For that purpose I first divided the 100x100 space in 7 equal parts both vertically and horizontally by using "linspace" command and then I tried to create the array with "for" loops but it doesn't work. Here's my code below, I hope someone can help me on this. Thanks in advance.
A=linspace(0,100,7);
B=linspace(0,100,7);
for k=1:7
for i=1:7
for l=1:49
S=A(k)+j*B(i)
if true
% code
end
S(l)=S;
end
end
end
Accepted Answer
More Answers (0)
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!