Matlab:如何创建随机点并旋转它们以使所有值都为负值

时间:2017-04-16 20:38:00

标签: matlab

我想创建第一象限中的随机点

IV   I
III  II

旋转270°后,它们处于III象限。

coords = 100;
x1 = randperm(coords);
x2 = randperm(coords);


y = zeros(2, coords);

for point = 1:coords
    y = rot(270) * x;
end

尽管如此,最后的if条件证明了相反的指标是负面的。我需要改变什么?

0 个答案:

没有答案