Answered
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...

13 years ago | 0

Answered
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...

13 years ago | 0

| accepted

Answered
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...

13 years ago | 0

Answered
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);

13 years ago | 0

Answered
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...

13 years ago | 0

Answered
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 ...

13 years ago | 0

Answered
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...

13 years ago | 0

| accepted

Answered
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...

13 years ago | 0

| accepted

Answered
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. ...

13 years ago | 0

Answered
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...

13 years ago | 0

Answered
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...

13 years ago | 0

| accepted

Answered
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*...

13 years ago | 0

| accepted

Answered
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...

13 years ago | 1

| accepted

Answered
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...

13 years ago | 0

| accepted

Answered
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...

13 years ago | 0

| accepted

Answered
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...

13 years ago | 1

| accepted

Answered
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...

13 years ago | 0

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

13 years ago | 0

Answered
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...

13 years ago | 0

Answered
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(...

13 years ago | 0

Answered
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...

13 years ago | 0

Answered
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...

13 years ago | 0

Answered
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...

13 years ago | 0

| accepted

Answered
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;

13 years ago | 0

| accepted

Answered
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...

13 years ago | 2

| accepted

Answered
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...

13 years ago | 0

Answered
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...

13 years ago | 0

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

13 years ago | 0

Answered
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...

13 years ago | 5

Load more