回答済み
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...

10年以上 前 | 0

回答済み
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...

10年以上 前 | 0

| 採用済み

回答済み
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...

10年以上 前 | 4

回答済み
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...

10年以上 前 | 0

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

10年以上 前 | 2

| 採用済み

回答済み
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,...

10年以上 前 | 0

| 採用済み

回答済み
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...

10年以上 前 | 3

| 採用済み

回答済み
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...

10年以上 前 | 0

回答済み
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...

10年以上 前 | 1

| 採用済み

回答済み
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...

10年以上 前 | 1

| 採用済み

回答済み
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...

10年以上 前 | 0

| 採用済み

回答済み
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...

10年以上 前 | 0

回答済み
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...

10年以上 前 | 0

回答済み
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...

10年以上 前 | 0

回答済み
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...

10年以上 前 | 0

| 採用済み

回答済み
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. ...

10年以上 前 | 2

| 採用済み

回答済み
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...

10年以上 前 | 0

回答済み
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...

10年以上 前 | 1

回答済み
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...

10年以上 前 | 3

| 採用済み

回答済み
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,:) = []...

10年以上 前 | 1

| 採用済み

回答済み
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 ...

10年以上 前 | 0

回答済み
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...

10年以上 前 | 0

| 採用済み

回答済み
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 ...

10年以上 前 | 0

| 採用済み

回答済み
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...

10年以上 前 | 0

| 採用済み

回答済み
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...

10年以上 前 | 0

| 採用済み

回答済み
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');

10年以上 前 | 0

| 採用済み

回答済み
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. ...

10年以上 前 | 1

回答済み
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...

10年以上 前 | 1

回答済み
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 ...

10年以上 前 | 0

回答済み
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...

10年以上 前 | 2

| 採用済み

さらに読み込む