Question

In Deep Learning Toolbox, what input layer should I use for simple dataframe-type input?

In Deep Learning Toolbox, we can use imageInputLayer() and imageDatastore() for image-type input. How about the simplest type o...

2 months ago | 2 answers | 0

Question

Is it s defect that the fitcsvm() function picked some "far away" points as the support vectors?

Hi, I used fitcsvm() to run SVM on some data with Gaussian kernel. The yellow circled points are the support vector. However,...

2 months ago | 1 answer | 0

Question

Control system functions, e.g. pck and ss not working

Hi, From an old post I noted that pck() is now ss(). But ss() doesn't work for me either. How can I use pck()? Thanks!

6 months ago | 1 answer | 0

Answered

How to calculate the number of parameters in MATLAB that is used by a deep learning network like VGG/ResNet

I used a function to analyse it manually. I'm not sure if there're better approaches. Here's my code for a dlnetwork object myDL...

How to calculate the number of parameters in MATLAB that is used by a deep learning network like VGG/ResNet

I used a function to analyse it manually. I'm not sure if there're better approaches. Here's my code for a dlnetwork object myDL...

6 months ago | 0

Question

Why would the file size of a deep learning gradient become much bigger after saving as a .mat file?

Hi, I have a variable gradients which is the gradient of a deep learning model. From the code "whos gradients" you can see that...

6 months ago | 1 answer | 0

Question

How to do the sum for 2 gradient objects in the deep learning toolbox?

Hi, I have gradients1 and gradients2 which have exactly same structure but different numerical values. How can I do the sum? Cu...

6 months ago | 1 answer | 0

Question

How to extract partial derivatives of some specific layer in the back-propagation of a deep learning model?

Say I have a deep learning model, and after training I call this model net. When I input some images into net, I want to have t...

6 months ago | 1 answer | 0

Question

How to efficiently do matrix multiplication for 2 specific dimensions of the tensor?

Hi, I have a rank-5 tensor A and a rank-2 matrix B, and I want to captured the first two dimentions of A as slices and do the m...

7 months ago | 1 answer | 0

Question

How to get the gradient with respect to the output of a specific layer in a deep learning model?

Hi, I have a model myModel which is a simple 2 Layers model (i.e. input size: 3; Layer_1 size: 7; Layer_2 size: 4). That is, t...

7 months ago | 1 answer | 0

Question

In the GAN example of the documentation, did we update D several times before updating G?

Hi, In the following example of GAN for the deep learning toolbox ( https://www.mathworks.com/help/deeplearning/examples/train-...

7 months ago | 1 answer | 0

Question

Unable to save file for Quiver

Hi, I have a quiver but I'm unable to save it by using imwrite? What should I do? (the function imwrite would be more preferabl...

1 year ago | 1 answer | 0

Question

How to change the marker type of a 3D scatterplot with respect to the labels?

Hi, I have the below 3D scatterplot. I want to change the marker type with respect to the different labels (e.g. plot.markertyp...

1 year ago | 0 answers | 0

Question

Computing distance between two set of points (under vectorized approach)

I have two matrices (two set of p-dimensional points), X1 and X2, which are n*p and m*p matrices. I want the final output Dist, ...

1 year ago | 0 answers | 0

Question

How to go back to the previous figure to edit?

Hi, I have figures fh1 and fh2. I want to create fh1 first, and then create fh2, but after that to go back to edit fh1. How can...

1 year ago | 1 answer | 0

Question

How to read the details of a '1×1 struct' Cell Array?

Hi, I have a variable called L1, which is a '1×1 struct' Cell Array. I want to extract the details of this variable, but I trie...

1 year ago | 1 answer | 0

Question

What is the meaning of groups in importCaffeNetwork()?

Hi, I have the caffe model and tried to import it by using this:- net = importCaffeNetwork(protofile,datafile) And then I ha...

1 year ago | 0 answers | 0

Question

Why can't the MSE of lasso() match the theoretical value?

Hi, I have below MSE1 and MSE2, which I got 13.27 and 5.87. Why don't they match? clear %set seed rng(123); X=10*rand([30...

1 year ago | 0 answers | 0

Question

How to use the current windows for the new plot?

Hi, When I run my code, everytime I need to close the current plotting windows, otherwise the next run will pop up a new window...

1 year ago | 1 answer | 0

Question

Why is lasso() not consistent with the answer of the normal equation?

Hi, I have below. Why is B1 different to B2? X=[1;1] y=[2;2] B1=inv(X'*X)*X'*y B2=lasso(X,y,'lambda',0) Thanks!

1 year ago | 0 answers | 0

Question

How to create a list?

Hi, I want to store numbers in an object A, so that when I call A(i) I can got the i-th element. But each A(i) may have diffe...

1 year ago | 2 answers | 1

Question

How to read the structure of a neural network in a mat file?

Hi, I have a mat file which is a neural network, and I want to know the structure of the network. I tried to open the mat fil...

2 years ago | 0 answers | 0

Question

How to do matching in table format?

Hi, I have some data, putting in a matrix A:- Col1 = [1;4;0]; Col2 = [2;5;2]; Col3 = [3;6;4]; A = [Col1...

2 years ago | 1 answer | 0

Question

The script can't continue after pause

Hi, In my script, there are "pause;" after some plots. A "pause;" commands is referring to the entire line of code. In the...

2 years ago | 1 answer | 0

Question

How can I download a zip file from Matlab online to my desktop?

Hi, I have a folder in Matlab online, and I zipped it as a zip file. How can I download this zip file to my desktop? I tri...

2 years ago | 1 answer | 0

Question

How to construct a customized outer function for 2 vectors?

Hi, I have 2 vectors, namely A (dim n) and B (dim m). I want to have some customized outer functions to give me an output of ...

2 years ago | 1 answer | 0