Solved


String Logic 5
Example: 'CAT' --> 'TAC' 'DOG' --> 'GOD' 'MATLAB' --> 'BALTAM' 'ROSY' --> 'YSOR' 'TRUST' --> 'TSURT' 'MOSTLY' --> 'YLTS...

12 months ago

Solved


Calculate a modified Levenshtein distance between two strings
Inspired by the Cody problem found here. The Levenshtein distance is a charater-based string metric used to measure the differe...

12 months ago

Solved


Watt
Ampere x Volt = Watt

12 months ago

Solved


Add the positive numbers
Add only the positive numbers of x example: x = [-2 -1 0 1 2 3] the positive numbers are: 1 2 3, so their sum is 6

12 months ago

Solved


Sum of cubes
Write a program to determine sum of cubes of first n odd numbers.

12 months ago

Solved


sign function

12 months ago

Solved


Square root of number
Square root of given number.

12 months ago

Solved


Count the numbers
In a array x, count the number of times the number n appears in x. for example: x = [1 2 3 4 3 2 1 2] and n = 2 the answer sh...

12 months ago

Solved


Size

12 months ago

Solved


Add the even numbers
Add only the even numbers of x example: x = [1 2 3 4 5] the positive numbers are: 2 4, so their sum is 6

12 months ago

Solved


ASCii Code
Using Matlab get the ASCii for '?'

12 months ago

Solved


Cannon Ball
Given g (acceleration due to gravity) and desired altitude x, find the minimum ground velocity of a cannon ball to reach x.

12 months ago

Solved


Do you have the minimum age?

12 months ago

Solved


ASCii Code
Using matlab, give the symbol that is associated with ASCii code 122

1 year ago

Solved


Bruh
Return 'bruh'.

1 year ago

Solved


Calculate Resistance
Calculate Resistance R of a linear conductor having resistivity p, length l and area A

1 year ago

Solved


Palindrome Checker
Create a MATLAB function that checks whether a given string is a palindrome or not. A palindrome is a word, phrase, number, or o...

1 year ago

Solved


Perimeter of a semicircle
Given the diameter d, find the perimeter of a semicircle

1 year ago

Solved


Volume Pillar
Calculate the volume of a pillar with radius l and heigth ar.

1 year ago

Solved


Pi Estimate 1
Estimate Pi as described in the following link: <http://www.people.virginia.edu/~teh1m/cody/Pi_estimation1.pdf>

1 year ago

Solved


Calculate Engine Power
Calculate Engine Power (P) in kW given the values of Torque(M) in Nm and Engine Speed(n) in rpm

1 year ago

Solved


Power Numbers
Find the n-th power of m.

1 year ago

Solved


Sun angle
Determine the angle of the sun above the horizon based on the time of day. Assumptions: the sun rises in the East at 6h00, cor...

1 year ago

Solved


Number of Circles in a Number
Given a number, return the number of closed 'circles' in the base 10 numerical representation. Note: the number 4 has no circ...

1 year ago

Solved


Is it an Armstrong number?
An Armstrong number of three digits is an integer such that the sum of the cubes of its digits is equal to the number itself. Fo...

1 year ago

Solved


Convert from integer to binary
if true % decimalToBinaryVector(x) end

1 year ago

Solved


STOP that car!!!
The maximum allowed speed for this road is 100. Find the cars that didn't observe the speed limit Arrest and fine them!!!

1 year ago

Solved


convert between ascii and characters
I have seen multiple problems like this but none of them have a robust test suite associated with them. The first input C is ...

1 year ago

Solved


find the 'M'
for an input x, return 1 at the location of the letter 'M'

1 year ago

Solved


Magnitude of a vector
Given a vector x, what is its magnitude?

1 year ago

Load more