Answered
Find NaN elements in a matrix
One way: X = ones(10,4); X(3,4) = NaN; indices = find(isnan(X) == 1); [I,J] = ind2sub(size(X),indices);

15 years ago | 6

Answered
Order of Coefficients in glmfit
Hi Ted, that is correct. If you input an NxP predictor matrix, you will get a beta vector that is P+1 in length, the extra term ...

15 years ago | 0

| accepted

Answered
I have no cftool
cftool is in the Curve Fitting Toolbox. Should you have that in your installation? You have not told us anything about your inst...

15 years ago | 0

Answered
"Transfer Function" order of numerator > order of denominator...?
If the expression cannot be easily factored by hand, then if you have the Symbolic Toolbox, you can try to use factor() sym...

15 years ago | 0

Answered
Regstats model equation
Hi Dave, you can use x2fx() to figure out what order your terms appear in.

15 years ago | 0

| accepted

Answered
Transfer function of a filter
I recommend that you use fdesign.lowpass d = fdesign.lowpass('Fp,Fst,Ap,Ast',290,300,0.5,20,2000); Hd = design(d,'butter...

15 years ago | 0

Answered
Transfer function of a filter
[h w]=freqz(b,a,[],Fs); where Fs is your sampling frequency.

15 years ago | 0

Answered
FFT and sin wave
If the signal is real-valued: t = 0:.001:1-0.001; Fs = 1e3; x = cos(2*pi*100*t)+randn(size(t)); xdft = fft(x); ...

15 years ago | 0

| accepted

Answered
avi audio plot
I'm going to assume that you mean the Signal Processing Blockset, since the DSP System Toolbox did not exist in R2010a. In R2...

15 years ago | 0

| accepted

Answered
avi audio plot
Hi Max, what version of MATLAB are you using? Depending on what version of MATLAB you are running and which products you have ac...

15 years ago | 0

Answered
example negation
Hi Tor, welcome to MATLAB. You should spend some time reading the Getting Started Guide. Particularly, the section: Programming ...

15 years ago | 0

| accepted

Answered
convert a matrix(double) into structure
Hi, Just in case... Do you have the DSP System Toolbox (Signal Processing Blockset)? You can use the Signal to Workspace bloc...

15 years ago | 0

Answered
using wavread function
Y(5) but is that really what you're asking? Or did I misunderstand your question?

15 years ago | 0

Answered
Warning: Unable to interpret TeX string ?
In this case, you can do DataFileName='c:\temp\data.txt'; figure title(DataFileName,'interpreter','none')

15 years ago | 0

| accepted

Answered
Jacobian function not found
If you enter >>ver Do you see an entry for the Symbolic Toolbox? If you enter: license('test','symbolic_toolbox...

15 years ago | 0

| accepted

Answered
What to change in code?
Steve, I have the same question proecsm asks, what's wrong with the answer Walter and I gave you in your earlier post? If you wa...

15 years ago | 0

Answered
Beating wave frequency detecting
Hi Kyle, the beat is an amplitude modulation at 1 Hz. You can visualize this by looking at the oscillation in the envelope, w...

15 years ago | 0

| accepted

Answered
Bairstow Method to find polynomial roots matlab code problem
I think you are most likely using the function incorrectly. Note from the help that the polynomial modeled by the function has a...

15 years ago | 1

| accepted

Answered
A dot in the place of a subscript indicates summation over that index (How to code this?)
That just means they're summing over the columns. You can do that with X = randn(10,10); sum(X,2) % note each ele...

15 years ago | 0

| accepted

Answered
time domain signal reconstruction from frequency domain
You're still using the polar form. All you need to do: x = randn(8,1); xdft = fft(x); x1 = ifft(xdft); % what you'...

15 years ago | 0

Answered
time domain signal reconstruction from frequency domain
It looks like you are implementing the overlap and add method. This method is an efficient way (if it is coded correctly) of imp...

15 years ago | 0

Answered
Kindly verify my code of DTMF decoding step
[H,F] = freqz(h,1,[],fs); plot(F,20*log10(abs(H))); grid on; xlabel('Hz'); ylabel('Magnitude-squared (dB)'); ...

15 years ago | 0

Answered
Kindly verify my code of DTMF decoding step
fvtool() is doing that under the hood and much more, I question why your book constructs a frequency axis in angular frequencies...

15 years ago | 0

Answered
Kindly verify my code of DTMF decoding step
Hi, Notice how Walter has indexed the for loop from 0, but was careful to index the vector h from 1. h=[]; L=50; fs=1...

15 years ago | 0

| accepted

Answered
I have not multialign fun.
Go down under MathWorks Store Products MATLAB and Simulink Products and select: *Purchase products now* The...

15 years ago | 0

Answered
Find Similarity transformation between two sets
Hi Promila, I see by your tag this is an image-processing question, you may find the System object in the Computer Vision Toolbo...

15 years ago | 0

| accepted

Answered
about polyval and polyfit
Hi XU, Keep in mind that polyfit() is fitting the best polynomial in the least-squares sense. You are trying to fit a polyno...

15 years ago | 0

Answered
Why i am gettiing warning
Hi, Moonman, as Walter correctly states, the values in your vector (waveform) exceed 1 and -1. You don't want the data values cl...

15 years ago | 0

Answered
Function Output selection help?
If you define the function to give [output1,output2], then you can call the function [~,output2] = func( ) and it will n...

15 years ago | 2

| accepted

Answered
I have not multialign fun.
Which release of MATLAB are you using? version 7.? multialign was introduced in R14sp2. You will have to update your MATLA...

15 years ago | 0

| accepted

Load more