Gelöst


Adding machine
Add number to all elements in given vector.

mehr als 9 Jahre vor

Gelöst


isnan()
Replace all nans with zeros

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Frage


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]

mehr als 9 Jahre vor | 3 Antworten | 0

3

Antworten

Gelöst


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...

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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...

mehr als 9 Jahre vor

Gelöst


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...

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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...

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


How many Optimus
Get the number of primes given a vector

mehr als 9 Jahre vor

Gelöst


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)

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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...

mehr als 9 Jahre vor

Gelöst


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 :)

mehr als 9 Jahre vor

Gelöst


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+...

mehr als 9 Jahre vor

Gelöst


Ceil Me Now
Get the ceiling of the input matrix

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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 ...

mehr als 9 Jahre vor

Mehr laden