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

más de 10 años hace | 0

| aceptada

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

más de 10 años hace | 2

| aceptada

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

casi 11 años hace | 0

| aceptada

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

casi 11 años hace | 0

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

casi 11 años hace | 0

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

casi 11 años hace | 1

| aceptada

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

casi 11 años hace | 1

| aceptada

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

casi 11 años hace | 0

| aceptada

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

casi 11 años hace | 0

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

casi 11 años hace | 0

| aceptada

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

casi 11 años hace | 2

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

casi 11 años hace | 1

| aceptada

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

casi 11 años hace | 1

| aceptada

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

casi 11 años hace | 9

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

casi 11 años hace | 0

| aceptada

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

casi 11 años hace | 0

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

casi 11 años hace | 0

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

casi 11 años hace | 1

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

casi 11 años hace | 3

| aceptada

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

casi 11 años hace | 0

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

casi 11 años hace | 0

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

casi 11 años hace | 0

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

casi 11 años hace | 0

| aceptada

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

casi 11 años hace | 0

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

casi 11 años hace | 1

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

casi 11 años hace | 0

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

casi 11 años hace | 4

| aceptada

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

casi 11 años hace | 0

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

casi 11 años hace | 0

| aceptada

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

casi 11 años hace | 0

Cargar más