質問編集履歴
2
importの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -32,6 +32,16 @@
|
|
32
32
|
YPredStandardized(1,:)=M(2:end,2);
|
33
33
|
```
|
34
34
|
```Python
|
35
|
+
import pandas as pd
|
36
|
+
import numpy as np
|
37
|
+
from nbeats_forecast import NBeats
|
38
|
+
from torch import optim
|
39
|
+
#現在のパス取得
|
40
|
+
import os
|
41
|
+
cwd = os.getcwd()
|
42
|
+
print(cwd)
|
43
|
+
from scipy.io import loadmat
|
44
|
+
|
35
45
|
data = loadmat("ex1.mat")
|
36
46
|
data = np.array(data['ex1']) #ex1.mat ファイルの"ex1"の名前を検索し
|
37
47
|
print(data)
|
1
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
MATLAB でPythonファイルの実行方法について
|
4
4
|
MATLABを使用してPythonファイルを実行し、その結果を出力しようと考えています。
|
5
|
-
MATLAB
|
5
|
+
MATLABで"ex1.mat"を保存し、Pythonで”ex1.mat"を保存し、pyhtonプログラムを実行し、pythonの結果をエクセル'予測結果.xls'に出力し、MATLABでその結果を出力しようとしています。
|
6
6
|
|
7
7
|
### 実現したいこと
|
8
8
|
|
@@ -10,9 +10,11 @@
|
|
10
10
|
- [MATLABを使用しPythonファイルを実行
|
11
11
|
|
12
12
|
### 発生している問題・エラーメッセージ
|
13
|
+
"N-beats forecast.py"
|
13
14
|
|
14
|
-
|
15
|
+
No Python documentation found for 'data'.
|
15
|
-
|
16
|
+
Use help() to get the interactive help utility.
|
17
|
+
Use help(str) for help on the str class.
|
16
18
|
|
17
19
|
### 該当のソースコード
|
18
20
|
|