R.Youden macrumors 68020 Original poster 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 Feb 8, 2007 #2 in scilab, it would be blah(2:$) IIRC in matlab that would be spelled blah(2:end)
R.Youden macrumors 68020 Original poster 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.