Respondida
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...

más de 10 años hace | 0

Respondida
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...

más de 10 años hace | 0

| aceptada

Respondida
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...

más de 10 años hace | 4

Respondida
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...

más de 10 años hace | 0

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

más de 10 años hace | 2

| aceptada

Respondida
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,...

más de 10 años hace | 0

| aceptada

Respondida
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...

más de 10 años hace | 3

| aceptada

Respondida
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...

más de 10 años hace | 0

Respondida
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...

más de 10 años hace | 1

| aceptada

Respondida
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...

más de 10 años hace | 1

| aceptada

Respondida
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...

más de 10 años hace | 0

| aceptada

Respondida
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...

más de 10 años hace | 0

Respondida
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...

más de 10 años hace | 0

Respondida
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...

más de 10 años hace | 0

Respondida
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...

más de 10 años hace | 0

| aceptada

Respondida
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. ...

más de 10 años hace | 2

| aceptada

Respondida
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...

más de 10 años hace | 0

Respondida
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...

más de 10 años hace | 1

Respondida
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...

más de 10 años hace | 3

| aceptada

Respondida
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,:) = []...

más de 10 años hace | 1

| aceptada

Respondida
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 ...

más de 10 años hace | 0

Respondida
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...

más de 10 años hace | 0

| aceptada

Respondida
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 ...

más de 10 años hace | 0

| aceptada

Respondida
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...

más de 10 años hace | 0

| aceptada

Respondida
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...

más de 10 años hace | 0

| aceptada

Respondida
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');

más de 10 años hace | 0

| aceptada

Respondida
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. ...

más de 10 años hace | 1

Respondida
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...

más de 10 años hace | 1

Respondida
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 ...

más de 10 años hace | 0

Respondida
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...

más de 10 años hace | 2

| aceptada

Cargar más