Rows interpolation in a matrix
Mostra commenti meno recenti
hi
I have a matrix that contents "zeros". I would like to do a row interpolation in those cells that have "zeros" . See example attached
(Note: I need a generic solution. The table below is just a reduced example).
Risposta accettata
Più risposte (1)
Mathieu NOE
il 3 Lug 2024
Modificato: Mathieu NOE
il 3 Lug 2024
hello
you can use fillmissing for this task
data = readmatrix("data.txt");
data(abs(data)<eps) = NaN;
data_out = fillmissing(data,'linear',2) % NB we use dim = 2 in arguments
Categorie
Scopri di più su Resizing and Reshaping Matrices 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!
