Skip to content
Snippets Groups Projects
Commit bd6b0d23 authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

octave: Use meshgrid()

parent 6cb849fb
No related branches found
No related tags found
No related merge requests found
...@@ -3,10 +3,9 @@ ...@@ -3,10 +3,9 @@
clear all clear all
close all close all
x = (-200:2:300); x = -200:2:300;
y = (-200:2:300)'; y = -200:2:300;
X = repmat(x, length(x), 1); [X, Y] = meshgrid(x,y);
Y = repmat(y, 1, length(y));
for i=1:length(x) for i=1:length(x)
for j=1:length(y) for j=1:length(y)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment