Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. Write a function in MATLAB to evaluate the geometric series N - 1 sem k=0 where k, m and N are integers. Evaluate this
1. Write a function in MATLAB to evaluate the geometric series N - 1 sem k=0 where k, m and N are integers. Evaluate this expression with different combinations of N and m. a. (3 marks) Describe the values of this formula as a function of N and m. b. (2 marks) Print and hand in the MATLAB function that you wrote to evaluate this series. c. (5 marks) By hand, draw vectors to visually represent this sum of complex numbers for the cases where (N, m) = (4,1), (4,2), (4,3), (4,4) and (4,8). Draw a vector for each term in the summation and connect them tip to tail. Some hints and built-in functionality that you may like to use: The V-1 is a built in variable. The number . exp Elementary exponential function - can handle arrays and com- plex arguments. abs Returns the magnitude of a complex number. zeros (m,n) Create an mxn matrix of O's. For an array use number of elements x 1. plot An endless number of ways to plot data - look at the MATLAB help. daspect([1 1 1]) Fix the axes aspect ratio so your plots have equal scale on the x, y axes
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started