Answered
Invalid training data. X and Y must have the same number of observations.
In order to model the LSTM regression networks with 2-D data, the input should be a Nx1 cell, N being the number of observations...

5 years ago | 0

| accepted

Answered
Error using pentropy function
In the example Classify ECG Signals Using Long Short-Term Memory Networks the training data XTrain is a 8876x1 cell array with e...

5 years ago | 0

| accepted

Answered
error in using predict function
The function predict takes only SVMModel & X as the input arguments. In your above code the 3rd argument 'columns' is causing th...

5 years ago | 0

Answered
In Deep Learning Toolbox, what input layer should I use for simple dataframe-type input?
In the above question I see that you haven't provided any target data(classification labels) for training the network. To use a...

6 years ago | 0

Answered
helperExtractorFunction error using Monocular SLAM tutorial
I have heard that this issue is known and the concerned parties might fix it in an update or in a future release. The workaroun...

6 years ago | 0

Answered
Insert elements into a 4D array
There are 2 mistakes in the above implementation: Accessing a frame of frameBuffer as frameBuffer(i) instead of frameBuffer(:,...

6 years ago | 1

| accepted

Answered
is it possible to create a mixed type input nn ?
In MATLAB versions R2019b and above you can define networks with multiple inputs when the network requires data from multiple so...

6 years ago | 0

Answered
How can I read text file data separately row by row into different array
Refer to importdata & str2num. Create a for loop based on the number of lines in the text file. The following code might help y...

6 years ago | 0

Answered
Too many output arguments.
The function z = groundHeight(x,y) in line 314 has only one output argument z and two input arguments x & y. You are calling thi...

6 years ago | 0

Answered
How to reverse/undo "normalize" function?
As @Abdallah Ghazi Faisal Zaid Alkilani already mentioned the normalization might not be reversible. You can normalize the test ...

6 years ago | 0

Answered
Save multiple images with different name in folder
Based on above information I'm assuming that the value of srcFiles(i).name is 'i.jpg' Change the line newfilename=strcat('C:\...

6 years ago | 1

| accepted

Answered
How do I stack an array variable and plot three of these stacked array variables on a barh?
In the above code, each of a1, a2, a3, b1,...e3 are itself vectors and not scalars. The value of the dates array is dates = ...

6 years ago | 0

Answered
While loop stops before meeting conditions
As mentioned by @Torsten, the program remains in the while loop "while (X<90 && Y<90 && Z<90)" only when the values of all the v...

6 years ago | 1

| accepted

Answered
How do I turn off white figure background when exporting? (Permanently)
Refer to How do I change the default background color of all FIGURE objects created in MATLAB? A list of factory-defined graphi...

6 years ago | 0

Answered
matlab code error help
As a suggestion you can refer to Symbolic Computations in MATLAB & Create Symbolic Numbers, Variables, and Expressions.

6 years ago | 0

Answered
while loop condition help
Learn the essentials of MATLAB through MATLAB Onramp, two-hour introductory tutorial on commonly used features and workflows.

6 years ago | 0

Answered
CNN and LSTM error with input size
Latest Edit: In order to model the LSTM regression networks with 2-D data, the input should be a Nx1 cell, N being the number o...

6 years ago | 0

Answered
Modifying pretraind Neural Network
Since the convolution2dLayer and imageInputLayer have been replaced, the output of the ImageInputLayer would be different now be...

6 years ago | 1

| accepted

Answered
Multiplication of elements in array in for loop
Refer to arrayfun and use it as follows: Let all the A1(i), A2(i) ... A29(i) be in the array AiArray prob(i)=prod(arrayfun(@(A...

6 years ago | 0

Answered
What is an appropriate sequence input for the trainNetwork command
The following code might help you: layers = [sequenceInputLayer(3000) fullyConnectedLayer(10) fullyConnectedLayer(5) softmaxLay...

6 years ago | 1

Answered
I cannot find the helper functions "processImagesMNIST" and "processLabelsMNIST"
The Example you are referring to is w.r.t MATLAB R2020a. I have found that there have been some changes in the example. R2020a:...

6 years ago | 0

Answered
R-CNN detector
Please refer to the following workflow: Create R-CNN Object Detection Network. The total number of classes the RCNNdetector sho...

6 years ago | 0

Answered
Learning Rate Drop Period
For most tasks, you can control the training algorithm details using the trainingOptions and trainNetwork functions. If the trai...

6 years ago | 0

| accepted

Answered
Can I use RAdam in Matlab?
The following resources might help you: Solver Options Deep Learning Import, Export, and Customization Define Custom Training...

6 years ago | 0

Answered
Normalization of test data - neural network
The following resources might help you: Normalization Help Center normalize In case of Multilayer Shallow Neural Networks yo...

6 years ago | 0

Answered
Problems with Reading RGB color images
Refer to the explanation of pixelLabelIDs input argument for pixelLabelDatastore and make sure the following while loading the p...

6 years ago | 0

| accepted

Answered
Help for install toolbox
Refer to Get and Manage Add-Ons. Visit License Center, click on your license and check which toolboxes you have licensed for.

6 years ago | 0

Answered
How to correct the following error?Unable to perform assignment because the left and right sides have a different number of elements. Error in ps4_3 (line 33) Ca(i+1)=Ca(i)+((h/6)*(k1+2*k2+2*k3+k4));
As mentioned already by @Tommy, the error is caused because of the size of the ((h/6)*(k1+2*k2+2*k3+k4)) is 1x100001. Then you a...

6 years ago | 0

Answered
Neural Network training - number of observations in X and Y disagree
Refer to Train Convolutional Neural Network for Regression and check the sizes of XTrain & YTrain to reshape your data according...

6 years ago | 0

Answered
A neural network performing both regression and classification
In Deep Learning Toolbox™, you can define network architectures with multiple inputs (for example, networks trained on multiple ...

6 years ago | 0

Load more