Solved

Accurate Division

Given three integers x, y and d, return x/y (as a string) to d significant digits. Remove leading and trailing zeros. Example...

19 days ago

Solved

Mmm! Multi-dimensional Matrix Multiplication

You have got a couple of multi-dimensional matrices, A and B. And want to multiply them. For the first 2 dimensions, an ordinary...

19 days ago

Solved

Make an N-dimensional Multiplication Table

*INSTRUCTIONS* This is a multi-dimensional variant of the normal multiplication table used to teach elementary students multi...

19 days ago

Solved

Raise a polynomial to a power

In Matlab, polynomials are represented by a vector of coefficients. For example, the polynomial p=a*x^2 + b*x + c is represente...

19 days ago

Solved

Check Digit - 01

The International Standard Book Number (ISBN) is a numeric commercial book identifier that is intended to be unique. It used ...

19 days ago

Solved

Get all corner elements from a matrix where dimension of matrix is always equal to or greater than 2.

if a given matrix a = [1 2 3;4 5 6]; so answer is going to be [1 3;4 6]

19 days ago

Solved

Persistent Usage

This Challenge is to implement the Matlab Persistent variable capability. Given a sequence of Calls to a function return the cu...

20 days ago

Solved

Hydrogens in a Saturated Hydrocarbon

Given (c) carbon atoms in a saturated hydrocarbon molecule (all single bonds), how many hydrogen atoms (h) are in the molecule?

20 days ago

Solved

Sort numbers by outside digits

Sort the array so that they are sorted as if their value was a 5 digit number made from the first three and last two digits of t...

20 days ago

Solved

Average of square wave

given positive and negative peak , calculate dc level, 50% duty cycle

20 days ago

Solved

Calculate the peak value of square wave

Given the peak value of sine wave, calculate corresponding peak value of square wave, if both have same RMS voltage.

20 days ago

Solved

Calculate value of capacitor

Given the value of resistance and time at which capacitor charges to it's 99%. calculate the value of capacitor

21 days ago

Solved

Tiling a matrix

Given a matrix and a number of columns, replicate matrix in a single row

21 days ago

Solved

Square wave average calculation

Given its peak and duty cycle, calculate avg value of square wave

21 days ago

Problem

Easy Sequences 60: Almost Cube Root

The almost cube root of an integer , is the largest possible integer , such that and . For example , then , since and the next...

23 days ago | 1 | 2 solvers

Solved

determine the sum of fraction part for given matrix

determine the sum of fraction part for given matrix a=1.8308 8.9172 6.7537 1.5853 10.2858 5.3804 6.5497 ...

24 days ago

Solved

Minimum Maximum Sort Array

sort one array by put minimum value followed by maximum as follow a=[2 3 1 5] and the solution is y=[1 5 2 3 3 2 5 1];

24 days ago

Solved

row removal

Remove the nth row from input matrix M and return the resulting matrix in output N.

24 days ago

Solved

Basic matrix operations using standard MATLAB commands

Create the matrix: 1.0e+15 * 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000...

24 days ago

Solved

Probability of red tulips

I hope to give you bulbs of tulip. But I do not know the color of those petals. I just know that the color is red, white or yell...

24 days ago

Solved

Find parts of a circle.

Given radius (r) of a circle find the diameter (d), circumference (c), an area (a).

24 days ago

Solved

Find the binary code

Given a sinusoidal signal, create a function that returns the binary code of a quantized value. The function takes the bit lengt...

24 days ago

Solved

generate capital english alphabets

Based on the numeric input 'n', generate the capital english alphabet starting from A till the english alphabet at the 'n'th pos...

24 days ago

Solved

Find the alphabetic word product

If the input string s is a word like 'hello', then the output word product p is a number based on the correspondence a=1, b=2, ....

24 days ago

Solved

Nearest

*Description* Find the value and index of the element in vector _x_ that is nearest to value _y_. _y_ should be able to be a ...

24 days ago

Problem

Easy Sequences 59: Almost Twin Primes

A positive integer pair , is called an "almost twin prime pair", if one of the pair is a prime and the other is either a prime o...

24 days ago | 1 | 2 solvers

Solved

Swap the input arguments

Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

27 days ago