Tips (Utility, Computer Language, and etc.)
[mathematica] 현재 디렉토리 지정
Struggler J.
2017. 6. 28. 16:16
⊙ Export[NotebookDirectory[] <> "file.d", result_array, "Table", "FieldSeparators" -> " " ]
[1] 디렉토리 지정:
NotebookDirectory[]: 지금쓰고 있는 노트북의 디렉토리를 의미
<>: string을 연결해줌
[2] 괄호 없애기:
저장할 데이터 result_array에서 {}를 제외하고 싶을 때
Export["file.d", result_array, "Table", "FieldSeparators"-> " "]뒤의 옵션을 넣어주면 된다.