フィルターのクリア

How to fill up missing values in a matrix?

1 回表示 (過去 30 日間)
Mohammad Sayeed
Mohammad Sayeed 2014 年 1 月 14 日
編集済み: Image Analyst 2014 年 1 月 14 日
Hi if i have matrix (6 by 4) like the following:
11 1 1
12 4 3
13 3 3
14 2 3
15 4 7
16 3 4
I need to make up the missing values of different columns by the previous value of the respective columns. missing values in the first value of a column will be replaced by the next immediate available value. Can any one please help me by showing the MATLAB code to do this? This will be much appreciated.
Sayeed
  1 件のコメント
Walter Roberson
Walter Roberson 2014 年 1 月 14 日
How do you know if a value is missing?

サインインしてコメントする。

回答 (1 件)

Image Analyst
Image Analyst 2014 年 1 月 14 日
編集済み: Image Analyst 2014 年 1 月 14 日
Not sure which elements are missing since HTML for some reason compresses all multiple spaces into one space. How about interp()?

カテゴリ

Help Center および File ExchangeOperators and Elementary Operations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by