Azzera filtri
Azzera filtri

Different size matrix data addition

1 visualizzazione (ultimi 30 giorni)
Joydeb Saha
Joydeb Saha il 20 Mag 2020
Commentato: Walter Roberson il 20 Mag 2020
I have different matrix size for different data file. say one data is 846x399 and another is 4208x399. I need to add all the files. how to do it?

Risposte (1)

DEEPAK SHARMA
DEEPAK SHARMA il 20 Mag 2020
Define your Matrix A(846x399) , B(4208x399)
Define C = zeros(1,399);
A = [A;repmat(C,3362,1)];
new Matrix A will be 4208x399
now you can add A and B

Categorie

Scopri di più su Multidimensional Arrays in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by