how to increase matrix size
Mostra commenti meno recenti
for example i have matrix size 5x3, i want to increase size of matrix became 10x3.
example my data :
A = [997.400000000000 -1.10000000000000 70.4000000000000
997.500000000000 -1 70
997.600000000000 -1.50000000000000 72
997.700000000000 -1.80000000000000 73.2000000000000
997.800000000000 -1.80000000000000 73.6000000000000]
I want to my data like this :
A = [997.400000000000 -1.10000000000000 70.4000000000000
NaN NaN NaN
997.500000000000 -1 70
NaN NaN NaN
997.600000000000 -1.50000000000000 72
NaN NaN NaN
997.700000000000 -1.80000000000000 73.2000000000000
NaN NaN NaN
997.800000000000 -1.80000000000000 73.6000000000000
NaN NaN NaN ]
How to i solve this in Matlab....
Thanks you very much for the helping.
Risposta accettata
Più risposte (1)
Jos (10584)
il 10 Ott 2013
Take a look at INSERTROWS:
insertrows(A,NaN,1:size(A,1))
1 Commento
Innosens
il 10 Ott 2013
Categorie
Scopri di più su NaNs in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!