統計
All
Feeds
解決済み
Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...
約5年 前
回答済み
Calculating frequency of a sine wave with varying frequency
Look at this page http://www.mathworks.es/es/help/signal/ref/spectrogram.html
Calculating frequency of a sine wave with varying frequency
Look at this page http://www.mathworks.es/es/help/signal/ref/spectrogram.html
10年以上 前 | 0
回答済み
help solving string question
a=[1 2 3 4 5]; >> b=zeros(1,length(a)); count=1; l=length(a); while(count<=l) b(count)=a(l+1-count); count=c...
help solving string question
a=[1 2 3 4 5]; >> b=zeros(1,length(a)); count=1; l=length(a); while(count<=l) b(count)=a(l+1-count); count=c...
10年以上 前 | 0
回答済み
How to sort all the columns of a file into a single column?
Try reshape(A,numel(A),1)
How to sort all the columns of a file into a single column?
Try reshape(A,numel(A),1)
10年以上 前 | 1
| 採用済み
回答済み
How to find frequency components from a signal?
Your question is perhaps too generic, however to find frequency components of a signal in Matlab the FFT command is braodly used...
How to find frequency components from a signal?
Your question is perhaps too generic, however to find frequency components of a signal in Matlab the FFT command is braodly used...
10年以上 前 | 1
| 採用済み
回答済み
How do I make a master script that can call other scripts?
Imagine you have the following 3 different .m files function y=master(a,b) y=y1(a)+y2(b); function y=y2(b) y...
How do I make a master script that can call other scripts?
Imagine you have the following 3 different .m files function y=master(a,b) y=y1(a)+y2(b); function y=y2(b) y...
10年以上 前 | 0
回答済み
introducing the function in Matlab
Probably you have not stored the function in your working directory.Just change your working directory to the directory where yo...
introducing the function in Matlab
Probably you have not stored the function in your working directory.Just change your working directory to the directory where yo...
10年以上 前 | 0
回答済み
fft: significant peak in 0 Hz component
From your code and the file uploded I can see ypur sampling frequency is 1000 Hz and you are trying to represent frequencies up ...
fft: significant peak in 0 Hz component
From your code and the file uploded I can see ypur sampling frequency is 1000 Hz and you are trying to represent frequencies up ...
10年以上 前 | 1
回答済み
fft: significant peak in 0 Hz component
You are right, the 0 Hz component is DC mean component Try something like x=x-mean(x); y = detrend(x,'constant') ...
fft: significant peak in 0 Hz component
You are right, the 0 Hz component is DC mean component Try something like x=x-mean(x); y = detrend(x,'constant') ...
10年以上 前 | 0
回答済み
Dirac function and matlabFunction
The problem is this line of the code dirac(x + 0.5, 1), dirac only allows one argument. Why do you include the second parameter ...
Dirac function and matlabFunction
The problem is this line of the code dirac(x + 0.5, 1), dirac only allows one argument. Why do you include the second parameter ...
10年以上 前 | 0
回答済み
Hello,how can I separate the audible samples from unaudible or less audible samples in audio file. I want to hide my secret message in less audible samples on the basis of frequency. So basically how can I find the frequency of samples.
The human ear can hear signals within 20 Hz to 20 kHz range. So you can apply a bandpass filter in this frequency range. If you ...
Hello,how can I separate the audible samples from unaudible or less audible samples in audio file. I want to hide my secret message in less audible samples on the basis of frequency. So basically how can I find the frequency of samples.
The human ear can hear signals within 20 Hz to 20 kHz range. So you can apply a bandpass filter in this frequency range. If you ...
10年以上 前 | 0
回答済み
increment values which are larger than three
Try A=[ 2 1 3; 4 2 5; 1 1 6] a=find(A>3); A(a)=A(a)+1
increment values which are larger than three
Try A=[ 2 1 3; 4 2 5; 1 1 6] a=find(A>3); A(a)=A(a)+1
10年以上 前 | 1
回答済み
How can I implement FFT (y-axis:Power, x-axis:Frequency) with 4 cases: Lowpass/Highpass/Band/Notch
If you want to filter a signal in the frequency domain you just need to multiply your signals' frequency response (y in your cod...
How can I implement FFT (y-axis:Power, x-axis:Frequency) with 4 cases: Lowpass/Highpass/Band/Notch
If you want to filter a signal in the frequency domain you just need to multiply your signals' frequency response (y in your cod...
10年以上 前 | 0
| 採用済み
回答済み
psd of any signal
Try something like this N = length(x); xfft = fft(x); psdx = (1/(2*pi*N)).*abs(xfft).^2; freq = 0:(2*pi)/N:2*pi-(2...
psd of any signal
Try something like this N = length(x); xfft = fft(x); psdx = (1/(2*pi*N)).*abs(xfft).^2; freq = 0:(2*pi)/N:2*pi-(2...
10年以上 前 | 0
回答済み
FINDING MAX FREQUENCY OF A EARTHQUAKE DATA
If you just need to find the maximum frequency, you could calculate the fourier transform and find out the highest frequency con...
FINDING MAX FREQUENCY OF A EARTHQUAKE DATA
If you just need to find the maximum frequency, you could calculate the fourier transform and find out the highest frequency con...
10年以上 前 | 0
回答済み
Calculation the coordinate of a point
I will give you some clues You have points (x1,y1)(known) and point (x2,y2) (unknown),so you have two unknown variables, so y...
Calculation the coordinate of a point
I will give you some clues You have points (x1,y1)(known) and point (x2,y2) (unknown),so you have two unknown variables, so y...
10年以上 前 | 0
回答済み
Regarding distance determination in an ellipse from a matlab ( 2013) plot
In the case you are not working with a large number of plot you can use the ginput command (you place the mouse in a point and M...
Regarding distance determination in an ellipse from a matlab ( 2013) plot
In the case you are not working with a large number of plot you can use the ginput command (you place the mouse in a point and M...
10年以上 前 | 0
回答済み
How to convert matlab .m code into simulink model ?
Have a look at this http://www.mathworks.es/es/help/simulink/ug/creating-an-example-model-that-uses-a-matlab-function-block.h...
How to convert matlab .m code into simulink model ?
Have a look at this http://www.mathworks.es/es/help/simulink/ug/creating-an-example-model-that-uses-a-matlab-function-block.h...
10年以上 前 | 0
回答済み
Please can you help me do the following. Where a k and B are positive constants
If a, k and B are constants just asign the value they have and solve, there is no need to declare them as a syms variable. ...
Please can you help me do the following. Where a k and B are positive constants
If a, k and B are constants just asign the value they have and solve, there is no need to declare them as a syms variable. ...
10年以上 前 | 0
回答済み
Hey guys I'm new to MAT LAB.
The way signals are generated here http://www.mathworks.es/es/help/matlab/ref/fft.html is what you are looking for.The only para...
Hey guys I'm new to MAT LAB.
The way signals are generated here http://www.mathworks.es/es/help/matlab/ref/fft.html is what you are looking for.The only para...
10年以上 前 | 0
| 採用済み
回答済み
How to measure pitch period. for each letter section??
There are many methods to do, the autocorrelation approach is easy and quite effective. You can calcute your signal's autocorre...
How to measure pitch period. for each letter section??
There are many methods to do, the autocorrelation approach is easy and quite effective. You can calcute your signal's autocorre...
10年以上 前 | 0
| 採用済み
解決済み
Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...
10年以上 前
回答済み
<randum number generation
In r you have the numbers you requested r=zeros(52,1); pointer=0; for k=1:52 r(k)=pointer+(1+round(7*rand)); po...
<randum number generation
In r you have the numbers you requested r=zeros(52,1); pointer=0; for k=1:52 r(k)=pointer+(1+round(7*rand)); po...
10年以上 前 | 0
回答済み
How to plot a function ?
Some ideas here function y=new(a,b) if(a<0) disp('a must be bigger than zero'); end if(b<0||b>1) disp('a must ...
How to plot a function ?
Some ideas here function y=new(a,b) if(a<0) disp('a must be bigger than zero'); end if(b<0||b>1) disp('a must ...
10年以上 前 | 0
| 採用済み
解決済み
Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...
10年以上 前
回答済み
How to calculate a max value in a array without the built in functions.
A very easy newbie way to do it using a while loop (better with a for loop as Mischa states) >> Time = [1,6,3,6,8,12,1]; ...
How to calculate a max value in a array without the built in functions.
A very easy newbie way to do it using a while loop (better with a for loop as Mischa states) >> Time = [1,6,3,6,8,12,1]; ...
10年以上 前 | 0
回答済み
How can I draw a circle in matlab using parametric ecuations or the circle ecuation?
>> t=-pi:0.01:pi; >> y=sin(t); >> x=cos(t); >> plot(x,y)
How can I draw a circle in matlab using parametric ecuations or the circle ecuation?
>> t=-pi:0.01:pi; >> y=sin(t); >> x=cos(t); >> plot(x,y)
10年以上 前 | 0
回答済み
how to fft of a signal taken from an accelerometer data.
If you can apply xlsread(as I infere from your tags) to put your raw data into a matlab vector all you need can be found in this...
how to fft of a signal taken from an accelerometer data.
If you can apply xlsread(as I infere from your tags) to put your raw data into a matlab vector all you need can be found in this...
10年以上 前 | 0
| 採用済み
回答済み
How to generate a signal with time varying frequency?
This is a simple way to do it f=0:0.1:100; int=cos(2*pi.*f);
How to generate a signal with time varying frequency?
This is a simple way to do it f=0:0.1:100; int=cos(2*pi.*f);
10年以上 前 | 0
回答済み
How to apply hamming window for a frequency domain signal?
Why can't you apply the Hamming window in the time domain, and then compute the FFT of the resultant signal? On the other ha...
How to apply hamming window for a frequency domain signal?
Why can't you apply the Hamming window in the time domain, and then compute the FFT of the resultant signal? On the other ha...
11年弱 前 | 1