Pregunta


How to set the y-axis values to be only integers?
Hi everybody, If I have the following vector x = [1 1 1 1 1 2 2 2 2 1 1 1 1 2 2 2 2 2 2 3 3 3 3]; and I want to creat...

casi 7 años hace | 1 respuesta | 1

1

respuesta

Pregunta


How to generate multiple graphs per page in several pages in one loop?
Hi everyone, I would like to create a single loop that will generate several pages of graphs. Moreover, I would like each pag...

casi 7 años hace | 1 respuesta | 0

1

respuesta

Pregunta


How to center vector to mean zero?
Hi everyone, I would like to center a vector A = randn(50,1) to center, meaning that (1/N)*sum(a(i)) = 0 , where a is the cen...

alrededor de 7 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Why do I get undefined variable in an if statement?
Hi everyone, I get an error for undefined function or variable in the if statement, when I have already assigned the equalities...

alrededor de 7 años hace | 1 respuesta | 0

1

respuesta

Pregunta


How to use if statement with xlsread function?
Hi, I would like to set an if statement that will verify whether the values of y come from the corresponding column and will ...

alrededor de 7 años hace | 0 respuestas | 0

0

respuestas

Pregunta


Why is the first factor in Kernel Principal Component Analysis a very big number?
Hi everyone, I am using KPCA with the function provided by Ambarish Jash (https://uk.mathworks.com/matlabcentral/fileexchange...

más de 7 años hace | 0 respuestas | 0

0

respuestas

Pregunta


How can I save the parameters in neural networks at the end of every period t-1 and use them to reinitialize train from that point at time t?
I am using Matlab and I try to train a neural network. Due to the big number of observations I need to reduce the computational ...

más de 7 años hace | 0 respuestas | 1

0

respuestas

Pregunta


How to start my plot from the beginning of the x-axis?
Hi everyone, I try to create a plot where I want to assign in the x-axis the dates, starting from 01:1974 to 12:2014. If I cr...

más de 7 años hace | 2 respuestas | 0

2

respuestas

Pregunta


How do I get the position of the highest numbers of a vector?
Hi everyone, Does anyone know how to get the position of 4 highest numbers of a vector? For example, rng(1) a = rand...

más de 7 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Validation Error with trainbr is NaN
Hi everyone, I would like to ask why do I get a vector of NaN values to the MSEval below when I apply the trainbr algorithm. ...

más de 7 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Create cell arrays from doubles
Hi everyone, I would like to ask how I can combine 3 doubles into one cell array. I want to get a cell array 2x1, say abc_i,...

más de 7 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Shaded area in graph
Hi everyone, I want to create a vertical shaded area when my variable a>0. So far, I have created the plot with the use of tt...

casi 8 años hace | 0 respuestas | 0

0

respuestas

Pregunta


Set date limits into x-axis
Hi everyone, I have created several plots into a single figure, but the problem is that the x-axis (dates) are not consistent...

casi 8 años hace | 2 respuestas | 0

2

respuestas

Pregunta


How do I hold plots from a for loop?
Hi everyone, I am trying to hold the plots produced in a for loop but I only get the last plot. What I have done so far is th...

casi 8 años hace | 1 respuesta | 0

1

respuesta

Pregunta


How do I use several if statements in a single loop?
Hi everyone, I would like to use the MACD index and state the following if expressions in one loop, ie for every time t. Fir...

casi 8 años hace | 1 respuesta | 0

1

respuesta

Pregunta


How to invert 3D matrices?
Hi everyone, I have a 3D matrix so A with dimensions 3x2x5 and I need to invert the following folmula inv(A'A). I need to tr...

casi 8 años hace | 2 respuestas | 0

2

respuestas

Pregunta


How many degrees should be counted for computing the adjusted R^2 of a neural network?
Hi everyone, I am trying to calculate the adusted R^2 of a network.Thus I should take into account the number of parameters o...

casi 8 años hace | 1 respuesta | 0

1

respuesta

Pregunta


How to subtract from a vector a three dimentional matrix
Hi everyone, I have a 1x12 vector and a 3x2x12 matrix, say i x j x t. I want to subtract for each i and for each j the corres...

casi 8 años hace | 1 respuesta | 0

1

respuesta

Pregunta


How do I get the mse after trainin a NN?
Hi everyone, I want to receive the mse from the trained neural network. To make it simple i form a 3 loops, where the out-of-...

casi 8 años hace | 1 respuesta | 0

1

respuesta

Pregunta


optimization of multivariate portfolio.
Hi everyone, I want to construct the weights of a multivariate portfolio that includes 6 assets. However, I need to constrain...

casi 8 años hace | 0 respuestas | 0

0

respuestas

Pregunta


if function in cell arrays
Hi everyone, I try to use to use the if function in cell arrays. If I have A that is 2x100 cells and each cell contains a 6x1...

alrededor de 8 años hace | 1 respuesta | 0

1

respuesta

Pregunta


How can I multiply cell arrays
Hi everyone, I have a cell array A 2x100. Each element of A is a 6x1 matrix. If B is a 101x6 matrix. I want to multiply each ...

alrededor de 8 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Divide a cell arrays with a part of another cell array
Hi everyone, I want to divide a cell array A, 2x100 with the last 100 elements of another cell array B 1x101.All of the eleme...

alrededor de 8 años hace | 2 respuestas | 0

2

respuestas

Respondida
Raise elements of cell arrays in the power of 2
You are right. However, I needed to create cell arrays in an earlier stage in order to avoid tens of repetitions and I am stack ...

alrededor de 8 años hace | 0

Pregunta


Raise elements of cell arrays in the power of 2
Hi everyone, I have a cell array A of 2x100, where each element is a scalar and I want to raise in the power of 2. I have tri...

alrededor de 8 años hace | 2 respuestas | 0

2

respuestas

Pregunta


Subtract from a cell array of vectors a vector
Hi everyone, I have a cell arrays A of 2x100. Each element inside the cell arrays is a scalar. I need to subtract a 2x1 cell ...

alrededor de 8 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Cell array in a loop
Hi everyone, I have created a cell array of dimensions 1x10, named A. Each element contains a 100x5 matrix. Hence, I got 10 m...

alrededor de 8 años hace | 1 respuesta | 0

1

respuesta

Pregunta


How to use command function?
Hi everyone, I have to generate 15 matrices of dimensions 432x6. Instead of doing it manually, such as: %create a matrix...

alrededor de 8 años hace | 1 respuesta | 0

1

respuesta

Pregunta


recursively calculated variace covariance matrix
Hi all, I have the following question: I need to calculate for every time t the following equation: w_t=c*inv(VCV_(t+1))...

alrededor de 8 años hace | 0 respuestas | 0

0

respuestas

Pregunta


Get columns from a matrix
Hi everyone! I have a matrix 432x90 and I want to create several subtables from this Table. The pattern I want these new tables ...

alrededor de 8 años hace | 2 respuestas | 0

2

respuestas

Cargar más