Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Here is the script to complete . Use the same script when coding . % Define a set of initial values omegaSubN = 5; zeta

Here is the script to complete . image text in transcribedUse the same script when coding .

% Define a set of initial values

omegaSubN = 5;

zeta = 0.4;

%add error handling here later to ensure correct omegaSubN and zeta input.

if (1) %we use 1 here to make it compile, you should change to the correct conditions

%First create vectors of values for the real, sigma, and imaginary, omega, parts of the complex variable s .

% Create a vector of sigma in the range with increasement of 0.1

sigma =

% Create a vector of omega in the range with increasement of 0.1

omega =

%Next create 2D grids using the vectors for sigma and omega and the meshgrid function.

[sigsig, omegaomega]=

%Create a 2D grid for s using the grids for sigsig and omegaomega. The values in s will be complex valued.

s =

%Evaluate the function F(s) for the grid s.

fs =

%Determine the magnitude of F(s) which should then be plotted versus the real and imaginary components of s.

%MATLAB has functions abs for determining the magnitude and real and imag for determining the real and imaginary components of complex numbers.

else

fprintf('Error: value of omega and zeta not within range');

end

ENGR 1731 Computing for Engineers Spring 2023> Project 5 - - Conditional Structures - if-else, Switch > Understand 3-D plot and Error Handling 0 solutions submitted (max: Unlimited) complex values s=+j, where is the real part of s and is the imaginary part of s. (Refer to Lecture 04 slide 27 and your math book for complex numbers) n and should be in the ranges 00. the vertical direction ( z-axis). Hints: To obtain an appropriate 2D independent variable grid and 3D plot of the magnitude of : - First create vectors of values for the real, , and imaginary, , parts of the complex variable s=+j. - Next create 2D grids using the vectors for and and the meshgrid function. - Create a 2D grid for s using the grids for and . The values in s will be complex valued. - Evaluate the function F(s) for the grid s. of complex numbers. Draw it using mesh function. Turn on the grid and annotate your plot and turn on the grid. Initially test your program for n=5,=0.4. The plot should have large spikes at coordinates 2,4.6 and 2,4.6. Test other values yourself on your own matlab installation<>

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

ipsec is designed to provide secury at the

Answered: 1 week ago