# Engineering Questions: MATLAB

Problem 1

Write a MATLAB function that plots the following polynomial. π¦ = 3π₯ 3 + 2π₯ 2 β 3π₯ + 1 Name your function ππππ¦ππππ‘. This function should have one output that represents the π¦ values. The input to this function should be the π₯ values on the interval [-10, 10] as a vector.

Problem 2

Do problem 1 again but instead of a function definition use an anonymous function (Read section 6.4). This should be a script file rather than a function file.

Problem 3

Redo problem 2 on homework 5 for the log plot. Create a function on MATLAB that generalizes the script for different input parameters. The inputs to your function should be the resistance, capacitance, and inductance. Leave the frequency π on the same range. Make sure the function plots the transfer function. Your function should have the following structure: function voltage_ratio = transferFunct(resistor,inductor,capacitor) Test your function with the following inputs π = 200Ξ© πΏ = 8 ππ» πΆ = 5ππΉ Problem 4 Redo

Problem 4 from homework 5 using anonymous functions for π₯(π‘), π¦(π‘), and π§(π‘).

This site uses Akismet to reduce spam. Learn how your comment data is processed.