Answered
Example of using crossval function with ar or arx-function in matlab?
If you have programmed your own AR/ARX estimator then great, if you haven't then both Econometrics toolbox as well as System Id ...

13 years ago | 0

| accepted

Answered
How to hold colorbar in contourf plot
I haven't tried this entirely, but instead of cla and replotting try figure(1) contourf(1,b,c)' h = colorbar('YScale','...

13 years ago | 1

| accepted

Answered
fitting vector valued functions
From your questions I appears that you want to perform Multivariate Regression where the response is m dimensional Y = F(X) ...

13 years ago | 0

Answered
Optimization algorithm into MATLAB
It looks like you are trying to fit an ODE. I suggest going through the following article: http://www.mathworks.com/help/optim/...

13 years ago | 1

Answered
xlsread on Mac not working
XLSREAD is designed to read Excel files only on windows and will not work on Macs. By default XLSREAD will revert to CSVREAD on ...

13 years ago | 0

Answered
Delete rows in a matrix that contain ONLY a negative number
If you don't want to use loops and keep it simple in a single line, I suggest logical indexing as follows: A(all(A==-999,2),:...

13 years ago | 2

Answered
What Estimator should I use Least Squares, Least Extended Square ?
Extended Least Squares allows for a variance model. Do you have a reason to specify a variance model? then you can use the ELS m...

13 years ago | 0

| accepted

Answered
findpeaks: Error using findpeaks (line 43) Input arguments must be 'double'.
what is: >> class data_no make sure it is double

13 years ago | 1

| accepted

Answered
Simulink and gui and Standalone executabel?
Most command line functionality and custom GUIs are supported, all shipped GUIs are not supported for compilation and distributi...

13 years ago | 0

Answered
delete the row where is a NaN
Is there a requirement to be using cells? if no you can do this quickly without loops, if yes, you can always convert them into ...

13 years ago | 0

Answered
Script as Objective Function in lsqcurvefit (Optimization tool)
It appears that "J1615_onezone_optimization_Dymola_function" should itself represent the curve you are trying to fit from your f...

13 years ago | 1

Answered
How can I extract and store the spline fitting curve function on my data?
If you created the spline as follows pp = spline(x,y); >> pp.coefs will give you the coefficients for each of the piece wise ...

13 years ago | 0

Answered
How can I obtain error in parameters estimated in optimization toolboox (lsqcurvefit) ?
It appears that you are looking for confidence intervals to evaluate how good your fit is. Unfortunately LSQCURVEFIT or other fu...

13 years ago | 1

| accepted

Answered
Finding plant model in SISO system. Need help
If you already have the transfer functions for K and G then you can use the CONNECT and FEEDBACK function to get T without havin...

13 years ago | 1

Answered
How to CODE for a NN controller in MATLAB command window?
Here is a good example for model reference control: http://www.mathworks.com/help/nnet/ug/model-reference-control.html If yo...

13 years ago | 0

Answered
I need help for Genetic Algorithm to tune value of the controller parameters and gains
Robotics Toolbox seems to be a 3rd party toolbox not shipped/purchased from MathWorks. While the controller is simulated using t...

13 years ago | 0

| accepted

Answered
Levenberg-Marquardt in LSQNONLIN vs. FSOLVE
LSQNONLIN and FSOLVE solve different type of optimization problems. While LSQNONLIN expects that f(x) is vector valued, it also...

13 years ago | 0

Answered
Error using 'mvregress' function
From the error it appears that the X or Y or both may be cell instead of matrices. You can verify that by using class as Walter ...

13 years ago | 0

Answered
Undefined function 'filter' for input arguments of type 'arima'
The filter method for the arima class (along with garch egarch and gjr) was introduced in MATLAB 2012b econometric toolbox relea...

13 years ago | 0

Answered
Changing the confidence Interval
You can always save the fitted model from CFTOOL : Fit > Save To Workspace and fun the following command: confint(fittedmodel,...

13 years ago | 1

Solved


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

14 years ago

Solved


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

14 years ago

Solved


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

14 years ago

Solved


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

14 years ago