LoginSignup
0
1

More than 5 years have passed since last update.

MATLAB > fileIO > load() > save()の結果と同じ書式でなくても読込むことができる

Last updated at Posted at 2017-11-18
動作環境
GeForce GTX 1070 (8GB)
ASRock Z170M Pro4S [Intel Z170chipset]
Ubuntu 16.04 LTS desktop amd64
TensorFlow v1.2.1
cuDNN v5.1 for Linux
CUDA v8.0
Python 3.5.2
IPython 6.0.0 -- An enhanced Interactive Python.
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
GNU bash, version 4.3.48(1)-release (x86_64-pc-linux-gnu)
scipy v0.19.1
geopandas v0.3.0
MATLAB R2017b (Home Edition)

変数の値をファイルから読む時に使うload()。
https://jp.mathworks.com/help/matlab/ref/load.html

test_data_171119.txt
1 1 1
2 2 2
3 3 3
>> tri = load('test_data_171119.txt')

tri =

     1     1     1
     2     2     2
     3     3     3

save()で出力されるファイルと同じ書式でなくとも読込めるようだ。

関連

MATLAB > 変数の内容をファイルに保存する > save('pi.txt', 'X', '-ascii')

Numpy > fileIO > MATLAB saveコマンドによるasciiファイルを読込む > genfromtxt()使用

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1