Domanda


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

quasi 7 anni fa | 1 risposta | 1

1

risposta

Domanda


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

quasi 7 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 7 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 7 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 7 anni fa | 0 risposte | 0

0

risposte

Domanda


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

oltre 7 anni fa | 0 risposte | 0

0

risposte

Domanda


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

oltre 7 anni fa | 0 risposte | 1

0

risposte

Domanda


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

oltre 7 anni fa | 2 risposte | 0

2

risposte

Domanda


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

oltre 7 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 7 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 7 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 8 anni fa | 0 risposte | 0

0

risposte

Domanda


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

quasi 8 anni fa | 2 risposte | 0

2

risposte

Domanda


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

quasi 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 8 anni fa | 2 risposte | 0

2

risposte

Domanda


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

quasi 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 8 anni fa | 0 risposte | 0

0

risposte

Domanda


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

circa 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 8 anni fa | 2 risposte | 0

2

risposte

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

circa 8 anni fa | 0

Domanda


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

circa 8 anni fa | 2 risposte | 0

2

risposte

Domanda


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

circa 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 8 anni fa | 0 risposte | 0

0

risposte

Domanda


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

circa 8 anni fa | 2 risposte | 0

2

risposte

Carica altro