Question

How to avoid inf

Dear all, I take the log of difference between two standard normal CDFs, that is D=log(normcdf()-normcdf()) but in...

5 years ago | 1 answer | 0

Question

inverse of a toeplitz matrix

Dear all, Could you please verify that the inverse of a toeplitz matrix is Om=2.^(0:(6)); Omega=toeplitz(Om) Omegainv=i...

6 years ago | 0 answers | 0

Question

Converting letters to strings

Dear Matlab users I read some data from an excel file. The column 11 of this file contains Baa1 Ca Baa B Aaa and ...

6 years ago | 2 answers | 0

Question

Kernel Smoothing Regression-multidimensional regressions

Hi all, I want to estimate the effect of x on y nonparametrically using the ksr function. My question is how this function...

6 years ago | 0 answers | 0

Question

how to save a matrix that contains NaN, strings and numbers

Dear all, I want to save a matrix 'out' that contains NaN, strings and numbers I tried save out but did not work. A...

6 years ago | 1 answer | 0

Question

plotting all the years of a time period vertically to the x-axis

Dear all, I have ns=2838 daily observations y. I plot these data using the following commands startDate = datenum('07...

6 years ago | 2 answers | 0

Question

Saving workpace to a log file. Is that possible

Hi all, I have a question. Is it possible to save the workspace as a ".log" file? thanks

6 years ago | 0 answers | 0

Question

converting specific string variables to double

Dear all, I have the following matrix A={'name' 'afsaf' 'sfsfs' '0' 'rpytui' '0' '0' '0' 'dfgl' 'trd...

6 years ago | 4 answers | 0

Question

error message: what is going on?

Dear all, I use matlab 2011. I get the following error message Error using Interface.000208DB_0000_0000_C000_000000...

7 years ago | 0 answers | 0

Question

replacing NaN with zeros in a cell column of strings

Dear all, I have this column A={[NaN] [NaN] [NaN] [NaN] [NaN] 'ka' [NaN] [NaN] 'jdfksjkg' '...

7 years ago | 3 answers | 0

Question

upper middle and lower third of a histogram

Dear all, I have data on GDP growth rates for 64 countries over 12 time periods (panel data set). I want to see if the ...

7 years ago | 1 answer | 0

Question

A question regarding fminunc

Dear all, I use the function fminunc having specified the components of optimset; that is; x00=cc; options=...

7 years ago | 0 answers | 0

Question

A question regarding mvnpdf

Dear all, I have a 2 by 1 variable u_t that varies across time t=1,....,T. This variable follows the multivariate normal N(0,...

7 years ago | 1 answer | 0

Question

convert cell array to string

Dear all, I have the matrix A={ 'EE' [ 1] 'EE' [NaN] 'EE' [NaN] 'EE' '2' 'EE' ...

7 years ago | 1 answer | 0

Question

replacing some string variables by others; a small problem

Dear all, i have the following problem I want to replace the elements of EER with the corresponding elements from EER1 ...

7 years ago | 1 answer | 0

Question

identifying mistakes in date vectors

Dear all, I have many excel files and in each excel I have a column under the name "dates". The date format is dd/mm/yyy a...

7 years ago | 1 answer | 0

Question

convert xlsx to csv

Dear all, I have an .xlsx excel file and I am using Matlab2011 to transform it to an csv.file so as to be able to import th...

7 years ago | 1 answer | 0

Question

a question regarding the format of dates

Dear all, I have an excel file that contains among other columns, a date column. In that column the dates are either in this f...

7 years ago | 2 answers | 0

Question

choosing unique elements in the order that they appear in a column of a cell vector

Dear all, I have the following cell matrix Out={ 'MN' 'AER_KL1' 'Bdrerv_1' 'MN' 'AER_KL1' ...

7 years ago | 2 answers | 0

Question

grouping elements of a column that correspond to specific elements from another column

Dear all, I issue the following commands in order to merge 3 excel files clear all fname = {'fgg.xlsx', 'sedf.xlsx','sd...

7 years ago | 2 answers | 0

Question

constructing a multilevel regression with random effects

Dear all, I have A={ type_of_loan rates country number_of observat number_of_loans number_of_brands ...

7 years ago | 1 answer | 0

Question

while loop; a small problem

Dear all, I have the following statement k=1; while abs(k) >= 1 'excecute' end the above code is ...

7 years ago | 1 answer | 0

Question

how to treat the last observation? Forecasting??

Dear all, I have the following cell matrix A={ '24/09/2000' [4.1583] '22/10/2000' ...

7 years ago | 1 answer | 0

Question

is there a jump of 2 months?

Dear all I have the following sequence of dates A={ '24/09/2000' '22/10/2000' '19/11/2000' '17/12/2...

7 years ago | 3 answers | 0

Question

How many zeros do I have before a specific sting variable?

Dear all I have A={ [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] ...

7 years ago | 4 answers | 0

Question

replacing NaN with it previous element

Dear all, I have K={ 'IT' 'ooil' 'TTT' [ 0] [4.1583] 'IT' 'ooil' 'TTT' [ 0] ...

7 years ago | 3 answers | 0

Question

filling the gaps in the sequence of dates

*EDITED* Dear all, I have A={ 'kl' '10/08' [4.4840] [4.1101] [ 0] 'kl' '01/09' [4.4840...

7 years ago | 1 answer | 0

Question

creating additonal rows of NaN in specific positions

Dear all, I have a large matrix (double array of dimension 80000 by 21) and I want to create NaN rows in specific positions...

7 years ago | 1 answer | 0

Question

increase the length of a martix every 5 rows

Dear all, I have a matrix (double array) of dimension 40000 by 7 and I want to increase the length of this matrix every 5 row...

7 years ago | 2 answers | 0

Question

computing montly averages when time series observations are irregural

Dear all, I have the following problem Let A ={ '02/11/08' [0.2150] [429.5674] [ 100] [2.2678e+0...

7 years ago | 1 answer | 0