Community Profile

photo

Saad


EDHEC Business School

Active since 2011

Followers: 0   Following: 0

Message

Statistics

  • First Review
  • Thankful Level 3

View badges

Feeds

View by

Question


For loop or while loop? help please
Dear sir, I have a simple code for k=1:3 for i=1:7 do something end end If k=1 I would like the l...

9 years ago | 2 answers | 0

2

answers

Question


How to write data from matlab to excel horizontally?
Dear all, Please any advice on this is much appreciated. If i use this command: xlswrite('xxxtrice.xlsx', output, 'She...

9 years ago | 1 answer | 0

1

answer

Answered
Variable not recognized outside a loop
Thank you Azzi. I did increment v but I deleted it by mistake. Thanks a lot for your help Rgds Saad

9 years ago | 0

Answered
Variable not recognized outside a loop
It says " ??? Undefined function or variable 'F'." Thanks to the output "F" I managed to build another code below the loop...

9 years ago | 0

Question


Variable not recognized outside a loop
Dear All, I have a simple but a long code. As you can see from the loop below, I am not a very efficient coder but my code wo...

9 years ago | 4 answers | 0

4

answers

Question


logical indexing please help
Hey guys, I would really appreciate your help in this. I have a matrix of logical (i.e. for each row I have a lot of ones ...

10 years ago | 1 answer | 0

1

answer

Question


How can I use the output of "sprintf" to read the content of a matrix
Dear all, I am trying to use a loop to read into different matrices which are: results_USA, results_UK, results_JAP and resul...

10 years ago | 2 answers | 0

2

answers

Question


Regression with expanding window and break points
Dear All I would like to do an expanding window regression with breaks points. I am struggling to build the code for that. He...

10 years ago | 0 answers | 0

0

answers

Question


geometric mean month by month
Dear All, I need some help please. I have two columns in a matrix B. B=[A, X]; X is a column vector that contains differ...

11 years ago | 3 answers | 0

3

answers

Answered
geometric mean month by month
Or maybe simpler I could just pick the first and the last day of the month and do a geometric mean of all values in between. Any...

11 years ago | 0

Question


how to use transformation with fminunc
Dear all, I am replicating a paper who recommends using fminunc to do a "constrained" optimization through a transformation...

11 years ago | 1 answer | 0

1

answer

Question


delete the row where is a NaN
Dear all, I am stuck in a silly programming problem and I would like to ask for some help please. I have two cells a and b...

11 years ago | 3 answers | 0

3

answers

Question


array summation with matrices of different size
Dear All, I would appreciate some help on this one please. I am summing matrix elements in different arrays. Say we have 2...

11 years ago | 2 answers | 0

2

answers

Question


assign a value to a string
Dear all, I have a list of string: txt={'BBB3', 'BBB2', 'BBB1', 'A3', 'A2', 'A1','AA3','AA2','AA1'}; i would like to as...

11 years ago | 2 answers | 0

2

answers

Answered
write a cell information in excel file
Thanks a lot Walter...I have tried the code and it is running nicely although I haven't fully understood it. Just a quick questi...

11 years ago | 0

Question


write a cell information in excel file
Dear all, could you please advise on how I could write cell information in excel file. here is some part of the code. o...

11 years ago | 2 answers | 0

2

answers

Question


Fmincon + Interior point algorithm + Memory problems---How to fix this problem please>
Dear All, I keep receiving this error message when implementing an optimization with fmincon (interior point algorithm). I s...

11 years ago | 2 answers | 0

2

answers

Question


Lsqlin-Matrix badly scaled
Dear all, I would appreciate any comment or help on this. I have to solve a constrained linear squared problem with lsqlin wh...

11 years ago | 0 answers | 0

0

answers

Question


Break a loop when reading different excel files
Dear all, I am trying to read different excel files from 2010 to 2012. Basically, for each month, there is one excel file. So...

11 years ago | 1 answer | 0

1

answer

Question


find common elements of two arrays
Dear all, I have two arrays of different size say A(nx1) and B(mx1) where n differs from m. I would like to find the elements...

11 years ago | 3 answers | 0

3

answers

Question


Stop the optimiser manually and get the final values
Dear all, I am trying to optimize a function with many parameters using fminunc. The optimizer has been running for more than...

12 years ago | 1 answer | 0

1

answer

Question


fminsearch does not minimize my function
Dear all, I am using fminsearch to minimize a function with 7 parameters..the function is very long. Fminsearch doesnt conve...

12 years ago | 1 answer | 0

1

answer

Answered
Pricing a bond with different YTM (at cross sectional level)
To Fangjun /Oleg I know that but I have a time series of bond and for each row I have a zero rate with different maturities so...

13 years ago | 0

Question


Pricing a bond with different YTM (at cross sectional level)
Dear Sir or Madam I was wondering if there is a function in matlab that prices bonds with different YTM?. For example: Bon...

13 years ago | 3 answers | 0

3

answers