MacRumors Forums Quick MATLAB question
 User Name Remember Me? Password

 Thread Tools Search this Thread Display Modes
 Feb 8, 2007, 04:39 AM #1 R.Youden macrumors 68020     Join Date: Apr 2005 Quick MATLAB question 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. 0
 Feb 8, 2007, 05:47 AM #2 iMeowbot macrumors 601     Join Date: Aug 2003 in scilab, it would be blah(2:\$) … IIRC in matlab that would be spelled blah(2:end) 0
 Feb 8, 2007, 06:51 AM #3 atszyman macrumors 68020     Join Date: Sep 2003 Location: The Dallas 'burbs I think this would do it: a= [1 2 3 4]; b=a(2:4); __________________ "I don't want kids who are thinking about going into mathematics to think that they have to take drugs to succeed." - Paul Erdös Every little bit helps, put your spare CPU cycles to good use, join the MacRumors Folding@Home team! Get the widget 0
Feb 8, 2007, 07:09 AM   #4
R.Youden
macrumors 68020

Join Date: Apr 2005
Quote:
 Originally Posted by atszyman I think this would do it: a= [1 2 3 4]; b=a(2:4);
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.
0

 MacRumors Forums

 Thread Tools Search this Thread Search this Thread: Advanced Search Display Modes Linear Mode

 Similar Threads thread Thread Starter Forum Replies Last Post mrgreeneyes Community Discussion 6 Apr 6, 2014 08:29 AM Irishman Mac and PC Games 4 Jan 22, 2014 09:58 PM hamiltonDSi OS X 10.8 Mountain Lion 1 Jan 20, 2013 04:11 AM rokusho1 Mac Basics and Help 2 Nov 8, 2012 06:19 PM ARF900 iPhone Tips, Help and Troubleshooting 1 Sep 26, 2012 09:17 PM