Solved


Adding machine
Add number to all elements in given vector.

10 years ago

Solved


isnan()
Replace all nans with zeros

10 years ago

Solved


How to find average of each column ?
How to find average of each column for a given matrix?

10 years ago

Solved


Vector Multiplication
Vector Multiplication of three matrix as shown in test cases.

10 years ago

Solved


Convert decimal to hex as shown in test cases
Convert decimal to hex as shown in test cases.

10 years ago

Solved


Upper Matrix in LU Decompositon
Get the Upper Matrix of the Matrix Given Please have a pride on not using built-in Matlab functions :)

10 years ago

Solved


Lightning strike distance: Writing a function
Write a function named LightningDistance that outputs "distance" given input "seconds". Seconds is the time from seeing lightnin...

10 years ago

Question


How to genneral a repeat array
I have a array a = [1, 2 , 3 ,4], I want to repeat every element 3 times. The result is [1,1,1,2,2,2,3,3,3,4,4,4]

10 years ago | 3 answers | 0

3

answers

Solved


Polynomial evaluation
Compute the value of a polynomial of degree n with coeffcients in vector a, at value x. p(x)=a(1)+a(2)x+a(3)x^2+...+a(n+1)x...

10 years ago

Solved


How many figures currently exist?
Return the number of figures that exist at any given time.

10 years ago

Solved


Sudoku square
We have a small sudoku square, but we miss one number. x=[ 1 5 4; 8 6 3; 0 9 7]; Make a function, where output is fi...

10 years ago

Solved


Simple polynomial evaluation
Compute the value of a polynomial of degree n with all coefficients '1', at value x. n is always n>=0. p(x)=1+x+x^2+...+x^n...

10 years ago

Solved


Number of primes
Count the number of primes less than 'n'.

10 years ago

Solved


Beat the test suite if you can :)
Test Suites are laid there for clues

10 years ago

Solved


Creating a code via test suite :)
Given the test suites, create a code that would fit them :) *Clue: Pascal's Triangle

10 years ago

Solved


Rotate array 90 degrees
Example, A = [1 2 3 ; 4 5 6 ] B = rotated(A) = [ 3 6; 2 5; 1 4 ]

10 years ago

Solved


kmph to mph converter
Convert the speed in miles/hour to km/hour.

10 years ago

Solved


Back to Basics - New Data Type in R2016b - convert a char to a string
Convert an char array into a string.

10 years ago

Solved


Clipper Function
Create a function that emulates a clipper circuit Given sin wave, t and the constant value for clipping, and the direction to re...

10 years ago

Solved


Super Basic - 3 + true equals ??
Solve the title

10 years ago

Solved


How many Optimus
Get the number of primes given a vector

10 years ago

Solved


Check that given number is 3*n
Check that input of multiple of three (3*n). if given number is included in 3*n, print true. (hint: use mod)

10 years ago

Solved


Sum of the squares of optimus
Get the sum of the squares of primes given limit input x Ex. x = 10, output = 2^2 + 3^2 + 5^2 + 7^2

10 years ago

Solved


Square of the sum of optimus
Get the square of the sum of all primes given the limit input x

10 years ago

Solved


Count me in
Count the number of occurrences of the second input in the first input Ex. x1 = 12344455511; x2 =2; output = 1 x1 = 123444...

10 years ago

Solved


Mode of Optimus!!!
Get the mode of primes of input x When you get the output, you'll know what mode Optimus is always using :)

10 years ago

Solved


Calculate geostrophic current
eta0=0.01; R=300; f=0.01; g=9.81; x=-500:50:500; y=-500:50:500; [x y]=meshgrid(x,y); eta=eta0*exp(-(x.^2+...

10 years ago

Solved


Ceil Me Now
Get the ceiling of the input matrix

10 years ago

Solved


Find my daddy long leg (No 's')
Given the ratio of the two legs,and the hypotenuse, find the value of the bigger leg

10 years ago

Solved


Calculate RMSE
RMSE(Root Mean Square Error) is widely used to calculate error. Calculate RMSE between [a] and [b] a=[1 2 3 4] b=[0 1 2 ...

10 years ago

Load more