Answered
Create a mesh with four variables
doc ndgrid http://www.mathworks.com/help/techdoc/ref/ndgrid.html

14 years ago | 0

| accepted

Answered
sprintf format specifiers won't print newline
% and \ are escape characters so you need to treat them special, try sprintf('%%*<>\\n'); You can find this information ...

14 years ago | 0

Answered
finding specific elements in a cell vector
uniqueA = unique(A); if isequal(uniqueA,{'1W'}) ... elseif isequal(uniqueA,{'1W';'2W'}) ... end

14 years ago | 2

Answered
FFT example on MATLAB help
This is basically done to preserve the power at each frequency sample point. The original series has L samples in it. At each fr...

14 years ago | 0

Answered
Question about latex synthax
add {} around y1(x) and y2(x), like this $$I(f)=\int_a^b \int_ {y1(x)}^{y2(x)} f(x,y) \dy \dx$$

14 years ago | 0

| accepted

Answered
Solving system of nonlinear equations
Do you have Optimization Toolbox? If so, you can try fsolve http://www.mathworks.com/help/toolbox/optim/ug/fsolve.html

14 years ago | 0

Answered
Fix the seed in Matlab R2011b | Why RandStream failed?
Do you have to set it to global stream? If not, why not generate those random numbers in form of rand(s,1,n) so you by p...

14 years ago | 0

Answered
Indexing Tips: extend a time series to be cyclic
Not sure if it solves your question exactly but here is something that could be helpful. Say your data is 5 samples long N ...

14 years ago | 0

Answered
How can I change contents of a string?
Is your newdata also a cell? If so, you need to access it's content via {}. In your loop definition, you probably mean length...

14 years ago | 0

Answered
Solving 3 unkowns with 3 knowns
What you have are not linear equations so they cannot be solved in Ax=b form. You need to use a solver for nonlinear equations. ...

14 years ago | 0

Answered
A simple question about undefined function error
You need to make sure that the function |ruzgaruretimi| are on your path. It should also expect double inputs. If it does, try t...

14 years ago | 0

Answered
Objective Orientated Programming in Matlab
Are you referring to object oriented programming? The user's guide in MATLAB documentation can get you started. You can find tha...

14 years ago | 0

Answered
How can I perform a linear regression analysis with the equation y=a(x-b)?
This is essentially the same as fitting y=ax+b since it can be written as y=ax+b=a(x-(-b/a)). So all you need to do is to fit y=...

14 years ago | 0

Answered
Time delay - Cross Correlation Situation
The order basically determines which one is the reference, but you need to set your lag right. The delay between the two is basi...

14 years ago | 0

| accepted

Answered
Drawing a sphere inside a sphere?
You can add alpha(0.5) after you plot the first one.

14 years ago | 2

| accepted

Answered
How do I get the indices of non-empty cells from a cellstr array?
Here is an example x = {1,[]} find(~cellfun(@isempty,x))

14 years ago | 3

| accepted

Answered
how to do digital filter on this EEG data
Is your sample_rate 50K? If so, your filter is huge at the order of 1 million. This is way too long. |fir1| uses window metho...

14 years ago | 0

| accepted

Answered
Publishing a class definition to html
If you don't care whether the class can run or not, I think you could use the markup for highlighted code sample http://www.m...

14 years ago | 0

| accepted

Answered
How to use ' bar ' plot function to plot bars with oblique line in them?
This may be helpful to you http://www.mathworks.com/matlabcentral/fileexchange/1736-hatched-fill-patterns

14 years ago | 1

Answered
Strange If- else statement issue
There are several issues. # k(1,t) < 10 returns a vector, not a scalar # Similarly, Ca(t) is a vector. # It looks like you...

14 years ago | 0

| accepted

Answered
modelling a monostatic radar
Hi Keketso, For question 1, the solution I provided is independent of the approaching direction of the input signal, if that'...

14 years ago | 0

Answered
MATLAB code to distribute commercially
Do you have MATLAB Compiler? That could be one way to package your software as a stand alone application.

14 years ago | 1

Answered
Elliptical filter magnitude response with order 2,3,4
see the answer in your butterworth filter question and read the following documentation help ellip

14 years ago | 0

Answered
Magnitude response of Chebsev filter for Type1 and Type2
see my answer in the other post and read the following documentation doc cheby1 doc cheby2

14 years ago | 0

Answered
Butterworth filter frequency response with 2nd order, 3rd order and 4th order figures
Just as an example [b1,a1] = butter(2,0.5); [b2,a2] = butter(3,0.5); fvtool(b1,a1,b2,a2)

14 years ago | 1

Answered
Convert cell to double
Your C already contains numbers, so those cells are invalid for str2double C(~cellfun(@isnumeric,C))={nan}

14 years ago | 0

Answered
Find pulse width and cycle & .mfile read/plot
The functions pulseperiod and dutycycle assumes that the signal is bi-level and they are statistical measurement. Therefore, wha...

14 years ago | 0

Answered
Does Matlab use a QR or LU decomposition when solving a matrix equation?
There are actually some information regarding you question in the documentation http://www.mathworks.com/help/techdoc/ref/mrd...

14 years ago | 1

| accepted

Answered
up sampling a matrix with non-zero elements.
You can use |kron| A = [1 2;3 4]; B = kron(A,ones(3))

14 years ago | 1

Answered
Find row in matrix.
[tf, index]=ismember(A,B,'rows');

14 years ago | 3

| accepted

Load more