Solved


Determine given vector is even or odd
Find the numbers of the input vector is odd or even then replace even with 1 and odd with 0 Example x = [ 3 3 4 6 1] ...

meer dan 4 jaar ago

Solved


index of n^2 in magic(n)
input=5 magic matrix 17 24 1 8 15 23 5 7 14 16 4 6 13 20 22 10 ...

meer dan 4 jaar ago

Solved


Replace odd number in given matrix by zero
Replace the odd numbers in a given matrix with zero. Example A = [ 17 24 1 8 15 23 5 7 ...

meer dan 4 jaar ago

Solved


Rainbow matrix
Create a "rainbow matrix" as described in the following examples Input = 3 Output = [ 1 2 3 2 3 2 ...

meer dan 4 jaar ago

Solved


Add one raw in given matrix as shown in example
*Add one raw in given matrix as shown in example* A=[1 0;0 1]; X=[3 5]; Answer must be:[1 0; 0 1;3 5]

meer dan 4 jaar ago

Solved


Get 1-4-3-4-4
Get the value of the indices in the title and assign it to an array

meer dan 4 jaar ago

Solved


Repeat The Components of Matrix
Repeat The components of a matrix so that the size of the output matrix is double to input matrix and components are repeated ne...

meer dan 4 jaar ago

Solved


Initialize a Natural Number matrix.
Given length of matrix initialize a matrix consisting of natural numbers from 1 to n: n = 10; x = [ 1 2 3 4 5 6 7 8 9 10]; ...

meer dan 4 jaar ago

Answered
what is wrong with this code?
the variable temp1 is not single value. it is a vector so need to check the equation

meer dan 4 jaar ago | 0

Solved


Volume of this donut
Given hole diameter a, and outermost diameter b, determine the volume y of the resulting donut.

meer dan 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='***'

meer dan 4 jaar ago

Solved


Replace every 3rd element in a vector with 4
x is a vector of undetermined length You are to replace every 3rd element with the number 4, example: x = [11 23 34 43 2 3...

meer dan 4 jaar ago

Solved


Back to Basics - Find no. of elements in a matrix?
Let A be a m*n matrix. Find the total no. of elements in A ? (Hint - formula based) A = [1 2 3;4 5 6]; output = 6

meer dan 4 jaar ago

Solved


Product of Array
Given an array of numbers. Get the product of the array.

meer dan 4 jaar ago

Solved


find the roots of a quadratic equation
for e.g x = [ 2 -1 -3] y = [1.5 -1]

meer dan 4 jaar ago

Solved


Matlab Basics - Switching Assignments
Switch assignments for variables x and y, for example start with x = 1 and y = 3 end with y = 1 and x = 3 Do NOT simply r...

meer dan 4 jaar ago

Solved


Remove the Zero
Given an array n, remove all zeros

meer dan 4 jaar ago

Solved


Matlab Basics - Rounding III
Write a script to round a large number to the nearest 10,000 e.g. x = 12,358,466,243 --> y = 12,358,470,000

meer dan 4 jaar ago

Solved


Help the Patriots get to the Super Bowl
Given a football by the Patriots, return it to them with 2 psi less air in it. (The original psi is passed as a number to the...

meer dan 4 jaar ago

Solved


Box!
Given a box, find the volume of the cube. With each side = a.

meer dan 4 jaar ago

Solved


Determine the mean of matrix
Determine the mean of matrix without using mean function Hint: use simple algorithm

meer dan 4 jaar ago

Solved


Find nearest prime number less than input number
Find nearest prime number less than input number. For example: if the input number is 125, then the nearest prime number whi...

meer dan 4 jaar ago

Solved


Solve a System of Linear Equations
*Example*: If a system of linear equations in _x&#8321_ and _x&#8322_ is: 2 _x₁_ + _x₂_ = 2 _x₁...

meer dan 4 jaar ago

Solved


Getting the row and column location from a matrix
This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to get <http://www.mathwo...

meer dan 4 jaar ago

Solved


Perimeters/Circumference
Given an array. Determine whether the perimeter is of a circle, triangle or square. Then calculate the perimeter.

meer dan 4 jaar ago

Solved


Hardy-Ramanujan number
Find the first Hardy-Ramanujan number.

meer dan 4 jaar ago

Solved


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

meer dan 4 jaar ago

Solved


Speed of car travelling x meters in y seconds
What is the speed of a car if the car travelled x meters in y seconds? Supply the answer in m/s.

meer dan 4 jaar ago

Solved


prime test 2
enter the only non prime,non composite number

meer dan 4 jaar ago

Solved


Area of square
Find the area of a square whose diagonal length is given as x.

meer dan 4 jaar ago

Load more