|
From: | Anthony Gumbs |
Subject: | Re: building dynamic ranges from matrix |
Date: | Tue, 21 Nov 2017 14:06:38 -0500 |
Here is my problem.
Given a N X 2 matric, build a single vector that contains the range of
numbers between (:,1) and (:,2).
For example:
range_start_end = [1,5 ; 4 7];
should produce a vector containing [1:5,2:4], The final result being
[1,2,3,4,5,4,5,6,7]. I am trying to do this with just simple matrix
operation if possible- no if's then's array functions etc.
I have tried this a few ways but can't seem to get it to work.. so I'd love
to hear any ideas.
-Much appreciated!
--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General- f1599825.html
_______________________________________________
Help-octave mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-octave
[Prev in Thread] | Current Thread | [Next in Thread] |