Community Profile

photo

gsourop


50 total contributions since 2016

Contact

gsourop's Badges

  • Thankful Level 3

View details...

Contributions in
View by

Question


I am not getting the correct answer when using datetime function
Hi everyone, I am using the following function datetime(1,43100,1) but instead of getting '31/12/2017' as an answer (as given...

6 jours ago | 2 answers | 0

2

answers

Question


How to scale figure when printed in pdf without losing resolution?
Hi everyone, I would like to ask how can I resize a figure (or reduce white space margins around the figure) before printing in...

2 mois ago | 1 answer | 0

1

answer

Question


How can I change orientation and resolution in a pdf printed figure?
Hi everyone, I would like to ask how can I change orientation and resolution (at least 300dpi) in the printed pdf file of a fig...

2 mois ago | 1 answer | 0

1

answer

Question


How can I create a plot with subplots in a loop?
Hi everyone, I am trying to create a plot with subplots within a loop. The code so far is: x = randn(100,13); D = 1966 dis =...

2 mois ago | 1 answer | 0

1

answer

Question


How to reshapre a matrix?
Hi everyone, I would like to reshape a matrix, say A: rng default A = randn(12,4) A = 0.5377 -1.3499 0.6715 0...

3 mois ago | 1 answer | 0

1

answer

Question


How to plot dates expressed in the form of number?
Hi everyone, I want to plot dates that are expressed in the following format: % x-axis Time = [730211, 730241, 730302, 730333...

4 mois ago | 1 answer | 0

1

answer

Question


How to write cell arrays in Excel?
Hi everyone, I am trying to write a cell array in Excel but I don't get any results. The code I have prepared is below: A = ...

5 mois ago | 1 answer | 0

1

answer

Question


Write results in Excel under multiple If statements
Hi there, I would like to ask how can I use multiple if statements. I have written the following code but I only get results ...

6 mois ago | 1 answer | 0

1

answer

Question


How to use xlswrite with cell arrays in a loop?
Hi everyone, Suppose that I have the following cell array: AA = cell(10,1); for i = 1 : 10 A = randn(20,1); AA{i,1} = A; ...

8 mois ago | 1 answer | 0

1

answer

Question


How to find if a pair is within an unorthogonal area with parallel sides?
Hi everyone, Suppose I have the area within the following x,y pairs, (3,1), (3,5), (12,1), (12,7), (6,5) and (6,7). I would ...

9 mois ago | 1 answer | 0

1

answer

Question


How can I determine is (x,y) pair is inside an orthogonal area?
Hi everyone, Suppose we have an orthogonal area where the 4 x,y pairs are (1,5) , (3,5) , (1,7) and (3,7). I would like to test...

9 mois ago | 2 answers | 0

2

answers

Question


How can I add constraints in a solution of a function?
Hi everyone, I would like to solve the following function by adding two constraints. S=randn(6,6); y=randn(6,1); ONE = ...

11 mois ago | 1 answer | 0

1

answer

Question


How can I strip single quotes from a cell array?
Hi everyone, I am trying to get rid of the single quotes from a cell array elements in order paste results on TEX. In additio...

11 mois ago | 1 answer | 0

1

answer

Question


Why do I receive empty outputs in cell arrays after an if statement?
Hi everyone, I am applying an if statement in doubles and allocate outputs in cell arrays, such as stars{1}='*'; stars{...

11 mois ago | 2 answers | 0

2

answers

Question


How to use cell2mat for specific elements of cell array?
Hi everyone, I am trying to create a double from specific elements of a cell array. If I have a cell array B, of dimensions 6...

11 mois ago | 1 answer | 0

1

answer

Question


How could I randomly split the columns of a matrix into 3 matrices with equal number of columns?
Hi everyone, I would like to ask if there is a way to split a matrix A, with dimensions (100 x 12) into three sub-matrices wi...

11 mois ago | 1 answer | 0

1

answer

Question


How to concatenate the rounded digits of a number and a string?
Hi everyone, I am trying to concatenate a rounded number (in the 2nd digit after decimal) and string value, so that: x= ...

12 mois ago | 2 answers | 0

2

answers

Question


How to create doubles from cell arrays?
I would like to ask if there is a more efficient code to do the following task: a = cell(10,1); for i = 1 : 10 a...

plus d'un an ago | 1 answer | 0

1

answer

Question


How to calculate the weight of a mean variance portfolio
Hi everyone, I want to create a mean-variance portfolio of 6 risky assets and 1 risk free. The investor has a target portfolio ...

plus d'un an ago | 0 answers | 0

0

answers

Question


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

plus d'un an ago | 1 answer | 0

1

answer

Question


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

presque 2 ans ago | 1 answer | 0

1

answer

Question


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

presque 2 ans ago | 1 answer | 0

1

answer

Question


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

presque 2 ans ago | 1 answer | 0

1

answer

Question


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

presque 2 ans ago | 0 answers | 0

0

answers

Question


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

environ 2 ans ago | 0 answers | 0

0

answers

Question


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

plus de 2 ans ago | 0 answers | 0

0

answers

Question


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

plus de 2 ans ago | 2 answers | 0

2

answers

Question


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

plus de 2 ans ago | 1 answer | 0

1

answer

Question


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

plus de 2 ans ago | 1 answer | 0

1

answer

Question


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

plus de 2 ans ago | 1 answer | 0

1

answer

Load more