convert matlab's data to python's data

ขณะที่กำลัง debug เราสามารถใช้ command ที่ prompt K>> dlmwrite('yourfile.txt',Variable,'delimiter','\t','precision','%.6f','newline','pc')
เป็นการ เขียนไฟล yourfile.txt
โดยเอา ค่า ใน ตัวแปร matric Variable
ที่มี delimiter คือ tabs
ทศนิยม precision เป็น 6 ตำแหน่ง float
ขึ้นบรรทัดใหม่สำหรับ pc

Comments

Popular posts from this blog

Return Code 127