Excel の VLOOKUP と同じ機能はありますか?
Afficher commentaires plus anciens
Excel の VLOOKUP 関数と同じ機能があるか教えてください。
以下のような行列が定義されていると仮定します。
mydata=[datenum('1/31/2008') 3; datenum('2/28/2008') 5];
この配列の 1列目の中で、指定した値と一致する値を検索し、該当した値が含まれる行のデータを取り出す、という処理を考えています。一致する値がない場合は、最も近い(実際の値よりも大きい)値を検索します。
例えば、上記の行列において、
myMatch= fcm(mydata,datenum('2/7/2008'))
のような関数を実行すると、出力は以下のような結果になることを期待しています。
myData=
3
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur 大きなファイルとビッグ データ dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!