필터 지우기
필터 지우기

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