Solved

Guess

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

environ 5 ans ago

Solved

Baseball Pitch Question

One pitcher made 10 practice pitches during his warm up before the game. Using the given information, create a vector matrix an...

environ 5 ans ago

Solved

Do operation as per given string

Do operation as per given string Example: '3*5' then answer must be 15; '3+5' then answer must be 8; '35' then answer ...

environ 5 ans ago

Solved

Solving Quadratic Equations (Version 2)

Before attempting this problem, solve version 1: <https://www.mathworks.com/matlabcentral/cody/problems/2510-solving-quadratic-...

environ 5 ans ago

Solved

Case-insensitive Character Detection

Find the index of a particular character in a string ignoring case. Example Input: x = 'aAbhhfdf' n = 'a' ...

environ 5 ans ago

Solved

If you have matrix A, create matrix B using matrix A as an "element"

A = [1 2 3 4; 5 6 7 8] B = [1 2 3 4 1 2 3 4; 5 6 ...

environ 5 ans ago

Solved

COUNT LETTERS

Count the number of letters in a given string. For Example: STR='The MAtlAb code'; output:T 2 H 1 E 2 M 1 A 2 L 1 B 1 C ...

environ 5 ans ago

Solved

Find files with extension ext in the current directory

List all files with extension 'ext' in the current directory. Return a char matrix with the name of files in rows. Return 0 if...

environ 5 ans ago

Solved

find square root of a positive real number

a number given, find the square root of that number

environ 5 ans ago

Solved

Find remainder when x is divided by 3

Find remainder when x is divided by 3

environ 5 ans ago

Solved

Square root of a number

Write a code that will output the square root of x.

environ 5 ans ago

Solved

find sum of the numbers in array

calculate the sum of numbers in a given array

environ 5 ans ago

Solved

Find last zero for each column

Given a numeric array of arbitrary size, return the row index of the last zero for each column. If a column contains all nonzero...

environ 5 ans ago

Solved

Change the sign

Given a matrix x, return one with each diagonal element replaced by its absolute value and the largest element in absolute value...

environ 5 ans ago

Solved

most frequent character

Obtain most frequent character Let s='balaram'; output='a';

environ 5 ans ago

Solved

Index of a Rational number

The set of real numbers are infinite. They are so many that real numbers can't even be enumerated. However, unlike real numbers ...

environ 5 ans ago

Solved

find the relation...

if given input is 1, output is 4. if input is 55, output is 3136.

environ 5 ans ago

Solved

Right Triangle Side Lengths (Inspired by Project Euler Problem 39)

If _p_ is the perimeter of a right angle triangle with integral length sides, { _a_, _b_, _c_ }, there are exactly three solutio...

environ 5 ans ago

Solved

Integer Sequence - 1

Check the test suite to determine the relationship between input integer scalar and output integer scalar.

environ 5 ans ago

Solved

Find names/words that start and end with the same letter.

Find names/words (from a string) that start and end with the same letter. * Case-insensitive. * If a name/word is not at the...

environ 5 ans ago

Solved

Non-zero bits in 10^n.

Given an integer that is a power of 10, find the number of non-zero bits, k, in its binary representation. For example: * ...

environ 5 ans ago

Solved

2D - Mean Filter

Assume you are given an "image" matrix of size NxM. Reduce the image noise by implementing a mean filter window of size 9 (a 3x3...

environ 5 ans ago

Solved

Decimation

When dealing to the Roman Army, the term decimate meant that the entire unit would be broken up into groups of ten soldiers, and...

environ 5 ans ago