How to create equally spaced complex points

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

 采纳的回答

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by