Solved


Transpose
Write a MATLAB script in order to convert a random length row vector (v) into a column vector.

bijna 4 jaar ago

Solved


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

bijna 4 jaar ago

Solved


Celsius to Kelvin
Convert Celsius degrees to Kelvin temperature.

bijna 4 jaar ago

Solved


Duplicate a character
Duplicate a character 'n' times. Example 1: str='a' n=5 output='aaaaa' Example 2: str='*' n=3 output='***'

bijna 4 jaar ago

Solved


square number
Square a number

bijna 4 jaar ago

Solved


matrix of natural number
Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 resides seially as shown in the examples below. ...

bijna 4 jaar ago

Solved


metre to feet converter
The idea is to make a converter, which exchange meters to feets. We use a factor of 1m = 3.281*1f. so 3m are equals to 9.843 m...

bijna 4 jaar ago

Solved


find radius of cone
if Slant height of Cone(I)& hight of Cone(H) given then find radius of the Cone(R) for example I=5,h=4 then the ans R=3;

bijna 4 jaar ago

Solved


factorial of a number x
Factorial of a number x

bijna 4 jaar ago

Solved


Number of digits in an integer
Specifies how many digits in a given integer. Example: in=100 ==> out=3

bijna 4 jaar ago

Solved


Beginner's Problem - Squaring
Try out this test problem first. Given the variable x as your input, square it by two and put the result in y. Examples: ...

bijna 4 jaar ago

Solved


Temperature conversion
Convert temperature in degrees Celsius (C) to temperature in degrees Kelvin (K). Assume your answer is rounded to the nearest Ke...

bijna 4 jaar ago

Solved


Replace NaNs with the number that appears to its left in the row.
Replace NaNs with the number that appears to its left in the row. If there are more than one consecutive NaNs, they should all ...

bijna 4 jaar ago

Solved


04 - Scalar Equations 1
Define the variable a: <<http://samle.dk/STTBDP/Assignment1_4-a.png>> Use this to calculate x: <<http://samle.dk/STTBD...

bijna 4 jaar ago

Solved


Sum of first n terms of a harmonic progression
Given inputs a, d and n, return the sum of the first n terms of the harmonic progression a, a/(1+d), a/(1+2d), a/(1+3d),....

bijna 4 jaar ago

Solved


Say something funny
Say something funny, or not. Your solution will be (fully automatically and objectively) scored based on how clever or funny ...

bijna 4 jaar ago

Solved


Reverse the elements of an array
Reverse the order of elements in an array: eg: input X = [ 1 2 3 ; 4 5 6 ; 7 8 9 ] o...

bijna 4 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

bijna 4 jaar ago

Solved


Convert Two Character String into a Binary Vector
Given a string "XOXXO" convert it into a binary vector. [1 0 1 1 0] Paul Berglund implemented an optimal method in <http://ww...

bijna 4 jaar ago

Solved


Join Strings with Multiple Different Delimiters
The idea is to form the string S by interleaving the elements of a cell array of strings DELIMITER and another cell array of st...

bijna 4 jaar ago

Solved


Make a list string
Given a cell string, produce a string separating the items with spaces and commas and with an 'and' preceding the final item, an...

bijna 4 jaar ago

Solved


How many digits are there?
Input(s) - any string Output(n) - number of digits within string s

bijna 4 jaar ago

Solved


Find the logic
There exists one logic in between input and output. Find it (easy math). Example 1: x=13 then y=339; Example 2: x=26...

bijna 4 jaar ago

Solved


kmph to mps
convert kilometer per hour to meter per second

bijna 4 jaar ago

Solved


Count ones
Write a program to count number of ones (1s) in an integer variable input. For example: Input x=2200112231 output y=3 I...

bijna 4 jaar ago

Solved


Negative matrix
Change the sign of all elements in given matrix.

bijna 4 jaar ago

Solved


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

bijna 4 jaar ago

Solved


Product of elements in row
Product of matrix such that a=[3 3 1] b=9

bijna 4 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

bijna 4 jaar ago

Solved


Remove the positive integers.
Given array,x, remove all the positive numbers and display ouput as y. Example x=[1 -2 3 -4] , output is y=[-2 -4].

bijna 4 jaar ago

Load more