Solved

Determine the mean of matrix

Determine the mean of matrix without using mean function Hint: use simple algorithm

7 meses ago

Solved

Get the array of sum for three consecutive numbers in an array

Get the array of sum, for three consecutive numbers in an array. if Input 'x' does not have at-least 3 elements then 'y' shou...

7 meses ago

Solved

Vertically stack two vectors

Stack two vectors on top of each-other so that... if A = [1 5 3] and B = [8 6 4] then C = [1 5 3 ; 8 6 4]

7 meses ago

Solved

Sorted highest to lowest?

Return 1 if the input is sorted from highest to lowest, 0 if not. Example: 1:7 -> 0 [7 5 2] -> 1

7 meses ago

Solved

Finding Perfect Squares

Given a vector of numbers, return true if one of the numbers is a square of one of the numbers. Otherwise return false. Example...

7 meses ago

Answered

Q write a function called picker that takes three arguments called condition, in1 and in2 in this order. The argument condition is a logical. If it is true, the function assigns the value of in1 to the output argument out, otherwise, it assigns the v

function ret = picker(condition,in1,in2) if condition == 1 ret = in1; else ret = in2; end end

Q write a function called picker that takes three arguments called condition, in1 and in2 in this order. The argument condition is a logical. If it is true, the function assigns the value of in1 to the output argument out, otherwise, it assigns the v

function ret = picker(condition,in1,in2) if condition == 1 ret = in1; else ret = in2; end end

7 meses ago | 0

Answered

Write a function called eligible that helps the admission officer of the Graduate School decide whether the applicant is eligible for admission based on GRE scores. The function takes two positive scalars called v and q as in

function res = eligible(v,q) pass = logical(0); avg = (v+q)/2; if (avg>= 92 && v >88 && q>88) pass = logical(1); end r...

Write a function called eligible that helps the admission officer of the Graduate School decide whether the applicant is eligible for admission based on GRE scores. The function takes two positive scalars called v and q as in

function res = eligible(v,q) pass = logical(0); avg = (v+q)/2; if (avg>= 92 && v >88 && q>88) pass = logical(1); end r...

7 meses ago | 0

Answered

Write a function called under_age that takes two positive integer scalar arguments: age that represents someone's age, and limit that represents an age limit. The function returns true if the person is younger than the age limit. If the second arg

function [too_young] = under_age(age,limit) if nargin == 2 too_young = compare(age,limit); elseif nargin == 1 too_yo...

Write a function called under_age that takes two positive integer scalar arguments: age that represents someone's age, and limit that represents an age limit. The function returns true if the person is younger than the age limit. If the second arg

function [too_young] = under_age(age,limit) if nargin == 2 too_young = compare(age,limit); elseif nargin == 1 too_yo...

7 meses ago | 0

Answered

Write a function called valid_date that takes three positive integer scalar inputs year, month, day. If these three represent a valid date, return a logical true, otherwise false. The name of the output argument is valid.

function [valid] = valid_date(year,month,day) Entered = 0; if isscalar(year) == 0 valid = logical(0); Entered...

Write a function called valid_date that takes three positive integer scalar inputs year, month, day. If these three represent a valid date, return a logical true, otherwise false. The name of the output argument is valid.

function [valid] = valid_date(year,month,day) Entered = 0; if isscalar(year) == 0 valid = logical(0); Entered...

8 meses ago | 0

Solved

Calculate BMI

Given a matrix |hw| (height and weight) with two columns, calculate BMI using these formulas: * 1 kilogram = 2.2 pounds * 1 ...

10 meses ago

Solved

Plot Damped Sinusoid

Given two vectors |t| and |y|, make a plot containing a blue ( |b| ) dashed ( |--| ) line of |y| versus |t|. Mark the minimum...

10 meses ago

Solved

Calculate a Damped Sinusoid

The equation of a damped sinusoid can be written as |y = A.ⅇ^(-λt)*cos(2πft)| where |A|, |λ|, and |f| ...

10 meses ago

Solved

Solve a System of Linear Equations

*Example*: If a system of linear equations in _x₁_ and _x₂_ is: 2 _x₁_ + _x₂_ = 2 _x₁...

10 meses ago

Solved

Find the Oldest Person in a Room

Given two input vectors: * |name| - user last names * |age| - corresponding age of the person Return the name of the ol...

10 meses ago

Solved

Convert from Fahrenheit to Celsius

Given an input vector |F| containing temperature values in Fahrenheit, return an output vector |C| that contains the values in C...

11 meses ago

Solved

Calculate Amount of Cake Frosting

Given two input variables |r| and |h|, which stand for the radius and height of a cake, calculate the surface area of the cake y...

11 meses ago

Solved

Times 2 - START HERE

Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

más de 1 año ago