implement to predict "JapaneseVowelsTrain" as the same in mathworks

just trying to predict "JapaneseVowelsTrain" as the same in MathWorks but keep give me any error.
any help please!!
I need the same results as shown in MathWorks
code:
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:
Cell contents reference from a non-cell array object.
Error in lstm (line 7)
plot(X{1}(i,:));
any idea why this error.
your help highly appreciated

 Accepted Answer

JapaneseVowelsTrain does not contain a variable named X: it contains a variable named XTrain

6 Comments

Thanks Walter Roberson,
when i convert the Variable name X to XTrain is give me the same error.
>> lstm
Cell contents reference from a non-cell array object.
Error in lstm (line 7) plot(XTrain{1}(i,:));
I would be highly appracited if you write the correct code here.
I do not encounter that problem.
The code I am using is
load JapaneseVowelsTrain
figure
for i = 1:12
subplot(12,1,13-i)
plot(XTrain{1}(i,:));
ylabel(i)
xticklabels('')
yticklabels('')
box off
end
title("Training Observation 1")
subplot(12,1,12)
xticklabels('auto')
xlabel("Time Step")
Do u think the matlab version is affecting that? i am using 2017a. i just copy the code that you commented and the same error.
please see the attached document might you can have clue.
JapaneseVowelsTrain.mat is provided with R2017b and later, and the XTrain variable in it is a cell array. The example was not added until R2017b. You are using R2017a, and you appear to have found a different JapaneseVowelsTrain.mat somewhere, perhaps from the reference link. The one you have is a MATLAB table object and the conversion to the other form is not at all obvious.
You do not have the right data to be able to proceed, and you will need to upgrade to R2017b to get the file.
Thank you very much for that help. it is highly appreciated. I will upgrade my maltalb version.
u are right. i just downloaded the data set from the reference link.
Finally, it works after updating the Matlab. you are a star walter.

Sign in to comment.

More Answers (0)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!