How to plot this signal x(𝑡) = (𝑡 + 2)𝑢(𝑡 + 2) − 2𝑡𝑢(𝑡) + (2(𝑡 − 4) + 2)𝑢(𝑡 − 4)?
I just am unsure of the correct syntax for plotting a signal with unit step. This is what I have so far. It gives me an error sa...
6 months ago | 1 answer | 0
Create a function myPrimes that returns the first n primes as a vector, given a positive integer. For example, if the positive integer is 5, the vector returned would include 1, 2, 3, 5, 7. In your script, prompt the user for the positive integer val
clc; close all; clear all; n=input('Prime Numbers until:'); function result = myPrimes(n) result = ; index = 1; ...
9 months ago | 1 answer | 0