|
|
multidimension array
I want to copy an array to another array, the coding that i have written is
for ss=1:length(start2)
segment2(ss,i)=x(start2(ss):stop2(ss));
end
then it shows error
??? Subscripted assignment dimension mismatch.
for example
x=
1
2
3
4
5
6
7
8
9
0
start2=
1
5
stop2=
4
9
I want to store the value into array segment:
segment=
1 5
2 6
3 7
4 8
9
So, what should i write for the coding. Hopefully someone can provide me the answer. Thank you.
|
|
0
|
|
|
|
Reply
|
Ng
|
3/4/2010 3:59:26 PM |
|
You are telling MATLAB to put 5 elements into the second column of a 4x2 matrix. You cannot have a blank element in a MATLAB array.
|
|
0
|
|
|
|
Reply
|
Matt
|
3/4/2010 4:35:20 PM
|
|
|
1 Replies
165 Views
(page loaded in 0.015 seconds)
Similiar Articles: Help rapresenting multidimensional array ( pivot table ) - comp ...Hi all, I have a multidimensional array that rapresent category/subcategory/susubcategory ( 3 levels ) This is an example: Array ( [... namelist input of multidimensional array? - comp.lang.fortran ...I'm curious if anyone has some example code of how to input a 2-D (or, in principle, n-D) array via a namelist file in Fortran 95 (I'm using a reaso... vec(.) operator for multidimensional array - comp.soft-sys.matlab ...Could someone help me out with the code for Vec(.) operation for multidimensional array.(eg: 4-D) Normally eg: A=[1 2 3; 4 5 6] vec(A)=[1 2 ... Splitting into a multi-dimensional array - comp.lang.javascript ...I am trying to split a sting into a multi-dimensional array. ex. value = "lang~1#name~bob#age~37#"; And I want to be able sperate the date to look l... Re: Finding local maxima in multidimensional array (efficiently ...On 11/28/2010 5:55 AM, Ray Koopman wrote: > On Nov 27, 12:48 am, Ray Koopman wrote: >> On Nov 26, 2:52 am, Julian Francis wrote: >>> Dear all, >... Hierarchical data structure from a multi-dimensional array - comp ...namelist input of multidimensional array? - comp.lang.fortran ... If an array name or structure is used then a list of ... Reading/writing data to/from files into 2D array ... Selecting elements of a multidimensional matrix - comp.soft-sys ...MATLAB - Manipulating Multidimensional Arrays Demo Selecting 2D Matrices From Multi ... first define the 3 by 3 matrix, and ... Accessing Elements. Copying rows in a two dimensional array. - comp.lang.ada ...Jerry a crit : > I've never understood why Ada does not allow slicing in > multidimensional arrays. What are the safety issues involved? And how > is it safe to ... Unable to access the elements in an array with array[1][0] - comp ...To declare a multidimensional array: [["first","first value"], ["second","second value"], ["third","third value"], ["third","third value"], ["fifth","fifth value ... write multidimensional matrix to text file - comp.soft-sys.matlab ...write a cell array to text file.. - comp.soft-sys.matlab ... write multidimensional matrix to text file - comp.soft-sys.matlab ..... With MATLAB, does anyone know how to ... Multidimensional Arrays (C# Programming Guide)Arrays can have more than one dimension. For example, the following declaration creates a two-dimensional array of four rows and two columns. Multidimensional Arrays in Visual Basic - Microsoft Corporation ...An array can have one dimension or more than one. If it has more than one, it is called a multidimensional array. Note that having multiple dimensions is not the same ... 7/23/2012 1:20:45 AM
|
|
|
|
|
|
|
|
|