답변 있음
How to compute the moving average of a signal with 6-hour window length and shifted 15 min at a time?
Hi Mohanad Bellow, you will find an example, where a moving average corresponding to a 6h window, is applied upon a signal take...

2년 이하 전 | 0

| 수락됨

답변 있음
Transfer function from power delay profile (PDP)
You can use the following piece of code : % Sampling Rate Ts=1E-3; %Tsampling =1ms % Transfer function h=zeros(530+1); h(...

약 2년 전 | 0

답변 있음
Minus powers of a transfer function into Simulink
You can use "Discrete Filter" block , provided by simulink. You can find it here: DSP System Toolbox -> Filtering -> Filter ...

약 2년 전 | 1

| 수락됨

답변 있음
Sum of two sine signals is a real signal. So, its spectrum is symetrical around zero. A block diagram that produces a "complex ...

약 2년 전 | 0

| 수락됨

답변 있음
Dear Hari Here you are a simple version of a "feedback" structured AGC clearvars; clc; %% time instances dt=0.001 t=0:d...

약 2년 전 | 1

| 수락됨

답변 있음
How to delay signal input ?
Here is my suggestion:

약 2년 전 | 0

| 수락됨

답변 있음
matlab for beginners and books
Hello You can find many resources for learning matlab. Here you are a video-series on youtube: Learning Matlab on youtube

약 2년 전 | 0

답변 있음
matlab code help for equation solving
Hi A. Hossain Try this: clear; clc; syms w d k d=100 g=9.8 for w=0:0.01:10 fprintf('----- w = %f -----\n', w); ...

약 2년 전 | 0

| 수락됨

답변 있음
Moving average filter for large dataset
Hi Ajay You can try an iir filter like this clear; clc; %supose x contains your data. % here , for simplicity, x is a cons...

약 2년 전 | 0

답변 있음
Solution of this non-linear eqution
Hi A. Hossain Try this: clear; clc; syms w d k d=100 g=10 for w=0:0.1:20 fprintf('----- w = %f -----\n', w); ...

약 2년 전 | 0

답변 있음
From latitude,longitude, elevation to cartesian coordinates
I suggest to use deg2utm

3년 이하 전 | 0

| 수락됨

답변 있음
Amplification correlation for signal processing
Suppose that you have two (discrete time) signals x[n] and y[n] where . You can make them "unity energy" by using the follow...

3년 이하 전 | 0

| 수락됨

답변 있음
find the maximum value of a function
Hi Ken Use the following script in order to analyse your function: clearvars; clc; close all; syms x % definition ...

3년 이하 전 | 1

| 수락됨

답변 있음
How can adjust the delay ?
If you want to insert "negative" delay (-0.002) at one signal x(t) , into your simulink model you can do the following: Add 0.0...

3년 이하 전 | 0

| 수락됨

답변 있음
How to write the script file for the following questions.
clearvars; clc; close all; syms n % s=1/2 + 1/2^2 + 1/2^3 + 1/2^4 +... N=10; S=symsum(1/(2^n), n, 1, N) ...

3년 이하 전 | 0

답변 있음
Plot an ellipse,whose length of major axis (a), length of minor axis (b) and center (h,k) in the domain of x->[0,1] in MATLAB
I suggest the following script : clearvars; clc; close all; syms x y a b h k % ellipse axis a=2; b=1; ...

3년 이하 전 | 1

| 수락됨

답변 있음
how can i sample this code
clear all; clc; close all; a = 1.2; K =0.0017; Fs = 10E3; % sampling frequency 10KHz Ts = 1/Fs; % sampling ...

3년 이하 전 | 0

답변 있음
how to get zero mean normalized input
If you already have produced an input signal xin, before using it, you must remove its dc component: xin=xin-mean(xin) b...

3년 이하 전 | 0

답변 있음
I suggest to use LTI system : <</matlabcentral/answers/uploaded_files/136275/tf.jpg>> But before you try...

3년 이하 전 | 0

| 수락됨

답변 있음
how to get z-transform expression along with the curve of this function
Try this: clear; clc; fc=500; %Hz; fs=2000; %Hz; n=4; % filter order [b,a] = butter(n ,fc/(fs/2)); ...

3년 이하 전 | 0

답변 있음
How I can code this Nonuniform Series?
Provided that you can use symbolic math toolbox, I suggest the following: close all; clc; clearvars; syms n x Pn(x) ...

3년 이하 전 | 1

| 수락됨

답변 있음
DSP digital bandpass filter
%BANDPASSFILTER Returns a discrete-time filter object. % MATLAB Code % Generated by MATLAB(R) 9.4 and Signal Process...

3년 이하 전 | 0

답변 있음
How can I remove the noise in voice file?
In the following figure, it is depicted the original signal and a filtered version of it. <</matlabcentral/answers/uploaded_f...

3년 이하 전 | 0

답변 있음
Bode Plot Transfer Function
Here you are: close all clearvars s=tf('s') H=(s^4+s^2+1)/(s^4+2*s^3+3*s^2+4*s+1) opts = bodeopti...

3년 이하 전 | 0

| 수락됨

답변 있음
How do I write an expression like this question in matlab codes and execute it without errors but logical answers?
Try the following script close all clearvars syms x y z z=-(x^2)/4 - (y^2)/9 +1 fsurf(z); xlabe...

3년 이하 전 | 0

| 수락됨

답변 있음
I want to know about plotting complex function
clear; clc; % entire z-plane x=-3:0.01:3; y=-3:0.01:3 ; % our z region zregion=[]; for n=1:lengt...

3년 이하 전 | 0

| 수락됨

답변 있음
How do I make this command to get the result correctly? Please help me to solve this..
If you have license for symbolic math toolbox, try this : close all clearvars syms x y f(x)=3*x^2-2*y+5 ...

3년 이하 전 | 0

| 수락됨

답변 있음
Is it possible to find autocorrelation function of a piecewise function?
You have to calculate autocorrelation using its <https://ocw.mit.edu/courses/mechanical-engineering/2-161-signal-processing-con...

3년 이하 전 | 1

| 수락됨

답변 있음
How I can code ||x||=1 with first component x1>0, x is vector
You can use <https://www.mathworks.com/help/matlab/ref/norm.html norm> or <https://www.mathworks.com/help/matlab/ref/v...

3년 이하 전 | 0

답변 있음
How can I get the filename of a running script
Use <https://uk.mathworks.com/help/matlab/ref/mfilename.html?s_tid=srchtitle mfilename> For example, you can include into yo...

3년 이하 전 | 0

| 수락됨