Answered

From latitude,longitude, elevation to cartesian coordinates

I suggest to use deg2utm

From latitude,longitude, elevation to cartesian coordinates

I suggest to use deg2utm

8 months ago | 0

| accepted

Answered

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

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

8 months ago | 0

| accepted

Answered

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

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

8 months ago | 1

| accepted

Answered

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

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

8 months ago | 0

| accepted

Answered

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

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

9 months ago | 0

Answered

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

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

9 months ago | 1

| accepted

Answered

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

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

9 months ago | 0

Answered

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

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

9 months ago | 0

Answered

transfer function in simulink

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

transfer function in simulink

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

9 months ago | 0

| accepted

Answered

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

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

9 months ago | 0

Answered

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

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

10 months ago | 1

| accepted

Answered

DSP digital bandpass filter

%BANDPASSFILTER Returns a discrete-time filter object. % MATLAB Code % Generated by MATLAB(R) 9.4 and Signal Process...

DSP digital bandpass filter

%BANDPASSFILTER Returns a discrete-time filter object. % MATLAB Code % Generated by MATLAB(R) 9.4 and Signal Process...

10 months ago | 0

Answered

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

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

10 months ago | 0

Answered

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

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

10 months ago | 0

| accepted

Answered

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

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

10 months ago | 0

| accepted

Answered

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

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

10 months ago | 0

| accepted

Answered

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

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

10 months ago | 0

| accepted

Answered

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

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

10 months ago | 1

| accepted

Answered

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

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

10 months ago | 0

Answered

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

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

10 months ago | 0

| accepted

Answered

Table of functions for symbolic expressions

It is not exactly what you asked for, but I believe that it is close enough: close all clearvars syms x n ...

Table of functions for symbolic expressions

It is not exactly what you asked for, but I believe that it is close enough: close all clearvars syms x n ...

10 months ago | 0

| accepted

Answered

how to calculate the convolution of two signal without using CONV() ?

close all clearvars %x=input('Enter x: ') x=sin(2*pi*0.1.*(1:1:11)); %h=input('Enter h: ') h=[1 ...

how to calculate the convolution of two signal without using CONV() ?

close all clearvars %x=input('Enter x: ') x=sin(2*pi*0.1.*(1:1:11)); %h=input('Enter h: ') h=[1 ...

10 months ago | 2

| accepted

Answered

With the instruction "h = firpm(n, f, a);", can you give example to show ho to determine the parameters n,f &a?

Help doc is clear enough. The only point that maybe causes a confusion you is the "order" n. So keep in mind that firpm(n...

With the instruction "h = firpm(n, f, a);", can you give example to show ho to determine the parameters n,f &a?

Help doc is clear enough. The only point that maybe causes a confusion you is the "order" n. So keep in mind that firpm(n...

10 months ago | 0

Answered

How to generate multisine from phase and magnitude information?

try ifft()

How to generate multisine from phase and magnitude information?

try ifft()

10 months ago | 0

Answered

How to make cos function work only for short period then 0 of long period, and repeat?

I hope, this will help : clearvars; clc; close all; % simulation time step dt=0.001; % periods of ON and ...

How to make cos function work only for short period then 0 of long period, and repeat?

I hope, this will help : clearvars; clc; close all; % simulation time step dt=0.001; % periods of ON and ...

10 months ago | 0

Answered

How to change the default x-axis unit in a Bode diagram to Hertz?

clc;close all; clc % test system s=tf('s'); H=(s-1)/((s-3)*(s-2)) % bode [mag,phase,wout] = bode(H); ...

How to change the default x-axis unit in a Bode diagram to Hertz?

clc;close all; clc % test system s=tf('s'); H=(s-1)/((s-3)*(s-2)) % bode [mag,phase,wout] = bode(H); ...

10 months ago | 0

Answered

How to matlab z-transform of x(n)=((4/3)^n) u(1-n)

Symbolic math toolbox, calculates only unilateral z transform. So, we have to use some properties in order to calculate what you...

How to matlab z-transform of x(n)=((4/3)^n) u(1-n)

Symbolic math toolbox, calculates only unilateral z transform. So, we have to use some properties in order to calculate what you...

10 months ago | 0

Answered

step response from an equation

Use this: clear; clc; close all; % sympolic math toolbox syms s, num_planta=sym(1); %numera...

step response from an equation

Use this: clear; clc; close all; % sympolic math toolbox syms s, num_planta=sym(1); %numera...

10 months ago | 0

Answered

I am trying to create an if/else staement over a range of values and display the corresponding value for each values variable. Ex if a<5 then c=2 b=1 else c=3 b=4 but over a range of a values displaying each c or b value for each of the a values

Dear Bardon, At the code you gave us, tp never exceeds 1500, so regarding the if-statement, always the first part of it is e...

I am trying to create an if/else staement over a range of values and display the corresponding value for each values variable. Ex if a<5 then c=2 b=1 else c=3 b=4 but over a range of a values displaying each c or b value for each of the a values

Dear Bardon, At the code you gave us, tp never exceeds 1500, so regarding the if-statement, always the first part of it is e...

10 months ago | 0

Answered

How to matlab ztransform with time shift?

If you like to use <https://www.mathworks.com/products/symbolic.html symbolic math toolbox> : clearvars; clc; close all; ...

How to matlab ztransform with time shift?

If you like to use <https://www.mathworks.com/products/symbolic.html symbolic math toolbox> : clearvars; clc; close all; ...

10 months ago | 0