Matlab Help code Script -


i working matlab, have data row vector 36000. wold cut vector matrix- first column of matrix must first 300 data samples of vector, , second row must second 300 samples (301 600), , on. please need matlab script that, please body can me ??

just use reshape reshape vector matrix 300 rows.

b = reshape(a, 300, []); 

also switch columns , rows in question. example above places data in column-major order. if want row-major instead, take transpose.

b = reshape(a, 300, []).'; 

Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -