Answered
using a function that is similar to polyfit but with two linear terms
Locks, it seems like you are interested in multiple linear regression. If you have the stats toolbox you can use the <http://www...

13 years ago | 0

| accepted

Answered
How does MATLAB software (ode solvers) solve complex differential equations?
http://www.mathworks.com/support/solutions/en/data/1-15I1T/index.html The short answer is that it will treat it as it is: sum...

13 years ago | 0

Answered
Loop for function variable
I am going to refer you back to the article you mentioned because the simple answer to your question is: don't do it. http://...

13 years ago | 1

| accepted

Answered
additive white gaussian in matlab
There are a lot of functions you can use to do that, depends on what toolbox you have and how you want to specify the nature of ...

13 years ago | 0

Answered
How to use Principal Component Analysis to reduce feature vector size?
Use PCARES function to do that: [residuals,reconstructed] = pcares(X,ndim) The 'reconstructed' will have the reduced dim...

13 years ago | 0

Answered
How to get eigen vectors from the function princomp?
From: http://www.mathworks.com/help/stats/princomp.html [COEFF,SCORE,latent] = princomp(X) The 'COEFF' are the eigen ...

13 years ago | 0

Answered
How to fit the data using Weibull curve and find the slope (gradient)?
You can do this in a variety of ways depending on what toolbox you have. This should help you get started: http://www.mathwor...

13 years ago | 0

Answered
How to plot the line of best fit?
What do you mean when you say it is not working? Do you get an error? D = [0 4 8 12 16 20 24 28 32]; F = [0 .23 .36 .4...

13 years ago | 20

| accepted

Answered
Problem with Argument and fsolve
Satendra, arg is not a function in MATLAB but you the function 'angle' computes the argument of the complex number which I belie...

13 years ago | 0

Answered
distortion of Y axis
PLOTYY lets you have 2 Y axes: http://www.mathworks.com/help/matlab/ref/plotyy.html

13 years ago | 0

Answered
Numerical integration with array limits
Christopher, I can't run the loop as well. But phi([1,2,3,4]) will certainly not work because the vector is being passed to quad...

13 years ago | 0

| accepted

Answered
Finding coefficients and constant for multivariable linear equation.
Shelley, to find a non-trivial solution you have to find the null space of your data matrix. You data matrix with a column of...

13 years ago | 0

| accepted

Answered
Understanding the parameters in PRINCOMP
What you explain is correct. SCORES are just projection of your data onto the principal components (the new basis/axis that maxi...

13 years ago | 2

| accepted

Answered
bode plot of 1/(s^0.5+1) or any other fractional order transfer function
I don't think this is possible with what ships with MATLAB (i may be wrong). But I found a FEX function that does what you ask:...

13 years ago | 1

Answered
solving linear equations using matrices in MATLAB
What you see on the command line may not be all of the data to the last precision. Try >> format longg And then run ...

13 years ago | 1

| accepted

Answered
what does eigenvalues expres in the covariance matrix?
Essentially what you are describing are the principal components of your data. <https://en.wikipedia.org/wiki/Principal_compo...

13 years ago | 0

Answered
modelling an ANN with lots of Output Variabels
The documentation page has lot of examples on how to go about doing the same. Assuming you have the Neural Network Toolbox ht...

13 years ago | 0

Answered
How to make/create a fitness/objective function for GA problem
I would start with the documentation to see how to write your own objective/fitness function in MATLAB. This is however a step t...

13 years ago | 0

Answered
which is more accurate/good/feasible 'optimtool' or a same function involked in command window?
You should get the exact same result if you call it in command line or through the GUI, they use the same functions. There could...

13 years ago | 0

| accepted

Answered
The error beep: Why is Mathworks ignoring an obvious, easily fixed issue
Hi Stefan, if you are unhappy about a feature or have suggestions on enhancements, MathWorks is always eager to hear about them....

13 years ago | 0

Answered
Are my variables sliced?
Sam, you've probably already went through this page, but I will paste it here anyway: http://www.mathworks.com/help/coder/ug/...

13 years ago | 1

| accepted

Answered
What is the difference between polyfit and curve fitting
I would encourage you to look at the documentation page of the functions you are you using to get a better idea of what each fun...

13 years ago | 0

| accepted

Answered
Why are sine and cosine values inaccurate?
pi itself is an approximation. I would point you to this solutions page for some more insight to this behavior: http://www.m...

13 years ago | 1

Answered
How can I simulate a NARX neural network after being trained and tested?
If your trained network object is 'net' then you can say net(A) You can use SIM and it has the following input arguments...

13 years ago | 0

Answered
Gaussian Elimination or LU
determinant of A is zero, there can be infinite solutions. One of the infinitely many solutions is the following: x = pi...

13 years ago | 0

Answered
Why does comparing identical doubles result in a logical 0?
If you want to see how they are different, try: >> format hex >> v(2),2000 change display format back to default ...

13 years ago | 0

Answered
Script for curve fitting
'Generate code' usually returns a function and not a scrip. Is it possible that you are not calling the function with the right ...

13 years ago | 0

Answered
Is there a way to query toolbox usage?
I can't think of something that does this automatically, but I can suggest the following. license('inuse') Will give you...

13 years ago | 0

Answered
Is there framework available for LQG controller in simulink or matlab ?
It is indeed. Its available in the Control Systems Toolbox: http://www.mathworks.com/help/control/ref/lqg.html

13 years ago | 0

Answered
How to download the "xcorr" inbuilt function
Its fairly easy to implement, or you can definitely find something on FEX that will work for you: http://www.mathworks.com/ma...

13 years ago | 0

Load more