질문


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

거의 7년 전 | 답변 수: 1 | 1

1

답변

질문


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

거의 7년 전 | 답변 수: 1 | 0

1

답변

질문


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

대략 7년 전 | 답변 수: 1 | 0

1

답변

질문


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

대략 7년 전 | 답변 수: 1 | 0

1

답변

질문


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

대략 7년 전 | 답변 수: 0 | 0

0

답변

질문


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

7년 초과 전 | 답변 수: 0 | 0

0

답변

질문


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

7년 초과 전 | 답변 수: 0 | 1

0

답변

질문


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

7년 초과 전 | 답변 수: 2 | 0

2

답변

질문


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

7년 초과 전 | 답변 수: 1 | 0

1

답변

질문


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

7년 초과 전 | 답변 수: 1 | 0

1

답변

질문


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

7년 초과 전 | 답변 수: 1 | 0

1

답변

질문


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

거의 8년 전 | 답변 수: 0 | 0

0

답변

질문


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

거의 8년 전 | 답변 수: 2 | 0

2

답변

질문


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

거의 8년 전 | 답변 수: 1 | 0

1

답변

질문


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

거의 8년 전 | 답변 수: 1 | 0

1

답변

질문


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

거의 8년 전 | 답변 수: 2 | 0

2

답변

질문


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

거의 8년 전 | 답변 수: 1 | 0

1

답변

질문


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

거의 8년 전 | 답변 수: 1 | 0

1

답변

질문


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

거의 8년 전 | 답변 수: 1 | 0

1

답변

질문


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

거의 8년 전 | 답변 수: 0 | 0

0

답변

질문


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

대략 8년 전 | 답변 수: 1 | 0

1

답변

질문


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

대략 8년 전 | 답변 수: 1 | 0

1

답변

질문


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

대략 8년 전 | 답변 수: 2 | 0

2

답변

답변 있음
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 ...

대략 8년 전 | 0

질문


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

대략 8년 전 | 답변 수: 2 | 0

2

답변

질문


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

대략 8년 전 | 답변 수: 1 | 0

1

답변

질문


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

대략 8년 전 | 답변 수: 1 | 0

1

답변

질문


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

대략 8년 전 | 답변 수: 1 | 0

1

답변

질문


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

대략 8년 전 | 답변 수: 0 | 0

0

답변

질문


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

대략 8년 전 | 답변 수: 2 | 0

2

답변

더 보기