Vector with a repeated entry
Create a row vector of length n, filled with 4's. For example, if n = 3,
output = [4 4 4]
Hint:
Search for the function...
3 years 前
已解决
vectors counting by 5
Create a vector with numbers from x_min to x_max in increments of 5.
3 years 前
已解决
Annual Salary
What is the annual salary of Mr. Cody if he works 40 hours a week and gets $x per hour and a yearly bonus of $2000? (Let, 50 wee...
3 years 前
已解决
MPS to MPH
Given the speed in miles per second, find the speed in miles per hour.
3 years 前
已解决
Log of a number
Write a script that will give the log of x as output.
3 years 前
已解决
Kinetic Energy
Given mass, m, and kinetic energy, KE, find the velocity of the object.
Total resistance of resistors in parallel
What is the total resistance of a number of resistors in parallel?
A vector R contains the resistances (in Ohm) of n resistors,...