Classifiers. How can i draw 3-D plot ?
I have a webinar entitled An Introduction to Classification with MATLAB. The code is available for download from the file exc...

12 years ago | 0

How to merge two similar functions into a same function? any mathematical modeling method or tool box?
Hi Qian Implicitly, you seem to be suggesting that there is a single model that describes both of these sets of data. Rather...

12 years ago | 0

Classifiers. How can i draw 3-D plot ?
The SVM implementation in Bioinformatics Toolbox is limited to binary classification. The Naive Bayes classifier in Statistic...

12 years ago | 1

How to obtain Std of Coefficients from Curve Fitting
Hi George Conveniently, 12a also has a function call NonLinearModel %% Generate some data X = 2* pi*rand(100,1); ...

12 years ago | 0

| accepted

How to obtain Std of Coefficients from Curve Fitting
The 12a release of Statistics Toolbox has some very nice new capabilities for regression analysis. %% Generate some data ...

12 years ago | 1

how do I determine the probability distribution of data?
Sorry if this sounds like a silly question: Is there an absolute requirement that you describe your data using a parametric d...

12 years ago | 0

How to get regression statistics for several run with different data sets?
Hey there The following code assumes that you have the 12a release of Statistics Toolbox. (In other words, I am using the ne...

12 years ago | 0

Need help in getting a polynomial to go through 0,0
I'm attaching code that illustrates how to solve the problem using either Statistics Toolbox or base MATLAB. The Statistic ...

12 years ago | 0

Matlab 2012a
Statistics Toolbox includes a lot of impressive new functionality for regression analysis. I'm attach code for a blog post th...

12 years ago | 0

Constrained Polynomial Regression
The 12a release of Statistics Toolbox has some very nice new features for regression analysis. There is a new function named Li...

12 years ago | 0

Constrained Polynomial Regression
Curve Fitting Toolbox allows you to specify constraints for individual regression coefficients. With this said and done, coul...

12 years ago | 1

fitting curve to two points
Here's the rub... When you fit a second order Fourier series, you're estimating values for six different regression coefficie...

12 years ago | 0

| accepted

fitting curve to two points
From the looks of things, your daily load curve is a particular example of a second order Fourier series. If you have Curve F...

12 years ago | 0

Principal Component Analysis
The Statistics Toolbox product page has a good demo titled "Partial Least Squares Regression and Principal Components Regression...

12 years ago | 0

nonlinear curve-fitting: weight vector
nlinfit in Statistics Toolbox # Uses Levenberg-Marquardt under the hood # Allows you to input a vector of weights See <ht...

12 years ago | 0

| accepted

data management for large datasets
Have you looked into the dataset array that ships with Statistics Toolbox? The dataset array is a special data type that can ...

12 years ago | 1

| accepted

Regression
Try the following X = linspace(1, 2*pi, 50); X = X'; Y = sin(X) + randn(50,1); foo = fit(X,Y, 'sin1'); ...

12 years ago | 1

Multiple Regression under constraints
Lets start with the regression side of the problem: Given that you want to place constraints on your coefficients, you're goi...

12 years ago | 1

Robust orthogonal or total least squares linear regression
Unfortunately, Statistics Toolbox doesn't currently offer a robust version of PCA. Your best option would probably be to us...

12 years ago | 0

Histogram then a curve fitting to compare with normal
You might want to consult the following example: http://www.mathworks.com/products/statistics/demos.html?file=/products/demos...

12 years ago | 0

Curve fitting - periodic function
Here's a pretty basic example X = linspace(0, 2*pi, 100); X = X'; Y = sin(X) + randn(100,1); foo = fit(X,Y, 's...

12 years ago | 2

| accepted

Poisson random number generator
Mark Steyvers has written a nice book titled "Computational Statistics with MATLAB" which can be downloaded from http://psiex...

12 years ago | 0

Solved

Given a and b, return the sum a+b in c.

12 years ago

Solved

Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

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

12 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:...

12 years ago

Constraining a fitted curve
I'd strongly recommend that you look at a file exchange submission by John D'Errico titled "Shape Modeling Language" http://w...

12 years ago | 0

| accepted

Curve fitting with fails misarebly
Couple comments: Curve Fitting Toolbox includes a lot of nice code that will automatically choose "good" starting points for ...

12 years ago | 1