解決済み


Reshape a Vector
Write a function that accept three inputs. The first one is a row vector S. The second and third arguments are m and n which de...

8年以上 前

解決済み


Power of n ?
Determine if _x_ (positive integer) is a power of _n_, return true or false accordingly.

8年以上 前

解決済み


solve for y that is half as much as three less than one tenth of x
function y = half(x) y = (x * .1); end

8年以上 前

解決済み


interesting center of magic matrix
output the centre of magic matrix of n input=7; output=25

8年以上 前

解決済み


Delete 2nd and 5th column of Given 6*6 matrix
Delete the 2nd and 5th columns of the given 6*6 matrix. Example Suppose A = magic(6) 35 1 6 26 19 ...

8年以上 前

解決済み


Diagonal & Anti-Diagonal Matrix: Easy
Create a matrix as shown below from "magic" square. For example: if input x=9;then use mgic(x) and create the matrix...

8年以上 前

解決済み


Filter values in a vector
Cody often benefits from a functional style of programming. For example, your score is often better when you compose multiple fu...

8年以上 前

解決済み


Another colon problem
This is simple problem based on problems 555, 801, 1118, etc. Create an index vector from two input vectors. Example: ...

8年以上 前

解決済み


Create a square matrix of zeros of even order
Create a square matrix of zeros of even order

8年以上 前

解決済み


Union of two set decreasing order
Union of two set decreasing order Say, x=[1 2 5] and y=[5 7 8] then answer must be [8 7 5 2 1]

8年以上 前

解決済み


Values in Array
How many values are in the array

8年以上 前

解決済み


multiple of nine?
Given a positive number n, return true if n is a multiple of 9 and false if not. Do not make the division and do not use functio...

8年以上 前

解決済み


Rotate a matrix for 180 degree
Rotate a matrix for 180 degree for eg: x=[1 2 3 4] y=[4 3 2 1]

8年以上 前

解決済み


Perimeter
Given a sequence of points forming a closed path (first and last points are coincident) return the perimeter value. For example...

8年以上 前

解決済み


Simple date to serial no. conversion
Convert a date string to a serial date number. For example if you take x='19-May-2001' then the result is 730990 x...

8年以上 前

解決済み


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

8年以上 前

解決済み


Make a Plot with Functions
Make a plot and test

8年以上 前

解決済み


Ohm's Law
Well its Ohm's law... So V = IR! I will give two of the three values, such as V and I or I and R and you have to return th...

8年以上 前

解決済み


Remove All elements less than 5
Given an input vector x, remove all elements of x less than 5 . Example: Input x = [ 1 2 5 7 3 ] Output y is [ 5 7 ...

8年以上 前

解決済み


Time Expansion
How can you slow down any discrete-time signal? Example Input original signal x. x = [1 2 3 -1 -2 -5 -4] We want t...

8年以上 前

解決済み


Subtract two positive numbers
Given a and b as a string, return b-a without using string to number conversion functions. a and b must to be a same size and b ...

8年以上 前

解決済み


free points
function y = your_fcn_name(x) y = x(1)+x(2); end

8年以上 前

解決済み


Find the sum of n squares
What is the sum of the squares of the first n integers?

8年以上 前

解決済み


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

8年以上 前

解決済み


Convert degrees to radians
Given input in degrees, output to radians

8年以上 前

解決済み


Change the first and last diagonal element of the identity matrix to zero
Starting with the identity matrix, change first and last diagonal element to zero. Example If n=5 A = 0 0 ...

8年以上 前

解決済み


Kelvin to Celsius
Degrees Celsius = degrees Kelvin - 273.15. Given a temperature in Kelvin, return the equivalent temperature in Celsius.

8年以上 前

解決済み


Matrix multiplication across rows
Given matrix m, return matrix n such that, rows of n are result of multiplication of the rows of the input matrix Example ...

8年以上 前

解決済み


Replace values under a limit
For a vector x and number n, the goal is to find every element of x inferior to n and replace it by n. Example x= [ 1 2 3...

8年以上 前

解決済み


Double Deal
*Description* Given an input vector _v_, return the first element as the first output, the second element as the second outpu...

8年以上 前

さらに読み込む