Solved

Divisible by n, prime divisors from 20 to 200

Pursuant to the previous problem (linked below), this problem requires a function that checks for divisibility of large numbers ...

7 días ago

Solved

D'Hondt Method of Proportional-Representation

The D'Hondt method is a proportional representational method for allocating seats to parties in an election. <https://en.wiki...

7 días ago

Problem

Solve an ODE: second-order linear equation with constant coefficients

7 días ago | 2 | 3 solvers

Solved

Pass the Threshold!!

Write a Matlab function that will take as input a matrix of arbitrary dimensions and a scalar threshold value, and return a vec...

7 días ago

Solved

Find the Pattern

Find the pattern between input and output. Write a function that gives the correct output for any input. *Hint: magic*

7 días ago

Solved

Prime Time

All you need to do here is submit your solution a prime number of seconds after the top of the hour. Any hour at all... Easy, ...

8 días ago

Solved

Must be in the front row...

You are given a matrix followed by a single number. Your object is to write a script that will shift the matrix around so that ...

8 días ago

Solved

Go to the head of the class!

You're given a matrix and a single number. If that number is in the matrix, reorder the matrix so that number is in the first r...

8 días ago

Solved

Fun with a compass

Each night for the past week, you have been having the same nightmare: You find yourself back in your junior high school geometr...

9 días ago

Solved

Two fractions, one sum

Given a positive number x, write a MATLAB script that will tell you how many ways that the reciprocal of that number can be writ...

9 días ago

Solved

Make one vector from two others

You are given two vectors of equal length. Your task is to create a MATLAB script that will repeat all of the values in the fir...

9 días ago

Solved

A matrix of introverts

You are given a matrix full of numbers who happen to be very shy. Write a MATLAB function that will put a square of zeros aroun...

9 días ago

Solved

odd number odd sum

How many three digit numbers are there whose sum of the digits is odd?

9 días ago

Solved

Find the number of rectangles

There is a m*n grade given. Find the number of rectangles in the grid. Remember, a square is also a rectangle.

9 días ago

Solved

Britney unfolded

You have a long, narrow strip of paper. You are going to fold this strip of paper length-wise in half, than fold the folded stri...

10 días ago

Solved

Vector multiplication

Given two row vectors, v1 and v2, each representing an integer, such that the vector elements are the digits from left to right,...

10 días ago

Solved

Frequency Analysis of Text

Frequency analysis is a common task in cryptoanalysis. It is essentially counting the occurrences of alphabets (regardless of ca...

10 días ago

Solved

Calculate vowel / consonant ratio of a string

Given a string, calculate the ratio of vowels to consonants for example : x = 'This is a very good Day!' y = 7/11

10 días ago