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
Jan 2018년 1월 11일
편집: Jan 2018년 1월 11일

0 개 추천

JapaneseVowelsTrain does not contain a variable named X: it
contains a variable named XTrain
Why do you ask for "X" again now?

댓글 수: 1

Mohammed khalaf
Mohammed khalaf 2018년 1월 11일
the previous error was Cell contents reference from a non-cell array object.
now get another error.
Undefined variable "X" or class "X".
I have re-opend the matlab again and the problem solved.
sorry a bit new to matlab that's why i ask the community for help.
thanks anyway

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터 및 File Exchange에서 Time-Frequency Analysis에 대해 자세히 알아보기

질문:

2018년 1월 11일

편집:

2018년 1월 11일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by