Solved


Counting down
Create a vector that counts from 450 to 200 in increments of 10.

mer än 6 år ago

Solved


Make a run-length companion vector
Given a vector x, return a vector r that indicates the run length of any value in x. Each element in r shows how many times the ...

mer än 6 år ago

Solved


Compare two input matrices
Check which input matrix has more elements. Return "1" if matrix A has more elements than matrix B. Otherwise return "0". Exa...

mer än 6 år ago

Solved


Replace May with April
For instance, if the input is input_str = 'The flowers may bloom in April'; then the output is output_str = 'The flo...

mer än 6 år ago

Solved


Output any real number that is neither positive nor negative
Output any real number that is neither positive nor negative

mer än 6 år ago

Solved


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

mer än 6 år ago

Solved


Swap two numbers
Example Input: a = 10 b = 20 Output a = 20 b = 10

mer än 6 år ago

Solved


Reference Index Number
Given a reference set R of elements (each unique but identical in type), and a list V of elements drawn from the set R, possibly...

mer än 6 år 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 ...

mer än 6 år ago

Solved


Change the sign of even index entries of the reversed vector
change the signs of the even index entries of the reversed vector example 1 vec = [4 -1 -2 9] ans = [9 2 -1 -4] example2...

mer än 6 år ago

Solved


random picture with random colours
write a function which creates a random(x,y) matrix with random RGB colours for example create_pic(5,5) gives us a 3d matrix. ...

mer än 6 år ago

Solved


Geometric series
Find the sum, given the first term t1, the common ratio r, and number of terms n. Examples If input t1=1, r=1, n=7 the...

mer än 6 år ago

Solved


radius of a spherical planet
You just measured its surface area, that is the input.

mer än 6 år ago

Solved


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

mer än 6 år ago

Solved


Distance walked 2D
Suppose you go from x-y coordinates [3,4] to [0,0] to [0,1] to [1,1], then you walked 7 units of distance.

mer än 6 år ago

Solved


Rotate a Matrix
Input a Matrix x, Output y is the matrix rotating x 90 degrees clockwise

mer än 6 år ago

Solved


Remove white space from the string
Remove the white spaces (trailing and leading) from the input variable

mer än 6 år ago

Solved


Generate pi using logarithm
Generate pi using logarithm

mer än 6 år ago

Solved


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

mer än 6 år ago

Solved


Flipping
Write code that can reverse the vector without using any sort of loop. Example Given the input vector A = [ 1 2 3 4 5...

mer än 6 år ago

Solved


Square a Number
Given an input x, return y, which is equal to the square of x.

mer än 6 år ago

Solved


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

mer än 6 år 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...

mer än 6 år ago

Solved


Finding perimeter of a rectangle
A rectangle has a length of x centimeters and a width of w centimeters. Find the perimeter.

mer än 6 år ago

Solved


Sum the 'edge' values of a matrix
Sum the 'edge' values of an input matrix (the values along the perimeter). Example [1 2 3 4 5 6 7 8 9] Output = ...

mer än 6 år ago

Solved


Rotate a Matrix by 90 degrees
Rotate a Matrix by 90 degrees Example: If the input is: X = 1 2 3 4 5 6 7 8 9 ...

mer än 6 år ago

Solved


Concatenate two strings
Its very easy. Just concatenate two strings.

mer än 6 år ago

Solved


Return area of square
Side of square=input=a Area=output=b

mer än 6 år ago

Solved


Generate a string like abbcccddddeeeee
This is the string version of Problem 1035. <http://www.mathworks.com/matlabcentral/cody/problems/1035-generate-a-vector-like-1-...

mer än 6 år ago

Solved


The sum of the numbers in the vector
eg. [1,2,3]---->SUM=6

mer än 6 år ago

Load more