Undefined variable "X" or class "X".
21 ビュー (過去 30 日間)
古いコメントを表示
I got this error from this code but not sure why even though i just copy it from the mathworks. i have already update my matlab to 2017b.
load JapaneseVowelsTrain
figure
for i = 1:12
subplot(12,1,13-i)
plot(X{1}(i,:));
ylabel(i)
xticklabels('')
yticklabels('')
box off
end
title("Training Observation 1")
subplot(12,1,12)
xticklabels('auto')
xlabel("Time Step")
error:
Undefined variable "X" or class "X".
Error in lstm (line 6)
plot(X{1}(i,:));
any help would be appreciated.
回答 (1 件)
Jan
2018 年 1 月 11 日
編集済み: Jan
2018 年 1 月 11 日
You have asked this some days ago already: https://www.mathworks.com/matlabcentral/answers/375923-implement-to-predict-japanesevowelstrain-as-the-same-in-mathworks . Walter has answered:
JapaneseVowelsTrain does not contain a variable named X: it
contains a variable named XTrain
Why do you ask for "X" again now?
参考
カテゴリ
Help Center および File Exchange で Axis Labels についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!