Info

この質問は閉じられています。 編集または回答するには再度開いてください。

reading txt file mixed with stirng and numbers

1 回表示 (過去 30 日間)
Sukuchha
Sukuchha 2012 年 1 月 7 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
i have a ENVI header file, i want to read following lines into matlab. How can I read it ?
class lookup = {
0, 0, 0, 0, 255, 0, 0, 0, 255, 255, 127, 80, 46, 139, 87,
0, 255, 255}
class names = {
Unclassified, forest [Green] 500 points, Water [Blue] 500 points,
baresoil [Coral] 500 points, Vegetation [Sea Green] 500 points,
Random Sample (Random Sample (builtup)) [Cyan] 500 points}
I want class lookup in nx3 matrix and out of class names i need only class names ( forest, water, baresoil, vegetation, builtup)

回答 (1 件)

per isakson
per isakson 2012 年 1 月 8 日
Are you aware of the FEX contributions: ENVI file reader, updated and ENVI file reader/writer ? There are some more ENVI-contributions.
  1 件のコメント
Sukuchha
Sukuchha 2012 年 1 月 9 日
thanks isakson, the links really helped me to what i wanted to do.
u stay blessed !

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by