Question

How to I save the report generated in the current folder ?

Dear all, I am using the report function to generate the report from the code that I could extract from the report generator ...

1 year ago | 1 answer | 0

Question

What type of imput argument are valid in Plotconfusion?

Dear all, I try to create my confusion matrix with the following formula: plotconfusion(A,B) I tried it out with cate...

1 year ago | 0 answers | 0

Answered

How do I set X axis date tick (properly...) ?

For all, datetick('x','mmm-yy', 'keepticks', 'keeplimits'); Voila ! You can actually set both.

How do I set X axis date tick (properly...) ?

For all, datetick('x','mmm-yy', 'keepticks', 'keeplimits'); Voila ! You can actually set both.

1 year ago | 0

| accepted

Question

Machine learning: Ensemble trees in a time series classification problem.

Dear all, I have an issue with the ensemble trees algorithms. I am woking in a time series forecasting problem. As these ...

1 year ago | 1 answer | 0

Question

Is the function TreeBagger(NumTrees,Tbl,ResponseVarName) with NumTrees = 300 considered as random forest ?

The main question says it all. Just want to ensure I am doing it correctly. Thanks in advance, Pierre

1 year ago | 1 answer | 0

Question

Undefined function 'plotconfusion' for input arguments of type 'categorical'. ? WHHAATT ????

Dear all, I have no idea why the function *plotconfusion* does not work when the function *confusionmat* works perfectly well...

1 year ago | 1 answer | 0

Question

Do you have any idea/example how to build up a graph like this ?

Dear everyone, I would like to create a graph looking like the following: <</matlabcentral/answers/uploaded_files/115595/S...

1 year ago | 0 answers | 0

Question

How do I set X axis date tick (properly...) ?

Dear all, I successfully managed to have my much desired x axis date tick with the following code: title('Annex 1: S&P 5...

1 year ago | 2 answers | 0

Question

Bayes optimisation - How do I avoid graphs popping out at each iteration?

I couldn't find the same option 'ShowPlots' false as the hyperparameters optimisation. If you take the following code how wou...

1 year ago | 1 answer | 0

Question

KNN hyperparameters optimisation - How not to show plots ?

This doesn't work... Can you please help me how to write the option correctly ? classificationKNN = fitck...

1 year ago | 1 answer | 0

Question

How to convert from categorical to double ?

Dear all, I have a many different vectors 200x1 of categorical 0.5 0.75 1 1.25 1.5. These are the results of my machine learn...

1 year ago | 1 answer | 1

Question

Classification learner APP, why is there no leave one out option?

Dear machine learning experts, I am using the classification learner APP to easily run all algorithms at the same time. F...

1 year ago | 1 answer | 0

Question

How to fold up code in live script?

Dear all, Insert section break is easy but I still don't know how to fold up the code like %% would do it in regular script....

1 year ago | 3 answers | 0

Question

How to plot a confusion matrix ?

Dear Matlab experts, I have a issue with this function: plotconfusion(Ytest.grade,app.predict) When I put the tow vec...

1 year ago | 0 answers | 0

Question

Do random forest, K-means, SVM take into consideration past value in time series ?

Dear all, sorry for my stupid question but I am new to machine learning. I was wondering if I should introduce lagged variab...

1 year ago | 1 answer | 0

Question

How to code a simple machine learning model?

Hello everyone, machine learning is completely new to me and I was wondering if anyone could help me. If you consider the fol...

1 year ago | 1 answer | 0

Question

If function with cellfun (i.e. vectorized code instead of ridiculously slow loop).

Hello everyone. I am new to matlab and really try to optimize my code since it takes to much time to run. I don't really unders...

1 year ago | 0 answers | 0

Question

Why is ga optimization ridiculously slow to solve a problem ?

If you consider the following code, you can see that I have only one *integer* variable with [10 16] interval. Therefore, in...

1 year ago | 1 answer | 0

Answered

Plot financial data continuously in time

I have exactly the same issue but on a daily basis. I don't know why Matlab adds non existing days (i.e. gaps for the days where...

Plot financial data continuously in time

I have exactly the same issue but on a daily basis. I don't know why Matlab adds non existing days (i.e. gaps for the days where...

1 year ago | 0

Question

How to remove missing/non existing days in a graph?

The documentation I have found on the forum is only about removing the NaN which is not my case. Here, the missing days are a...

1 year ago | 1 answer | 0

Question

How do I reduce my right y axis scale ?

Here is the actual result. <</matlabcentral/answers/uploaded_files/106880/Screen%20Shot%202018-03-02%20at%2008.47.30.png>> ...

1 year ago | 1 answer | 0

Question

How do I make recognise a year in a given date ?

I have annual data that I should repeat for the number of concerned months. This is not straightforward since the period not alw...

1 year ago | 1 answer | 0

Question

Why ga optimization never gives consistent results ?

Hello everyone ! I am looking for some people with experience using ga optimization function. When I run the optimisation, it...

1 year ago | 0 answers | 0

Question

std function error "Subscript indices must either be real positive integers or logicals."

Pardon my stupidity but I really dont understand why matlab refuses to compute the standard deviation. I checked the data: 35...

1 year ago | 1 answer | 0

Question

Comparing 2 matrix with not the same dimension

Lets say I have these 2 following matrix (which are not the same dimension): A=[2 1 4 3 5 6] B=[5 4 3 1] My goal is to fi...

2 years ago | 2 answers | 0

Question

Is there a way to know how many hours or days we have spent coding on Matlab ?

Even if it is passive activity (matlab opened but not used). Thanks in advance for your answer! Pierre

2 years ago | 1 answer | 0

Question

How do I sort the max values from a matrix ?

Hello everyone ! In the following 577X2 matrix I have tickers of stocks in the first column and the number of occurence in th...

2 years ago | 2 answers | 0

Question

How to insert text in a matrix - If function

Dear All, In the following code I would like to insert 'good news', 'bad news', 'no news' instead of 1, 2, 3 in the "Announceme...

2 years ago | 2 answers | 0

Question

How do i read this number please ? Matlab output: 0.00000000000000 + 93.5831596829115i

What is the i signification. Thank you in advance !

2 years ago | 1 answer | 0

Question

How to remove 0 (for 'double' numerical type) or [] (for cell type) rows in a table ?

<</matlabcentral/answers/uploaded_files/63217/Screen%20Shot%202016-11-13%20at%2017.01.17.png>> Sorry I am new to matlab ! Any...

3 years ago | 1 answer | 0