A résolu


Approximate e
Given a and n, compute and approximation to f = a * e ^ n, without the use of exp, string operations, or floating point numbers....

28 jours il y a

A résolu


Polar Form Complex Number Entry
Write a function that takes the magnitude and angle(in degrees) of a complex number and returns a complex variable. Positive ang...

28 jours il y a

A résolu


Find Logic 30

28 jours il y a

A résolu


Find Logic 32

28 jours il y a

A résolu


Find Logic 28

28 jours il y a

A résolu


Stress-Strain Properties - 8
Up to this point, you've calculated some material properties based on tensile stress-strain data. For this problem, you are task...

28 jours il y a

A résolu


Stress-Strain Properties - 7
The toughness of a material is technically defined as the plastic strain energy absorbed by the material (the plastic region in ...

28 jours il y a

A résolu


Stress-Strain Properties - 6
The total energy absorbed by a material up to failure in a tensile test is termed the absorbed strain energy. With respect to th...

28 jours il y a

A résolu


Matrix to vector transformation
given a matrix, make in the output 1 column vector putting odd numbers in ascending order after that put the even numbers in des...

28 jours il y a

A résolu


Create a vector of the first n natural numbers (★)
If n = 7, your program should return a vector y, where y = [1 2 3 4 5 6 7].

28 jours il y a

A résolu


Check if equal
Return true if all the elements of an nD array are equal, false otherwise.

28 jours il y a

A résolu


Ring Matrix
Given n (only odd), return output matrix a that has concentric rings of the numbers 1 through (n+1)/2 around the center point. ...

28 jours il y a

A résolu


Create logarithmically spaced values (★)
Given three numbers a,b,n with b>a, create a vector y with n logarithmic spaced values between 10^a and 10^b. Thus, if a = -2, ...

28 jours il y a

A résolu


Remove DC
Input x is the sampled signal vector, may have both AC and DC components. Output y should not contain any DC component. Examp...

28 jours il y a

A résolu


Remove the air bubbles from a vector
_*A reduced version of Problem 112*_ Given a column vector v, return a vector w in which all the zeros have "bubbled" to the ...

28 jours il y a

A résolu


Guess
A random number between 1 and 10 is created for the variable y. Guess what its value is.

28 jours il y a

A résolu


Perimeter
Given a sequence of points forming a closed path (first and last points are coincident) return the perimeter value. For example...

28 jours il y a

A résolu


Is there a GPU Device?
Return true if there is a supported GPU device available on the Cody computer.

28 jours il y a

A résolu


Draw a '7' in a zero matrix!

28 jours il y a

A résolu


Sum of elements in a vector (★)
(copy of Prob. 3) Find the sum of all the numbers of the input vector x. Input x = [1 2 3 5] Output y is 11 <> ...

28 jours il y a

A résolu


Find nth triangular number.
Calculate the triangular number of given integer n.

28 jours il y a

A résolu


Given a matrix, swap the 2nd & 3rd columns
If a = [1 2 3 4; 1 2 3 4; 1 2 3 4; 1 2 3 4]; then the result is ans = 1 3 2 4 1 3 2...

28 jours il y a

A résolu


Matrix Generation.
if input n =1, generate a matrix y = [1]

28 jours il y a

A résolu


Divisible by 21
Write a function to determine if a number is divisible by 21.

28 jours il y a

A résolu


Guess the logic

28 jours il y a

A résolu


Area of right triangle
Given a hypotenuse and a leg , calculate the area of right triangle.

28 jours il y a

A résolu


Multiplying the Sums of Two Arrays
Get two arrays, add the values within the array up, and then multiply the two total values. [2,3]*[3,6] 5*18 90

28 jours il y a

A résolu


Replace May with April
For instance, if the input is input_str = 'The flowers may bloom in April'; then the output is output_str = 'The flo...

28 jours il y a

A résolu


Zero Out Negative Elements
Write a MATLAB function called zeroNegatives that takes a numeric vector v as input and returns a modified version where all neg...

28 jours il y a

A résolu


Cancel Middle
Write a function called cancel_middle that takes A, an n-by-m matrix, as an input where both n and m are odd numbers an...

28 jours il y a

Charger plus