Gelöst


Find the dimensions of a matrix
Just find the number of columns of the given matrix. Example x = [1 2 3 4 5 6] y = 2

18 Tage vor

Gelöst


Balanced number
Given a positive integer find whether it is a balanced number. For a balanced number the sum of first half of digits is equal to...

18 Tage vor

Gelöst


Return a list sorted by number of occurrences
Given a vector x, return a vector y of the unique values in x sorted by the number of occurrences in x. Ties are resolved by a ...

18 Tage vor

Gelöst


Is My Wife Wrong?
Answer the question. (see also <http://www.mathworks.com/matlabcentral/cody/problems/149-is-my-wife-right Problem 149: Is my ...

18 Tage vor

Gelöst


Is it a number?
Determine if input is numeric. If it is,output is 1; if it is not, output is 0.

18 Tage vor

Gelöst


Inner product of two vectors
Find the inner product of two vectors.

18 Tage vor

Gelöst


Get The Opposite Of The Number Without Negative (-) On It
You must get the opposite of the number X without making -X. Hint: You can make it by Subtraction and Multiplication.

18 Tage vor

Gelöst


Fuel-Air Equivalence Ratio (Lambda)
Lambda (λ) is the ratio of actual air-fuel ratio to the stoichiometric air-fuel ratio. λ = 1 is perfect stoichiometry, λ < 1...

18 Tage vor

Gelöst


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

19 Tage vor

Gelöst


MATLAB 101: Count the Evens
Write a MATLAB function that accepts an array of integers and returns the total count of even numbers present in the array. Note...

19 Tage vor

Gelöst


length of a vector
Find twice the length of a given vector.

19 Tage vor

Gelöst


Positive Infinity
Round the array a towards positive infinity

19 Tage vor

Gelöst


Get the area of ​​the square.
Four circles are inscribed in the square ABCD. The perimeter of each circle is *aπ*. <<http://imgfz.com/i/UzgCJut.png>> Gi...

19 Tage vor

Gelöst


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

20 Tage vor

Gelöst


Given area find sides
In a right angle triangle given area 'A' one arm=x, another arm=2x then find the value of x. For example, area A=400 then ...

20 Tage vor

Gelöst


Double all elements in the array
Duplicate all elements in the array

20 Tage vor

Gelöst


Is my wife right?
Regardless of input, output the string 'yes'.

20 Tage vor

Gelöst


Energy Conversion 2

20 Tage vor

Gelöst


varargin
Write a function that can take a diffrent Amount of inputs for every run Which gives you the sum of all Inputs. Example: f(a,b...

20 Tage vor

Gelöst


Back to basics 12 - Input Arguments
Covering some basic topics I haven't seen elsewhere on Cody. Return a value equal to the number of input arguments to the fun...

20 Tage vor

Gelöst


convert matrix to single column
given any matrix, convert it to single column

21 Tage vor

Gelöst


Will there be a new leader?
Simply answer the title.

21 Tage vor

Gelöst


Back to basics - mean of corner elements of a matrix
Calculate the mean of corner elements of a matrix. e.g. a=[1 2 3; 4 5 6; 7 8 9;] Mean = (1+3+7+9)/4 = 5

21 Tage vor

Gelöst


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

21 Tage vor

Gelöst


Zero or hero
A number will be given as an input. You can be hero if it's not zero. (Just for fun)

21 Tage vor

Gelöst


Determine the square root
Determine the square root of the value the user has entered, n.

23 Tage vor

Gelöst


Skip by a multiple
Given an integer create an array of its multiples. Array must have a length of 15

23 Tage vor

Gelöst


easy problem
Find the last element of the array

23 Tage vor

Gelöst


Calculate the average value of the elements in the array
Calculate the average value of the elements in the array

23 Tage vor

Mehr laden