The following code produces a 2x100 matrix in MATLAB:
x0 = 0;
y0 = 0;
xf = 100;
yf = 200;
r0 = [x0; y0];
rf = [xf; yf];
r1 = [linspace(r0(1),rf(1),N); linspace(r0(2),rf(2),N)];
Trying the same thing in Julia using:
r1 = [linspace(r0[1],rf[1],N); linspace(r0[2],rf[2],N)];
And checking size(r1), I get an answer of (200,) which is a 1D array. How would I be able to replicate MATLAB’s results to produce a 2x100 matrix? Any help would be great, thanks very much.