Gelöst


first element of matrix
find the first elements of a column matrix

21 Tage vor

Gelöst


Sum the squares of numbers from 1 to n
For a given value of n return the sum of square of numbers from 1 to n. Example For n = 2 then sum of squares = 5 (1^2 + ...

21 Tage vor

Gelöst


Zero or hero
A number will be given as an input. You can be hero if it's not zero. (Just for fun)

21 Tage vor

Gelöst


Matlab Basics II - Intervals
Write a function that takes an interval from a to b, and divides it into 5 parts example: a = 1, b = 2 output = 1 1.25 ...

21 Tage vor

Gelöst


Sum of the Matrix Elements
Add up all the elements in a NxM matrix where N signifies the number of the rows and M signifies the number of the columns. E...

21 Tage vor

Gelöst


Try 1.5.4: Celsius to Fahrenheit
Write a program to convert an input given in Celsius to Fahrenheit. Examples: Input celsiusValue = 100 Output fahrValu...

21 Tage vor

Gelöst


Array of Ones
Create a 100 X 100 array of ones.

21 Tage vor

Gelöst


Returning a "greater than" vector
Given a vector, v, return a new vector , vNew, containing only values > n. For example: v=[1 2 3 4 5 6] n=3 vNew =...

21 Tage vor

Gelöst


Create a two dimensional zero matrix
You have to create a zero matrix of size (mxn) whose inputs are m and n and the elements of your matrix should be zeros. Exam...

21 Tage vor

Gelöst


matlab indian players
answer is one of the indian matlab player(just for fun dont take serious)

21 Tage vor

Gelöst


Sorted highest to lowest?
Return 1 if the input is sorted from highest to lowest, 0 if not. Example: 1:7 -> 0 [7 5 2] -> 1

21 Tage vor

Gelöst


Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

21 Tage vor

Gelöst


Who invented zero?
We know the importance zero in computer science, mathematics... but who invented zero? Clue: He was the first in the line ...

22 Tage vor

Gelöst


Equal to their cube
Tell me three real numbers that are equal to their cubes?

22 Tage vor

Gelöst


Given area find sides
In a right angle triangle given area 'A' one arm=x, another arm=2x then find the value of x. For example, area A=400 then ...

22 Tage vor

Gelöst


Sum of diagonal of a square matrix
If x = [1 2 4; 3 4 5; 5 6 7] then y should be the sum of the diagonals of the matrix y = 1 + 4 + 7 = 12

22 Tage vor

Gelöst


Divide by 4
Given the variable x as your input, divide it by 4 and put the result in y.

22 Tage vor

Gelöst


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

22 Tage vor

Gelöst


factorial of a number x
Factorial of a number x

22 Tage vor

Gelöst


reverse string
input='rama' output='amar'

22 Tage vor

Gelöst


Find the area of a triangle
Given a triangle with a base b and height h, return the triangle area.

22 Tage vor

Gelöst


03 - Matrix Variables 2
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_3b.png>> A 9x9 matrix of zeros, but with the following v...

22 Tage vor

Gelöst


Matrix to column conversion
Given a matrix of any size, convert it into a column vector. e.g A=[10 20 30; 40 50 60] then, B = [10; 40; ...

22 Tage vor

Gelöst


Simple Vector Addition
Take two incoming vectors and output the sum of the two vectors

24 Tage vor

Gelöst


find the maximum element of the matrix
for e.g x = [1 2; 3 4] y = 4

24 Tage vor

Gelöst


Double the 2x2 Matrix
In this challenge, you are given a predefined 2x2 matrix called x. Your task is to multiply every element in this matrix by 2 an...

24 Tage vor

Gelöst


Area of a Square
Given the length x of the side of a regular square, find the area of the square, A.

24 Tage vor

Gelöst


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

24 Tage vor

Gelöst


Switch matrix to a column vector
for e.g. x = [1 2 3 4] y = 1 3 2 4

24 Tage vor

Gelöst


Arrange vector in ascending order
Arrange a given vector in ascending order. input = [4 5 1 2 9]; output = [1 2 4 5 9];

24 Tage vor

Mehr laden