Rows interpolation in a matrix
显示 更早的评论
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).
采纳的回答
更多回答(1 个)
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
类别
在 帮助中心 和 File Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
