Beantwortet
Why even after 4 hours the command parpool('local',5) not finished?
I would highly suggest that you validate your settings. In MATLAB select the drop down from the 'Parallel' icon (in the Environm...

fast 11 Jahre vor | 0

Beantwortet
Standardization of KNN Variables
This was added to the _fitcknn_ function in R2014b. If you are using a previous version then you do not have access to this Prop...

fast 11 Jahre vor | 0

| akzeptiert

Beantwortet
Animate line but show marker only on current point
There is a function <http://www.mathworks.com/help/matlab/ref/comet.html comet> which does exactly this. It does not however all...

fast 11 Jahre vor | 4

Beantwortet
csv file with a whitespace before comma
You can also use _xlsread_ or _readtable_ (the latter requires version 2013b or later). xlsread('test.csv') readtable('t...

fast 11 Jahre vor | 0

Beantwortet
stepwiselm: too many output arguments
It complains about having too many output arguments because <http://www.mathworks.com/help/releases/R2015a/stats/stepwiselm.html...

fast 11 Jahre vor | 2

| akzeptiert

Beantwortet
Specify Cell in GUI Table
A uitable is just storing the data in a Property named 'Data'. I show two examples, one for a matrix and the other a cell array,...

fast 11 Jahre vor | 0

| akzeptiert

Beantwortet
Strange behaviour in integral function in MATLAB
Numeric quadrature works by iteratively splitting the interval apart and approximating the integral of each partition. The appr...

fast 11 Jahre vor | 3

| akzeptiert

Beantwortet
WHAT'S THE WRONG IN MY CODE CVAR CALCULATION?
The problem with your setup has nothing to do with the lines you mentioned, but rather with the equality constraints conflicting...

fast 11 Jahre vor | 0

Beantwortet
Is it possible to use lsqcurvefit without text messages?
The following should work: opt = optimoptions('lsqcurvefit','Display','off'); x = lsqcurvefit(fun,x0,xdata,ydata,lb,ub,o...

fast 11 Jahre vor | 1

| akzeptiert

Beantwortet
Unrecognized variable name 'rows'
You are trying to use this with a dataset, which will call the _ismember_ method of this class and not the base MATLAB _ismember...

fast 11 Jahre vor | 1

| akzeptiert

Beantwortet
How to get the no of default ticks formed in to the code when plotting a figure in matlab?
You can actually just use the datetick function: dFormat = 'mmm-yyyy'; % or whatever date format you want datetick('x',d...

fast 11 Jahre vor | 0

| akzeptiert

Beantwortet
Clearing plot in GUI axes
You need only get the plot objects (or handles prior to 2014b) to delete that individual plot. f = figure; a = axes('Par...

fast 11 Jahre vor | 0

Beantwortet
non linear regression code
If you have a late enough version you can use <http://www.mathworks.com/help/releases/R2015a/stats/fitnlm.html fitnlm> or <http...

fast 11 Jahre vor | 0

Beantwortet
Need help for large scale portfolio optimisation
For a quadratic objective function you would want to use _quadprog_ so you are right in this sense, _fmincon_ will just take lon...

fast 11 Jahre vor | 0

Beantwortet
How to write equality constraints for receivers that hourly consume a certain amount of energy
You should be representing the design variables as a column vector, I will call it _x_. With that in mind we want the constraint...

fast 11 Jahre vor | 0

| akzeptiert

Beantwortet
Wait for a function to finish while the function runs GUI
a) This does not run if you call the function by itself. b) Your issue has to do with the callback functions of the uicontrol. ...

fast 11 Jahre vor | 2

| akzeptiert

Beantwortet
I am learning Matlab and i am always getting the error "Undefined function 'solve' for input arguments of type 'char'." when i try to solve an equation. How do i solve it?
It looks like you are trying to use the symbolic math toolbox, in which case you need to make these variables symbolic: sym...

fast 11 Jahre vor | 0

Beantwortet
Fitting general pareto distribution to histogram
The 0.5 has to do with the bin width. So the area under the curve of the pdf is equal to one and needs to equal the area under t...

fast 11 Jahre vor | 1

Beantwortet
How to do boxplot for vectors with different sizes
You are passing in all of your data as one big long row vector (that is A1,...,A4 are all row vectors and you concatenate to a l...

fast 11 Jahre vor | 3

| akzeptiert

Beantwortet
Deleting rows in a matrix
If you want to delete the second row because B has the value 2 you can use this vector to index into A as such: A(B,:) = []...

fast 11 Jahre vor | 1

| akzeptiert

Beantwortet
How to make a infinite while loop that stops on users command.
Might be a bit more than you are looking for, but there is such a thing as a Key-Press Function (KeyPressFcn) for figures. This ...

fast 11 Jahre vor | 0

Beantwortet
How to save my cell array as a .csv file?
You can either use <http://www.mathworks.com/help/releases/R2015a/matlab/ref/xlswrite.html xlswrite> or lower level functionalit...

fast 11 Jahre vor | 0

| akzeptiert

Beantwortet
Access time series in Financial Toolbox
Hi Andrey. It is not that the series is not created, but rather that all of the datanames have the same length. This means that ...

fast 11 Jahre vor | 0

| akzeptiert

Beantwortet
Is it possible to solve Ax=b with mapreduce ?
You can do this if certain conditions hold fairly simply. In the case of a diagonally dominant matrix A you could write the Gaus...

fast 11 Jahre vor | 0

| akzeptiert

Beantwortet
Reproducible random number sequence with parfor
In the first instance you are not passing the options (nor could you) to the random number generating process, so this informati...

fast 11 Jahre vor | 0

| akzeptiert

Beantwortet
Changing color of the points in scatter3
How about: C = [0 .9 .75; 1 0 0; 0 0.4 0.4; 0.6 0.4 0]; scatter3(x,y,z,[],C,'filled','MarkerEdgeColor','k');

fast 11 Jahre vor | 0

| akzeptiert

Beantwortet
How to manually arrange the Legend strings
With 3 variable case, what does this mean? I'm going out on a whim and assuming you just want to change the order of the lines. ...

fast 11 Jahre vor | 1

Beantwortet
How to find the equation of a graph after getting Xdata and Ydata ?
The easiest way would be to use the polynomial fitting functions. For this you need to know what order polynomial to fit, so vi...

fast 11 Jahre vor | 1

Beantwortet
Error estimating VaR, riskmetrics function?
You try and use a variable T inside of this function, but you define T inside of an if statement. Therefore T only exists if ...

fast 11 Jahre vor | 0

Beantwortet
gpuArray slower on newer graphics card in double precision
The Titan X is a terrible card to use for double precision GPGPU as it was designed as a cheaper alternative to other Titans wit...

fast 11 Jahre vor | 2

| akzeptiert

Mehr laden