Nu kan jag inte testa då jag sitter med mobilen (och minnet sviktar lite kring syntaxen) men kan du inte göra något i stil med det här :
for i=1:100:1000
plot([i,i],[low_end_of_line, high_end_of_line])
end
If x and y are both vectors with the same length, then line plots a single line.
If x and y are matrices with the same size, then line plots multiple lines. The function plots columns of y versus x.
If one of x or y is a vector and the other is a matrix, then line plots multiple lines. The length of the vector must equal one of the matrix dimensions:
If the vector length equals the number of matrix rows, then line plots each matrix column versus the vector.
If the vector length equals the number of matrix columns, then line plots each matrix row versus the vector.
If the matrix is square, then line plots each column versus the vector.