Risposto
Bar series plot, transparent colors on the bars
Try the solution I have pasted in another post ... just last night. I have made a function which creates the patches necessary t...

quasi 11 anni fa | 0

| accettato

Risposto
Create a row matrix with different step size
Just utilize the concatenation operator *[ ]* x = [1:4 100:50:200];

quasi 11 anni fa | 2

| accettato

Risposto
Fit a constant only linear regression model using 'fitlm'
If you wanted to fit this using fitlm you could do the following: fit1 = fitlm(ones(size(y)),y,'y~1');

quasi 11 anni fa | 0

| accettato

Risposto
Minimization problem involving matrix norm
The 2-norm by itself is a non-linear operation, so you will want to use *fmincon*. Really any matrix norm will be non-linear, so...

quasi 11 anni fa | 0

Risposto
In an assignment A(I) = B, the number of elements in B and I must be the same.
It appears in this code that all of the values on the RHS are scalars, so this should not be an issue. That being said somethin...

quasi 11 anni fa | 0

Risposto
Matlab : put transparancy on a bar plot
A) The bar series will only have a 0x0 GraphicsPlaceholder as a child (so no properties for the bars Children) B) The barseries...

quasi 11 anni fa | 1

| accettato

Risposto
How to plot a normalised cumulative histogram
If using 2014b or higher you can use the histogram command: histogram(CharPoly,'Normalization','cdf') If prior to 2014b ...

quasi 11 anni fa | 1

| accettato

Risposto
How to make radio button user interactive?
You just need to set the radiobutton's callback function: <uicontrol%20http://www.mathworks.com/help/matlab/ref/uicontrol.htm...

quasi 11 anni fa | 0

| accettato

Risposto
why getting infeasible solutions using fmincon? (Update)
fmincon is a gradient based solver and as it is a discretized version of the optimization problem these are approximated by the ...

quasi 11 anni fa | 0

Risposto
nonlinear least squares function
If you call your objective function with the variable mas are there any NaNs or Infs in it? any(isnan(myfun(mas))) || any(i...

quasi 11 anni fa | 0

| accettato

Risposto
How to set axis scaling?
In versions 2014b or later you can use the properties: XLimSpec, YLimSpec and ZLimSpec by setting these properties to 'tig...

quasi 11 anni fa | 2

Risposto
Why getting different solutions by suppying same constraint to fmincon in two similar way (linear and nonlinear))?
One possibility that I could see here is in the difference between how fmincon would treat the derivatives of linear and non-lin...

quasi 11 anni fa | 1

| accettato

Risposto
How to read a numeric column from a csv file?
csvread only reads in numeric data, so if you do have non-numeric data you can use xlsread on the csv file. There are other lowe...

quasi 11 anni fa | 1

| accettato

Risposto
is it possible to define global title on figures?
Yes this is possible by creating a new axes which takes up much of the figure. Then a title for this axes. Turning the axes Vis...

quasi 11 anni fa | 9

Risposto
Dummies on dates MATLAB
We can do this with the ismember(A,B) function, which returns a logical vector the length of A indicating whether the correspond...

quasi 11 anni fa | 0

| accettato

Risposto
ARMA-GARCH model and dummy variables MATLAB
The second input to the estimate function should be the "univariate time series", so we cannot pass a matrix as this argument. ...

quasi 11 anni fa | 0

Risposto
Why i dont see my image after pca analysis?
So the fact that you have an indexing: II=I2(:,:,1); implies that II is a m-by-n-by-1 array (3-dimensional array). The _...

quasi 11 anni fa | 0

Risposto
Problems with a Newton-Raphson code
You have a line: while abs(f(p)) > 1e-6 which is an indexing into the variable *f* , with the indexing variable *p*. But...

quasi 11 anni fa | 1

Risposto
Use Kernel Density Estimation to get the probability of a new observation
The pdf integrates to be 1, so I am not sure why you think it needs to be normalized? Furthermore, this gives you a continuous d...

quasi 11 anni fa | 3

| accettato

Risposto
Declare a plotted Line in an image as a variable and not a Matlab graphics chart line?
What kind of processing do you need to do? You can still access the information from the returned object: YL = plot([1 size...

quasi 11 anni fa | 0

Risposto
how can i get the minimum total from the three total since it only display the final value of the total.
You are changing your looping variable inside the loop. I think you want: a = [4;1;9]; b = [3;1;4;6;7]; c = zeros(3...

quasi 11 anni fa | 0

Risposto
How can I fix the Error in Summation: (Attempted to access f(2); index out of bounds because numel (f)=1).
You only ever assign a scalar value to f, and continuously overwrite the previous version which was there. Not sure what your in...

quasi 11 anni fa | 0

Risposto
MATLAB : user choose the limits of the xaxis
The following code creates a plot of the input data. It has 2 text boxes which are editable and upon pushing the 'Update' button...

quasi 11 anni fa | 0

| accettato

Risposto
How to constrain a vector when using fmincon?
Please format your question so it is easier to read. Is K one of the design variables for the fmincon call? If so, then you j...

quasi 11 anni fa | 0

Risposto
Variable names in loop?
Sure there are multiple ways to do this. 1. Assuming all of the files are in the same directory (I assume the working) we can...

quasi 11 anni fa | 1

Risposto
rand matrix for FM
How about you create a random matrix and then subtract from each element the sum(matrix(:))/numel(matrix). n = 4; A = ra...

quasi 11 anni fa | 0

Risposto
How to use fmincon to optimize two control vectors of a function?
In the optimization routines in MATLAB the objective function needs to take all of it's design variables as one input. So in yo...

quasi 11 anni fa | 4

| accettato

Risposto
Improve calculation time with plots
I would suggest taking a look at the drawnow command. docsearch Animating Line Graphs This example should help you. (Not...

quasi 11 anni fa | 0

Risposto
How to avoid going through unnecessary functions when tracing fmincon in Matlab to findout it call the right objective and constriant functions.
Sorry no one got to this one yet. The _which_ command will tell you the location of the file which MATLAB finds first on its se...

quasi 11 anni fa | 0

| accettato

Risposto
MAtlab certification in Pakistan
These certifications are only offered at a limited number of locations. The only current offerings for the certification are li...

quasi 11 anni fa | 0

Carica altro