Answered
error in ( imaqhwinfo ) command . any help ?
It seems maybe you do not have the Image Acquisition Toolbox installed in R2013b. If you enter >>ver Do you see the ...

12 years ago | 1

| accepted

Answered
Output argument "min_dist" (and maybe others) not assigned during call to
Without running your code, I see that you have min_dist assigned inside an if statement if std2(distance) < std2(final_arra...

12 years ago | 0

Answered
how to download Computer Vision System Toolbox
You need to contact MathWorks for a license for the toolbox. <https://www.mathworks.com/company/aboutus/contact_us/contact_sa...

12 years ago | 1

| accepted

Answered
How to calculate in v(k) - v(k-1) in M file
you can use the diff() function in MATLAB. That is v(k)-v(k-1) Also in R2013b if you have DSP System Toolbox, you can use the...

12 years ago | 0

Answered
how can i put the type de fir1 window as input in fuction?
function [c1 c9] =CalculateFilterCoeff(N,D,windtype1) if (mod(N,2) == 0) w1= feval(windtype1,N); w2= feval(wi...

12 years ago | 0

| accepted

Answered
Limiting vectors to a certain number of rows
It depends which 4 rows you want to choose out of each of the matrices. Do you always want the first 4 rows? If so, then in y...

12 years ago | 0

Answered
Correct way to evaluate the PSD
You can't compare your code to a Welch estimate. A Welch estimate does not simply use a window. A Welch estimate breaks up the d...

12 years ago | 0

Answered
How to use 'if' and 'else' function for equations that are different for a range of x
Use logical indexing: So for example: x = 0:0.01:1; f = zeros(length(x),1); f(x>=0 & x<=0.5) = x(x>=0 & x<=0.5).^2...

12 years ago | 0

Answered
Limiting the number of rows of a vector
What size is tC now? tC = randn(100,1); tC = tC(1:4,1); %or tC = tC(1:4); or idx = 20; tC = randn(100,1); ...

12 years ago | 0

Answered
plotting fundamental wave from a square wave
I get simulation errors trying to run your model, but if I look at the ScopesData2 struct array -- I replaced your scope block w...

12 years ago | 0

Answered
FFT IFFT (single and double spectrum)
What are you doing to the signal that you have to use the inverse Fourier transform? If you are trying to filter the signal, ...

12 years ago | 0

Answered
Am I corrupting my help browser somehow?
Hi Matt, this is known bug due to IE11. See the following: <http://www.mathworks.com/matlabcentral/answers/104025#answer_1172...

12 years ago | 3

| accepted

Answered
Is there a way to clear docsearch highlighting?
Glad that helped Matt, just to follow up there is an easier way that was actually release noted in 13a -- use the Esc key Fro...

12 years ago | 6

| accepted

Answered
i write this program in matlab M file but it is not working can nay body help me how i can change from real positive integer values to negative values because my answer is -5.02 and work space is not showing that
You should show us what kind of inputs you expect. I think the problem you have is that I think you are missing a * operator ...

12 years ago | 0

Answered
Wavelet cross coherence statistics
<www.ann-geophys.net/26/3819/2008/angeo-26-3819-2008.pdf> The linked paper derives it for two white noise processes. For some...

12 years ago | 0

| accepted

Answered
questions on assigning values from a vector
x = randn(10,1); for nn = 1:10 eval(['x' int2str(nn),' = x(nn);']); end But eval() is pretty ineffic...

12 years ago | 1

| accepted

Answered
Plot fft result on linear period scale?
If you really want to see the periods, then no you just have to plot by period. Fs = 1000; t = 0:1/Fs:1-1/Fs; x = cos...

12 years ago | 0

Answered
How do I download 32-bit MATLAB?
It the right corner next to Platform: there is a drop down menu. Windows 32-bit is an option there. I'm assuming that you are t...

12 years ago | 0

| accepted

Answered
returning output of nested function
You have to assign fval to one of the outputs of the top-level function. Or add fval as an output of the top-level function -...

12 years ago | 0

| accepted

Answered
code created 'stopSigns.mat'
What do you mean you cannot create and load cups.mat? Did you use the trainingImageLabeler app?

12 years ago | 0

| accepted

Answered
Negative Log Likelihood is a negative number?
I think your problem is that this statement is not true: "The fact is that likelihood can be in range 0 to 1. " There's noth...

12 years ago | 0

Answered
Calculate THD using fft
The Signal Processing Toolbox makes this easy with thd()

12 years ago | 0

Answered
Generation of random phase factors.
Maybe you want something like this: N = 4; % number you want MaxAngle = floor(360/N)-1; StartAng = randi([0 MaxAngle],1,...

12 years ago | 1

| accepted

Answered
Generation of random phase factors.
The way you have set it up, the phase angles are not random If you really want phase angles randomly chosen to cover the inte...

12 years ago | 0

Answered
How to find a fourier inverse transform using MATLAB Program
If you have the symbolic toolbox use ifourier() and multiply your function by the Heaviside function to give you an integration ...

12 years ago | 0

| accepted

Answered
Diceret Wavelet Transform Detail Function
Wavelet filters act like bandpass filters in particular way: level j --approximately (Fs/2^(j+1) Fs/2^j] How concentrated ...

12 years ago | 0

| accepted

Answered
how to calculate the spectrum fourier ?
What is the length of test? You do not give us that. You create your frequency vector based on: N=10000; But is that th...

12 years ago | 0

Answered
Why in the heck does this code work?
Just look at it one bit at a time. The first time, you take an array of zeros and then set every other row and every other colum...

12 years ago | 1

| accepted

Answered
How to avoid log(0) within an area plot?
Instead of plotting the y-axis on a log scale, you can first take the log10() or your data and then set the -Inf to 0. ...

12 years ago | 0

Answered
I can't seem to get matlab scalogram program to run without the following errors...
I agree with cyclist -- you should definitely always format your code. There error you post has nothing to do with the wavel...

12 years ago | 0

Load more