vector into matrix form
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I want to reshape a vector that has 8761-25 elements in it so when reshaped it is a vector of 364 rows with 24 columns. Im using the function x=reshape(A,365,24) but i get a rejection saying elements in A must be the same. Help please. just so you have some background i am transporting a column from excel, this array is called LOAD. Wnat i ulimately would like to do is once in a vector of 364,24 ill take every row of 24 values and plot them according to the corresponding time of day in a for loop then saved in a folder so i can access these graphs later to share with colleagues.
3 Kommentare
Azzi Abdelmalek
am 20 Feb. 2013
A(1:5,4:10) means the sub matrix obtained from A :
line 1 to line 5
and
column 4 to column 10
Antworten (1)
Siehe auch
Kategorien
Mehr zu Resizing and Reshaping Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!