Answered
How many ways to determine signal frequency?
If your data is sampled unevenly, Lomb's method can help: http://en.wikipedia.org/wiki/Least-squares_spectral_analysis

14 years ago | 1

Answered
Value w.r.t to time
in,out %starting values in = 1 1 3 2 5 3 7 4 9 5 ...

14 years ago | 0

| accepted

Answered
PCA princomp help please
In my opinion, this is not an appropriate use for PCA as you have described it. Principal components are used to reduce the dime...

14 years ago | 0

| accepted

Answered
Serial communication issues
It's possible that mttool (whatever that is) is adding a termination character to the communication packet that Matlab is not. ...

14 years ago | 0

Answered
FIND AREA SURFACE-PROBLEM IN MY CODE
the function is called dblquad() and requires a function to be passed to it like: f = matlabFunction(Mruxrv); A...

14 years ago | 1

| accepted

Answered
Running Matlab code from LabView
Labview has a script node where you can cut & paste your Matlab code into it and wire the inputs & outputs

14 years ago | 1

| accepted

Answered
how the coordinates of a point on the coordinate axes
doc ginput

14 years ago | 0

Answered
Change diagonal place
a= magic(3) a = 8 1 6 3 5 7 4 9 2 >> b=a; >> for i =2:si...

14 years ago | 0

| accepted

Answered
Question abut the Chi-square probability density function
no, degrees of freedom would be 1000. You are not calculating another statistic with the data ('using up a DOF') before calling ...

14 years ago | 0

Answered
Measuring the radius of a stationary circle
there is no change (fortunately for you). the line abc = [x y ones(length(x),1)] \ -(x.^2+y.^2); performs the same wheth...

14 years ago | 0

Answered
PSD and Pwelch
ummm...because your line calculating the cross power spectrum is commented out?

14 years ago | 0

Answered
uncertainty and curve fitting
this example shows how to bootstrap to get the standard error in the coefficients. You can adapt it to use lsqcurvefit or trans...

14 years ago | 0

Answered
*Problem Find area surface *
you are going to need: a =feval(symengine,'linalg::crossProduct',ru,rv)% .* is not cross product! b =feval(symengine,'n...

14 years ago | 0

| accepted

Answered
Size filtering and show the position of centroids on the image
from the documentation: I = imread('coins.png'); figure, imshow(I) bw = im2bw(I, graythresh(getimage)); figure...

14 years ago | 2

Answered
3D Tilted projection
if you have the image processing toolbox take a look at maketform()

14 years ago | 0

Answered
Help with fitting curve to data
Maybe one of these enveloping tools could help: http://www.mathworks.com/matlabcentral/fileexchange/?term=envelope however...

14 years ago | 0

Answered
OLS regression for multiplr Ys, Xs
This example regresses 3 curves 'at once'. I'm sure you can adapt it to your situation clc;clear;close all x = sort(ran...

14 years ago | 0

| accepted

Answered
Having problems understanding the command y( size(t) ) in a plot.
it just plots xmax vs y(size(t)) as a second trace on the plot, but with the same markings as [xmax/2,ymax]...Have to see more c...

14 years ago | 0

Answered
Symbolic Toolbox: integration
Apparently you have to do the substitution manually int(simple(cos(x^2)^2)) Warning: Explicit integral could not be found. U...

14 years ago | 0

| accepted

Answered
Feeding a vector to a cost function
function f = CostFunction(vector) % brackets not necessary x = vector(:,1); y = vector(:,2); f=4*(1-x).^2.*exp(-(x.^2)-(y...

14 years ago | 0

Answered
Undefined function or method 'int' for input arguments of type 'double'.
Int is only defined for symbolic variables, for numeric values see quadgk()

14 years ago | 0

Answered
How to divide and times in matlab
* % matrix multiply .* %scalar multiply / % matrix divide ./ % scalar divide ^ % exponentiation .^ % element-by-element exp...

14 years ago | 10

| accepted

Answered
Imposing interval on normrnd procedure.
imposing an interval on the result means it is no longer a normal distribution. With that caveat: d1(d1<0 | d1>10)=[];

14 years ago | 0

Answered
linsolve help
you don't need linsolve: M = I/H;

14 years ago | 0

Answered
Multiple Images to Report Generator
If you are creating your images in a loop try drawnow()

14 years ago | 0

Answered
plotting lines
y = 1:10; x=5*ones(size(y)); z=x+i*y; plot(real(z),imag(z))

14 years ago | 0

Answered
For loop - what about my min and max values?
Your x axis is the loop variable f, which can only take on one value at a time, thus the min and max are the same. To do what yo...

14 years ago | 0

| accepted

Answered
*Problem Akashi-Kaikyo bridge! in figure*
OK this is strange: if I do a= int(sqrt(1+(diff(2*10^(-4)*x^2-0.4*x+200,x)^2))) a = 1250*asinh(x/2500 - ...

14 years ago | 1

Answered
ind2sub output dimension
you need multiple assignments for that function. [r,c,p]=ind2sub(size(B),56) r = 2 c = ...

14 years ago | 1

Answered
Matrix Sum
just add the B matricies. For example: A = ones(3) + eye(3) + magic(3);

14 years ago | 0

Load more