이 질문을 팔로우합니다.
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다.
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다.
How to read a .map file
조회 수: 4 (최근 30일)
이전 댓글 표시
Hello, I was just curious how you would read a .map file to MATLAB. Also when you use write table, how to reference a table by loop.
clearvars;
clc;
characters_to_write = {'example1' 'example2' 'example3'}';
example1 = array2table(rand(3,3));
example2 = array2table(rand(3,3));
example3 = array2table(rand(3,3));
for loop = 1:size(characters_to_write,1)
filepath = char(strcat('C:\main_path\sub_path\',characters_to_write(loop,1),''));
filename = strcat('C:\main_path\sub_path\',characters_to_write(loop,1),'\test_file_',characters_to_write(loop,1),'.csv');
if ~exist(filepath,'dir')
mkdir(filepath);
writetable(char(characters_to_write(loop,1)),filename,'Delimiter', ','); % this is where I'm trying to reference data in a loop
elseif exist(filepath,'dir')
writetable(char(strcat('output_',characters_to_write(loop,1)','_table')),filename,'Delimiter', ','); % curious
end
end
Thank you.
댓글 수: 19
Walter Roberson
2018년 6월 6일
Seok Joon Byun
2018년 6월 6일
Haha, no, the map files contains a series of data that I need to link and merge with another sort of data. i tried opening them in excel and they just look like strings and chars and doubles and nans with some missing values.
Walter Roberson
2018년 6월 6일
... when we do not know which software produced the .map file, it is difficult for us to make suggestions about MATLAB software to read the .map file. .map is not a standardized file format: it is used for completely different software for completely different purposes.
Walter Roberson
2018년 6월 7일
Seok Joon Byun
2018년 6월 7일
I asked and they said there is no module, just developed code in perl? Will this help? Sorry I couldn't get more information.
Walter Roberson
2018년 6월 8일
What kind of data is in the .map file?
Is the perl code available for us to look at?
Seok Joon Byun
2018년 6월 8일
The .map file can be opened in excel and has several columns with tickers cusips and company names, don't have the code unfortunately.
Walter Roberson
2018년 6월 8일
Would a sample .map file be out of the question? You can zip it and upload the zip.
Walter Roberson
2018년 6월 8일
I notice you are using MS Windows. Do you happen to have a Mac or Linux system available to you? If so then could you copy one of the .map files onto there, and then go into the command line of that system (e.g., Mac 'Terminal' utility), and use the "file" command and see what it says?
For example,
roberson$ file CA10.Cyl1.P01
CA10.Cyl1.P01: PCX ver. 2.5 image data
(That particular file turns out to have nothing at all to do with PCX, but at least the information gave me something concrete to investigate.)
Seok Joon Byun
2018년 6월 8일
Unfortunately, I'm not familiar with either Mac or Linux... :( It's alright, I can just manually open these files in excel and save them as csv and then read them in MATLAB...
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
태그
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!오류 발생
페이지가 변경되었기 때문에 동작을 완료할 수 없습니다. 업데이트된 상태를 보려면 페이지를 다시 불러오십시오.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom(English)
아시아 태평양
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)
