Réponse apportée
y(t)=A1cos(200*pi*t)+A2sin(200*pi*t)
Hi, Welcome to MATLAB! May I suggest you spend some time reading the Getting Started Guide or some of the excellent online tutor...

plus de 13 ans il y a | 0

Réponse apportée
Fourier analysis of waveforms and clipping wave, HELP PLEASE!!!
I'm not sure how you are using the term "period" here. If you are talking about only the first 1 of the fundamental frequency wh...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
How to randomly select variable from the range of numbers ?
idx = randperm(length(a)); idx = idx(1:5); a(idx) or if you have the newest version of MATLAB idx = randp...

plus de 13 ans il y a | 0

Réponse apportée
How I can change the more than one pixel values in gray scale image ?
The function round(), rounds to the nearest integer. X = rand(480,640); Xnew = round(X);

plus de 13 ans il y a | 0

Réponse apportée
Fourier analysis of waveforms and clipping wave, HELP PLEASE!!!
You clearly have a strong oscillation at 1 MHz in the data and strong harmonics of that fundamental. Do you have the Signal Proc...

plus de 13 ans il y a | 0

Réponse apportée
PLotting noisy signal matlab
You can subset your vector, for example: t = 0:.01:1-0.01; x = cos(2*pi*10*t); plot(t,x) Now the spacing in ...

plus de 13 ans il y a | 0

Réponse apportée
PLotting noisy signal matlab
What do you mean suppose t was a vector? t = 0:pi/100:40; x = cos(pi/10*t)+0.5*randn(size(t)); plot(t,x) t is a vect...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
errors appear when doing FFT on data imported from text file
Your sampling interval is 1 month, so your DFT bins will be in cycles/month. So you can just set Fs = 1, but then keep in mind t...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
errors appear when doing FFT on data imported from text file
What error message does it produce? What is the value of Fs? Nothing in the code you've shown us gives us the value of Fs. ...

plus de 13 ans il y a | 0

Réponse apportée
Fast conversion of 2 matrices to 1 complex matrix
A(1,:,:) = randn(100); A(2,:,:) = randn(100); B = squeeze(A(1,:,:)+1i*A(2,:,:)); Seems pretty fast to me, is your mat...

plus de 13 ans il y a | 0

Réponse apportée
PLotting matlab noisy signal
Do you know the sampling interval for the time signal? Suppose the sampling interval is pi/100. t = 0:pi/100:40; x = cos(p...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
please help correct fft command used to compute equation
"With the use of the fft command..." where have you used the fft() command? Fs = 1000; t = 0:0.001:0.1-0.001; x = 10*...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
I am not sure what the following error message indicates or how to resolve it: 'Error using double Conversion to double from cell is not possible.'
It means that mat2 is a cell array and you cannot immediately cast it to a double. Depending on the contents of mat2, perhaps yo...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
use modified covariance (MC) method to estimate frquency?
I'm not familiar with this algorithm for frequency estimation. When I use the term "modified covariance method", it's in the con...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
simple question about one of "Img()" commands
It says create a vector from A to B, where A is the maximum of 1 and yy-WIN and B is the minimum of Y and yy+WIN. That vector is...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
How can I calculate the magnitude of n-dimensional vector by Matlab's commands?
I'll assume by "magnitude", you mean the norm. You can just do norm(x) but there are different norms with different res...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
How can i compute standar noise deviation from SNR?
Hi Mike, in general this will be very hard since you don't know the signal power. However, depending on what model you can assum...

plus de 13 ans il y a | 0

Réponse apportée
how can I apply 2D dwt to the individual yuv plane
Do you have the Wavelet Toolbox? If so, see wcompress.m

plus de 13 ans il y a | 0

Réponse apportée
can i design a dual band bandpass filter using fda tool in matlab
It sounds like you want a bandstop filter if you want to have two passbands with a stopband in between. Choose "Bandstop" from t...

plus de 13 ans il y a | 0

Réponse apportée
Need Help to Homework
My hint would be this: 1.) Think about what equation every point on the unit circle satisfies in terms of cos(theta) and sin(...

plus de 13 ans il y a | 0

Réponse apportée
update the filed values in a structure
You can access the field with mystruct.Area So why can't you just update the field mystruct = struct('Area',[34 36 4...

plus de 13 ans il y a | 0

Réponse apportée
I need DyWT2 and iDyWT Function For Images In Matlab ? pls help me !!!
The Wavelet Toolbox has two version of the nondecimated 2-D wavelet transform, swt2.m and ndwt2.m There are also the correspond...

plus de 13 ans il y a | 0

Réponse apportée
how to compare two time series of same length using sample entropy?
If you want to compare the dependence of two time series using an information theoretic approach, a common thing to do is use mu...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
How can I use the values in a vector to use/represent the indices of another vector or matrix?
Like this: vec_indices = [10 14 78 2 67 100]; vec_long = zeros(100,1); vec_long(vec_indices) = 1;

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Iwant to extract a 512 -sample segment of audio and use a hanning window on thesegment. Iwouldalso like to hop by 256 samples so tha each subsequent frameoverlaps the previous frameby 256 samples andstore thedft of each new frame. How would do this?
You can use spectrogram to do this quite easily. Otherwise you can use buffer() to divide your signal up into columns of a matri...

plus de 13 ans il y a | 0

Réponse apportée
Extracting the fundamental frequency of a .wav file
Here is an example you can modify with your input y For even length y: Fs = 1000; t = 0:0.001:1-0.001; y = c...

plus de 13 ans il y a | 2

| A accepté

Réponse apportée
DyWT2 Function For Images In Matlab
Do you mean dwt2? The Wavelet Toolbox has functions for the decimated 2-D discrete wavelet transform, dwt2, and wavedec2. For dw...

plus de 13 ans il y a | 0

Réponse apportée
Filtfilt function in matlab 2011b not working the same as from version 7.
Hi Taryn, filtfilt() was substantially changed in the R2011a release. Can you provide an example to illustrate where data appear...

plus de 13 ans il y a | 0

Réponse apportée
plot inverse of tan function i.e ratio of sine and cosine
You can use atan() or see atan2()

plus de 13 ans il y a | 0

Réponse apportée
Error with findpeaks function...
It seems like you are not using the MathWorks' findpeaks function. If you enter >>which -all findpeaks Do you only get so...

plus de 13 ans il y a | 5

Charger plus