Question

How to make a variable content part of a path

I have a string variable, which is changing during the loop, it is named filename and it takes on values like 'file001.txt', 'fi...

2 years ago | 1 answer | 0

Question

How to do vlookup with several conditions

I have a matrix called comb which has 4 columns. I want to do something like vlookup but with 4 columns. Lets say the four colum...

2 years ago | 1 answer | 0

Question

Is it possible to lable xminortick

I am plotting some data and on the x-axis, it is the hours of the days. I would like to have major tick for the days and the min...

4 years ago | 1 answer | 0

Question

How to publish a script including many figures but not opening them on the screen

I have a script which plots many figures. I would like to publish it, with all the figures. But I don't need all the figures to ...

4 years ago | 1 answer | 0

Question

Any good ways to read data from messy Excel files?

Hi, I have some data in Excel files. They include variable names and variable contents (usually a column or a row) and some are ...

4 years ago | 0 answers | 0

Question

In fitglm, how can I have a predictor as both categorical and ordinal?

I have a predictor variable of AgeGroup. It has value of 1,2, 3... 9. I want it to be categorical and ordinal. However, if I use...

4 years ago | 2 answers | 0

Question

How to re-produce an existing variable in the script without using it?

Hi, this sounds silly... I have a variable in my workspace... say it is called A of size (200,1). Each element of it is just a n...

4 years ago | 4 answers | 0

Question

Exporting large dataset into Excel

I have a 100000*407 double variable in my workspace and want to save it in Excel. I got error message. I am pretty sure the sint...

4 years ago | 1 answer | 0

Question

Very long running time of grpstats

I am using grpstats function to count by one group variable. My dataset is 380,000 by 16. But I am only counting one of the 16 v...

4 years ago | 0 answers | 0

Question

How can I know if my license includes Matlab Compiler (SDK) or not?

Thanks!

4 years ago | 1 answer | 1

Question

Why does stepwiseglm give me many chosen predictors with p value close to 1

Hi, I ran a stepwiseglm with around 32 predictors and used stepwiseglm with poisson as link function. After nearly 9 hours, it c...

4 years ago | 0 answers | 0

Question

Can strsplit be applied to a matrix?

Hi, I am used strsplit to take out 1 from string of "1: abc". I have to loop each string and that takes time. Is there anyway th...

4 years ago | 1 answer | 0

Question

How to create new variables in batches with strcat

Hi, What I want to do is something like for m=1:11 for i=1:3 for k=1:5 for x=1:9 ...

4 years ago | 1 answer | 2

Question

Can xlsread (Matlab) read pre-named range in Excel by range name?

Hi, I know xlsread can read precise the range you specify, for example A= xlsread(filename,'Sheet1','I1:I2') However, I hav...

5 years ago | 2 answers | 1

Question

How to find the variable by cell array contents

Hi, I have a cell array that looks like this: <</matlabcentral/answers/uploaded_files/26089/MyCell.JPG>> It's (2,10) ele...

5 years ago | 1 answer | 0

Question

How the CI of GLM parameters are calculated?

I need to have the distributions of the coefficients estimated by glm model. I tried to find them and tested if the ones I found...

5 years ago | 1 answer | 0

Question

How to obtain the values of parameters of the response distribution in GLM

Say I have a datast called dataset modelspec = 'Y ~ x1 + x2+ x3 + x4 + x5'; mdl_invG = fitglm(dataset, modelspec, 'Dis...

5 years ago | 0 answers | 0

Question

fitglm warning message "Warning: Iteration limit reached"

What does that mean? My dataset has 215 observations. Is it too small? Thanks a lot!

5 years ago | 0 answers | 1

Question

Does this mean my dataset has too few observations?

I ran a GLM regression with 5 indepedent variables. My dataset contains 238 observations and I got error message like this: ...

5 years ago | 1 answer | 0

Question

How can I save all screen outputs and figures generated in one MS Word file?

Hi, I'm running some scripts which generate some results on the screen and some figures plotted. I know diary can save all scree...

5 years ago | 1 answer | 0

Question

How to calculate AIC in glmfit?

Please help me with this! How to calculate AIC in glmfit? I use gamma and log as link function. Thanks a lot!

5 years ago | 1 answer | 0

Question

How to read GLM results / choose the best model?

Hi, I am wondering in Matlab, which indicator should be used to choose the best model? When I use fitglm, in addition to the ...

5 years ago | 0 answers | 0

Question

Got Error message (OutOfMemoryError) when I just started Matlab. Why?

Hi, this sounds a stupid question... I start my Matlab session, and barely defined ore or two variables and a full screen of err...

6 years ago | 0 answers | 0

Question

Why I get different outcomes from iteration as part of a big function and iteration as main part of a small function

Hi, I'm really bothered by this issue and will appreciate help very much. I have a while loop which has only 7 lines and i...

6 years ago | 0 answers | 0

Question

How to print out cell array to CSV file?

Hi, I have a large cell array (600000*75). I just want to write it into CSV file. It has both numeric and text values. How s...

6 years ago | 1 answer | 0