Solved

Fibonacci sequence

Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

2 months ago

Answered

How do I get the confusion matrix for all trained data

You can use the confusionmat command https://au.mathworks.com/help/stats/confusionmat.html When you call it, make sure that yo...

How do I get the confusion matrix for all trained data

You can use the confusionmat command https://au.mathworks.com/help/stats/confusionmat.html When you call it, make sure that yo...

2 months ago | 1

Solved

Select every other element of a vector

Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

2 months ago

Solved

Triangle Numbers

Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

2 months ago

Solved

Find the sum of all the numbers of the input vector

Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

2 months ago

Solved

Make the vector [1 2 3 4 5 6 7 8 9 10]

In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

2 months ago

Answered

LSTM time series forecasting with 3 inputs using chickenpox example

Rather than starting from the chickenpox example, you might be better off starting from the "Sequence-to-Sequence Regression Usi...

LSTM time series forecasting with 3 inputs using chickenpox example

Rather than starting from the chickenpox example, you might be better off starting from the "Sequence-to-Sequence Regression Usi...

2 months ago | 0

Answered

multivariate time series forecasting using lstm

Rather than starting from the chickenpox example, you might be better off starting from the "Sequence-to-Sequence Regression Usi...

multivariate time series forecasting using lstm

Rather than starting from the chickenpox example, you might be better off starting from the "Sequence-to-Sequence Regression Usi...

2 months ago | 0

Answered

How can I call network

You can use the sim function: https://au.mathworks.com/help/deeplearning/ref/sim.html The sim function is usually called im...

How can I call network

You can use the sim function: https://au.mathworks.com/help/deeplearning/ref/sim.html The sim function is usually called im...

2 months ago | 0

| accepted

Answered

How to calculate gradient of output of a neural network with respect to its parameters?

You can use dlgradient and dlfeval to take derivatives with respect to the input or to the parameters Here's an example: I'm...

How to calculate gradient of output of a neural network with respect to its parameters?

You can use dlgradient and dlfeval to take derivatives with respect to the input or to the parameters Here's an example: I'm...

2 months ago | 1

| accepted

Answered

How to re-load MatLab's feedforwardnet to Workspace?

I recommend using a cell array rather than a regular array for this case, e.g., FFNN_trained_sum = {}; % Use {} here, not [] f...

How to re-load MatLab's feedforwardnet to Workspace?

I recommend using a cell array rather than a regular array for this case, e.g., FFNN_trained_sum = {}; % Use {} here, not [] f...

2 months ago | 0

| accepted

Answered

Flatten layer in MATLAB

In MATLAB, in many cases, you don't need a flattern layer. Flattern layers are often used before a fully connected layer. The fu...

Flatten layer in MATLAB

In MATLAB, in many cases, you don't need a flattern layer. Flattern layers are often used before a fully connected layer. The fu...

2 months ago | 1

Answered

What does Predict for neural network give back?

I think that Ypred(i,j,k,n) is the score for class k for pixel i,j of the n-th image. Often the score is the probability or si...

What does Predict for neural network give back?

I think that Ypred(i,j,k,n) is the score for class k for pixel i,j of the n-th image. Often the score is the probability or si...

2 months ago | 0

| accepted

Answered

How to understand Softmax layer activations for pretrained CNN?

How to identify what class they correspond with? We can get this from the class names property of the output layer. What these...

How to understand Softmax layer activations for pretrained CNN?

How to identify what class they correspond with? We can get this from the class names property of the output layer. What these...

2 months ago | 0

| accepted

Answered

Recommendation for neural network implementation

It might be that you can solve this as sequence classification problem, e.g., https://www.mathworks.com/help/deeplearning/ug/c...

Recommendation for neural network implementation

It might be that you can solve this as sequence classification problem, e.g., https://www.mathworks.com/help/deeplearning/ug/c...

2 months ago | 1

Answered

Speed up 'dlgradient' with parallelism?

You can use a GPU for the dlgradient computation by using a gpuArray with dlarray. In this example, the minibtachqueue, puts da...

Speed up 'dlgradient' with parallelism?

You can use a GPU for the dlgradient computation by using a gpuArray with dlarray. In this example, the minibtachqueue, puts da...

2 months ago | 1

Answered

ONNX export yields Error !

It looks like you are hitting this bug: Error when using functions for importing or converting ONNX or Caffe models on Windows ...

ONNX export yields Error !

It looks like you are hitting this bug: Error when using functions for importing or converting ONNX or Caffe models on Windows ...

3 months ago | 2

Answered

extractFileText returns <missing>

The extractFileText function has been significantly rewritten for R2021a and may give different results for some PDF files. I re...

extractFileText returns <missing>

The extractFileText function has been significantly rewritten for R2021a and may give different results for some PDF files. I re...

3 months ago | 1

Answered

Will MATLAB provide Bert word embedding support?

BERT is available via this GitHub repository https://github.com/matlab-deep-learning/transformer-models

Will MATLAB provide Bert word embedding support?

BERT is available via this GitHub repository https://github.com/matlab-deep-learning/transformer-models

3 months ago | 3

Solved

Times 2 - START HERE

Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

5 years ago

Answered

cftool crashes Matlab

There are many potential sources of the problem here. Please contact MathWorks Technical Support so they can investigate the pro...

cftool crashes Matlab

There are many potential sources of the problem here. Please contact MathWorks Technical Support so they can investigate the pro...

9 years ago | 1

Answered

Custom m-file function in fitting tool

Yes, it is possible to use a Custom Equation in CFTOOL defined from a MATLAB file. Here is an example. Start by creating a file ...

Custom m-file function in fitting tool

Yes, it is possible to use a Custom Equation in CFTOOL defined from a MATLAB file. Here is an example. Start by creating a file ...

10 years ago | 0

Answered

The integral method used in postprocessing Analysis of Curve fitting tool

One of two techniques is used. # For many of the <http://www.mathworks.com/help/toolbox/curvefit/f1-76041.html#f1-63727 para...

The integral method used in postprocessing Analysis of Curve fitting tool

One of two techniques is used. # For many of the <http://www.mathworks.com/help/toolbox/curvefit/f1-76041.html#f1-63727 para...

10 years ago | 0