Beantwortet
Obtaining EOF's from svds, orientation changes each time
Are you running the whole script again, or just the SVD part? Since you are generating random numbers using RANDN you will be p...

mehr als 13 Jahre vor | 0

Beantwortet
Can I change the SVM classifier output from 'true', 'false' to 0,1?
You can cast it to double, try this: x = [true false true true]; y = double(x); >> whos Name Size ...

mehr als 13 Jahre vor | 0

Beantwortet
use fsolve with boundaries
Unfortunately as you mentioned FSOLVE does not do constraints as of currently. As an alternative and with no guarantees as alwa...

mehr als 13 Jahre vor | 0

Beantwortet
How to tune PI controller for grid connected Inverter ?
As long as you have the transfer function or state space model for you plant, which I am guessing is the grid connected inverter...

mehr als 13 Jahre vor | 0

Beantwortet
Finding sigma from fit using Curve Toolbox gaussian?
If you look at the gaussian equation the curve fitting toolbox fits: http://www.mathworks.com/help/curvefit/gaussian.html ...

mehr als 13 Jahre vor | 1

Beantwortet
limited number of Assets in a universe, with constraints.
Are you using the Financial Toolbox? If you are then you can create a portfolio object and set bounds for each of the assets: ...

mehr als 13 Jahre vor | 0

Beantwortet
How can I fit a curve with a linear chirp function?
Set up an optimization problem. Use FMINSEARCH if you don't have Optim toolbox or curve fitting toolbox. Write an objective f...

mehr als 13 Jahre vor | 0

Beantwortet
How can i use a c code/program in Matlab
You can use MEX interface if you want to call C/C++ code from MATLAB: http://www.mathworks.com/help/matlab/matlab_external/c-...

mehr als 13 Jahre vor | 1

Beantwortet
Problems with calculating Second derivative and SG smoothing
Liberty, to answer the more general question of approximating derivatives, there are numbers of ways and the simplest as Thorste...

mehr als 13 Jahre vor | 0

Beantwortet
how to tune pid controller using genetic algorithm?
Is there a specific reason you want to use GA, and also you have given no information on what your target design specification i...

mehr als 13 Jahre vor | 0

Beantwortet
what is the major advantages of using ANN in text-to-speech system?
What is your alternative? The reason you would use one machine learning algorithm over the other can be several and based on you...

mehr als 13 Jahre vor | 0

Beantwortet
Cross validation for machine learning
What type of machine learning are you doing? Cross validation is fairly straightforward, all you need to do is use some random p...

mehr als 13 Jahre vor | 0

| akzeptiert

Beantwortet
How to use PDF to differentiate between signals?
This is a generic question. So I would start with first visualizing the data by plotting its histogram using the HIST function. ...

mehr als 13 Jahre vor | 0

Beantwortet
Warning: The display option can only plot 2D training data
You have high dimensional data (in |R^6) and obviously you can't visualize 6 dimensions, so don't force the 'showplot' to true a...

mehr als 13 Jahre vor | 0

Beantwortet
defining geometry in pdetool
Do you have more than one geometry? I am able to execute pdepoly with your data and it works fine. Could you paste the 'exact...

mehr als 13 Jahre vor | 0

Beantwortet
How to integrate the following function(using "int" command)
Why don't you set up two different integration problems: f1 = quad(@(x)x,0,2) f2 = quad(@(x)x^2,2,10) If you are concer...

mehr als 13 Jahre vor | 0

Beantwortet
fuzzy function approximation in matlab?
There is a whole toolbox that deals with building mamdani systems: http://www.mathworks.com/help/fuzzy/mamdani-fuzzy-inferenc...

mehr als 13 Jahre vor | 0

Beantwortet
lsqnonlin different results version r2011b vs r2012a
Look under R2012a, there have been changes to the levenberg-marquardt algorithm. Here is the link to the release notes. You migh...

mehr als 13 Jahre vor | 0

Beantwortet
non linear least squares problem using BFGS
Do you want to code this yourself or is it OK to use something that comes with MATLAB? For the FMINUNC function in the Optimi...

mehr als 13 Jahre vor | 0

| akzeptiert

Beantwortet
Raspberry Pi Support in XPC Toolbox
xPC is specifically for x86 architecture hardware, basically something that runs an intel processor. xPC target caters to rapid ...

mehr als 13 Jahre vor | 1

Beantwortet
How to count numbers considering all consecutives as one??
Data=[2, 3, 4, 7,8 9, 10, 20,25,27]; sum = 1; % The first set is counted. for i = 2:length(Data) if Data(...

mehr als 13 Jahre vor | 0

| akzeptiert

Beantwortet
solve return imaginary answer for a problem should have a real solution
What version of MATLAB are you using? On MATLAB R2012a: >> syms x >> f = (3*exp((4*x)/125) - 8*exp((2*x)/25) + 9)/(50*e...

mehr als 13 Jahre vor | 0

Beantwortet
Trying to create autocorrelated random series
I would start with creating an AR model whose error terms come from your f(n_samples) function. Estimate the model to create dat...

mehr als 13 Jahre vor | 0

Beantwortet
how to solve differential equations
You can start with ODE45, look through the following page for information on how to set up you system: http://www.mathworks.c...

mehr als 13 Jahre vor | 0

| akzeptiert

Beantwortet
Finding operating points w. R2012b
I believe the functions you mention are part of a product called Simulink Control Design (different from control systems toolbox...

mehr als 13 Jahre vor | 1

| akzeptiert

Beantwortet
Problems with contour function: it doesn't work even matlab's examples
Are you sure you are not using 'contours' instead of 'contour'. The error message you mentioned is part of 'contours.m' and not ...

mehr als 13 Jahre vor | 0

| akzeptiert

Beantwortet
vector with floating point values
The default display format is 'short' Since you already have data with 5 decimal place in your file, you can just read it and a...

mehr als 13 Jahre vor | 0

| akzeptiert

Beantwortet
How to set global options?
For a global variable to enter the scope of any given workspace you will have to call global var_name again. This will tell MATL...

mehr als 13 Jahre vor | 0

| akzeptiert

Beantwortet
Error using fminbnd function
Since you have created your objective function using symbolic variables, you need to convert them to function handles before you...

mehr als 13 Jahre vor | 0

| akzeptiert

Beantwortet
Histc function, bin edges error
I think you want to make sure that everything is a row vector or every thing is a column vector. x = 110:10:220; [y2,x...

mehr als 13 Jahre vor | 0

| akzeptiert

Mehr laden