Solved


create a circulant matrix
create a circulant matrix

ongeveer 8 jaar ago

Solved


Upper triangular matrix
Create a function to retrieve the upper triangular matrix of a matrix (without using tril). The matrix will always be square. ...

ongeveer 8 jaar ago

Solved


Let's see how peculiar we can get
The task is to multiply two numbers. But do it in the most peculiar possible way.

ongeveer 8 jaar ago

Solved


Determine the length of a string of characters
Determine the length of a string of characters

ongeveer 8 jaar ago

Solved


COUNT VOWEL
Count, how many times vowels occurred. EXAMPLE: x='string the MaTLaBiAn' then the answer will be 6. x='coUnt the vowEl' th...

ongeveer 8 jaar ago

Solved


Determine if input is divisible by three.
Given a positive integer, n, determine if n is divisible by 3. If yes, the function should output true. If no, false.

ongeveer 8 jaar ago

Solved


calculate RMS voltage
given peak to peak voltage, calculate rms voltage

ongeveer 8 jaar ago

Solved


Find the product of a Vector
How would you find the product of the vector [1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0] times 2?; x = [1 : 0.5 : 6]; y ...

ongeveer 8 jaar ago

Solved


Put Two 1D matrices into one 1D matrix
Example: If input a = [1 2 3 4 5]; input b = [10 9 8 7 6]; then output will be, y_correct = [1 10 2 9 3 8 4 7 5...

ongeveer 8 jaar ago

Solved


Create a Matrix of Zeros
Given an input x, create a square matrix y of zeros with x rows and x columns.

ongeveer 8 jaar ago

Solved


Basics: Divide integers to get integer outputs in all cases
Divide integers a and b in such a way that output y is always an integer (in ceil manner)

ongeveer 8 jaar ago

Solved


Max index of 3D array
Given a three dimensional array M(m,n,p) write a code that finds the three coordinates x,y,z of the Maximum value. Example ...

ongeveer 8 jaar ago

Solved


Phonebook-like problem
strcmpi('Yes', 'No')

ongeveer 8 jaar ago

Solved


Vector LCM
* Find Least Common Multiple of a given vector. * Need general solution as the test suite will be expanded. * Function Templa...

ongeveer 8 jaar ago

Solved


Average of square wave
given positive and negative peak , calculate dc level, 50% duty cycle

ongeveer 8 jaar ago

Solved


Vector Magnitude Calculator
'a' is a vector that starts at the origin and ends at (x, y). Find ||a||. Hint: It is as simple as "ABC".

ongeveer 8 jaar ago

Solved


Calculate square and cube of number
Calculate square and cube of number x

ongeveer 8 jaar ago

Solved


Find Factrorial without using built-in function
A number is given, you have to find the factorial of the number without using built-in factroial function. You may use loops....

ongeveer 8 jaar ago

Solved


Find the index of n in magic(n)
If input n=5, then magic(n) is 17 24 1 8 15 23 5 7 14 16 4 6 13 20 22...

ongeveer 8 jaar ago

Solved


Find the square of the sum of the digits of a number
If a number (n) is provided as an input, find the square of the sum of the digits of the number. Example If n = 21, the an...

ongeveer 8 jaar ago

Solved


"Find out the best cricket"
This is how I originally read Problem 2013, so let's just go with it. Give me the first and last name of the best cricket, rega...

ongeveer 8 jaar ago

Solved


Analyze observation data
There are results of observation. A B C -------------------------- t=1 2.2 2.6 2.4 t=2 2.4 ...

ongeveer 8 jaar ago

Solved


Speed of car
Calculate the Speed of car given its Distance travelled and time taken in x and y respectively

ongeveer 8 jaar ago

Solved


Create sequnce 1 4 9 16 25.........
Create sequnce 1 4 9 16 25......... upto entered input value using matlab scripting commands. Let y be output and x be input

ongeveer 8 jaar ago

Solved


y equals x divided by 2
function y = x/2

ongeveer 8 jaar ago

Solved


Calculate representive values (max. min. std)
A B C -------------------------- t=1 2.2 2.6 2.4 t=2 2.4 2.8 2.2 t=3 2.6 2.7 2....

ongeveer 8 jaar ago

Solved


find the surface area of a cube
given cube side length x, find the surface area of the cube, set it equal to y

ongeveer 8 jaar ago

Solved


Write a code that will follow the equation y = x * (x + x) * x.
If x = 5, y = 5 * (5+5) * 5 = 250

ongeveer 8 jaar ago

Solved


Array GCD
* Find Greatest Common Divisor in a given array * Function Template: function ans = arraygcd(a) % a=[45 15 200 ...

ongeveer 8 jaar ago

Solved


Factorial !
Calculate the factorial of a non-negative integer without using the built in function *factorial*

ongeveer 8 jaar ago

Load more