R.Youden macrumors 68020 Original poster Apr 1, 2005 2,093 40 Feb 8, 2007 #1 I am getting very frustrated with Matlab at the moment! I need to take the following matrix: [1 2 3 4] and turn it into [2 3 4] I can't for the life of me work out how to do it. ANy help would be great, thanks.
I am getting very frustrated with Matlab at the moment! I need to take the following matrix: [1 2 3 4] and turn it into [2 3 4] I can't for the life of me work out how to do it. ANy help would be great, thanks.
iMeowbot macrumors G3 Aug 30, 2003 8,634 0 Feb 8, 2007 #2 in scilab, it would be blah(2:$) IIRC in matlab that would be spelled blah(2:end)
atszyman macrumors 68020 Sep 16, 2003 2,437 16 The Dallas 'burbs Feb 8, 2007 #3 I think this would do it: a= [1 2 3 4]; b=a(2:4);
R.Youden macrumors 68020 Original poster Apr 1, 2005 2,093 40 Feb 8, 2007 #4 atszyman said: I think this would do it: a= [1 2 3 4]; b=a(2:4); Click to expand... Fantastic, thanks. I thought it was something like that but I have been sat in-front of Matlab for so long you just loose yourself.
atszyman said: I think this would do it: a= [1 2 3 4]; b=a(2:4); Click to expand... Fantastic, thanks. I thought it was something like that but I have been sat in-front of Matlab for so long you just loose yourself.