已解决


find the mean of all elements in a matrix
given a matrix, just find the mean of all elements in the matrix

10 months 前

已解决


Find remainder when x is divided by 3
Find remainder when x is divided by 3

10 months 前

已解决


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

10 months 前

已解决


Matlab Basics II - Log and natural log
Write a function that calculates the difference between the log and natural log of a vector, to two decimal places example: ...

10 months 前

已解决


ZigZag matrix with reflected format
ZigZag MATRIX with REFLECTED format. We have only input x. We have to create a matrix in the following pattern. input n=5...

10 months 前

已解决


check whether a number is a pentatope number
<https://oeis.org/A000332>

10 months 前

已解决


Summing Digits within Text
Given a string with text and digits, add all the numbers together. Examples: Input str = '4 and 20 blackbirds baked in a...

10 months 前

已解决


Mandelbrot Numbers
The <http://en.wikipedia.org/wiki/Mandelbrot_set Mandelbrot Set> is built around a simple iterative equation. z(1) = c z...

10 months 前

已解决


Read a column of numbers and interpolate missing data
Given an input cell array of strings s, pick out the second column and turn it into a row vector of data. Missing data will be i...

10 months 前

已解决


construct matrix with identical rows
Input a row vector such as x=1:10. Now we need to construct a matrix with L rows,of which every row vector is a copy of x. E...

10 months 前

已解决


Cody Matlab Version
What is the current Cody Matlab Release? *Output:* string *Examples:* '(R2012a)' or 'R2012a' Hint: We have mo...

10 months 前

已解决


Special matrix
Make a square matrix with this shape. For n=4 M = 1 1 0 0 1 0 1 0 0 1 0 ...

10 months 前

已解决


Linear system of equations
Solve the system of equations in three variables.

10 months 前

已解决


Nth root
Nth root of a number x

10 months 前

已解决


Sum of cubes
Write a program to determine sum of cubes of first n odd numbers.

10 months 前

已解决


Create a constant offset.
Add a constant offset to an array. Example a = [1 3 5 9] offset = 2 y = [3 5 7 11]

10 months 前

已解决


Roots of a quadratic equation.
Calculate the roots of a quadratic equation, given coefficients a, b, and c, for the equation a*x^2 + b*x + c = 0.

10 months 前

已解决


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

10 months 前

已解决


Display negative numbers
Given array,x, display all the negative numbers and display output as y. Example x=[1 -2 3 -4] , output is y=[-2 -4].

10 months 前

已解决


Energy of an object
Calculate the total mechanical energy of an object. Total Energy= Potential energy + Kinetic energy P.E.=m*g*h K.E.=1/2...

10 months 前

已解决


Convert a vector into numbers
Suppose a vector x = [ 1 2 4 7] is given. You have to convert this vector into string number y = '1247'. Examples x = [ 1...

10 months 前

已解决


Are you in XY plane?
Take a point P as an input position Vector (x,y,z). If you are in XY plane, return 1 as an output otherwise return 0. Example...

10 months 前

已解决


Multiply Column
Given two input, one matrix and one scalar number For example A is a matrix given A = [ 1 2 2 5 2 5 2 3 4 6...

10 months 前

已解决


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

10 months 前

已解决


imaginary results
Return the value of the imaginary number i to the power of input argument n.

10 months 前

已解决


Golden ratio
Calculate the golden ratio. Hint: phi^2 = phi + 1.

10 months 前

已解决


Replace 0 to NaN!
In given matrix A=[1 nan nan; 2 2 nan; nan nan 1]; replace NaN to 0. Use matrix A as a input.

10 months 前

已解决


Change matrix to vector
Vector is a matrix whose size is 1 x n or n x 1. Change matrix to vector. x = 4 3 5 1 ...

10 months 前

已解决


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

10 months 前

已解决


Convert yards to feet
The goal of this script is to convert a value given in yards to feet.

10 months 前

加载更多