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...

1 día 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...

4 días ago | 0 answers | 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-...

15 días ago | 0 answers | 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...

7 meses 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...

8 meses 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, ...

8 meses 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...

8 meses 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...

8 meses 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...

9 meses 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...

10 meses 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...

10 meses 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!

10 meses 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...

10 meses 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...

alrededor de 1 año 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...

más de 1 año 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...

más de 1 año 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...

más de 1 año 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 ...

más de 1 año ago | 1 answer | 0