Solved


Combine the digits to output numbers
input could be of any length e.g. 1. in1 = 1 in2 = 2 output = 12 2. in1 = 2 in2 = 1 in3 = 0 output = 210

5 years ago

Solved


Create a code for XNOR
Given two inputs, output XNOR of those two

5 years ago

Solved


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

5 years ago

Solved


Area of rhombus
Calculate the rhombus area

5 years ago

Solved


Eye Squared
For a positive integer |n| create the identity matrix with |n| elements. In case it is not possible to produce an identity ma...

5 years ago

Solved


Separate even from odd numbers in a vector - without loops
*Without using loops*, rearrange a vector of integers such that the odd numbers appear at the beginning, and even numbers at the...

5 years ago

Solved


Diagonal Pattern
For a positive integer |n|, return an |nXn| matrix |mat| such that the value of each element in row |i| and column |j| is given ...

5 years ago

Solved


Add a vector to a matrix
Given a matrix |mat| of size |mXn| and a row vector |v| of size |1Xs|, return a matrix with |m+1| rows that conatains |mat| over...

5 years ago

Solved


Diagonal Pattern
For a positive integer |n|, return an |nXn| matrix |mat| such that the value of each element in row |i| and column |j| is given ...

5 years ago

Solved


Find the average of a random sequance
Write a function that generates random integers within a loop, and calculates the mean of the positive numbers only. At each ...

5 years ago

Solved


Approximate the cosine function
Without using MATLAB trigonometric functions, calculate the cosine of an argument |x| to a precision of |0.0001| *Hint:* You ...

5 years ago

Solved


Separate even from odd numbers in a vector - with a loop
*Using a loop*, rearrange a vector of integers such that the odd numbers appear at the beginning, and even numbers at the end. T...

5 years ago

Solved


How many days in a month?
Return the number of days in a given month in 2017. If the input is not a valid month number, return -1. Examples: Input...

5 years ago

Solved


Totally zero matrix

5 years ago

Solved


Totally one matrix

5 years ago

Solved


Is the matrix contain x?

5 years ago

Solved


Rows in a matrix

5 years ago

Solved


Absolute value of x

5 years ago

Solved


Reverse the text!

5 years ago

Solved


Sort a vector

5 years ago

Solved


Spiral matrix

5 years ago

Solved


Decide whether x is prime

5 years ago

Solved


triangle

5 years ago

Solved


Decide whether n is prime

5 years ago

Solved


eukleides triangle

5 years ago

Answered
While loop for Taylor Series to approximate e^2.7
n = 0; diff=1; x=2.7; while (diff>= 1e-6) terms(n+1) = (x^(n)/factorial(n)); Exp = sum(terms); n=n+1; diff = abs((exp(2...

5 years ago | 1

| accepted

Answered
Two part question: Labeling a row in a matrix and finding certain values
Normally, you should not establish new variables but just index. DraftMatrix = [1:20;randi([50,90],1,20);randi([0,8],1,20)]; a...

5 years ago | 0

Answered
How to generate a list of random ID which can later be used instead of participant name?
Yes, a strictly numerical format would be much easier. a=[randperm(10,2)+47;randperm(26,2)+96]; a=char(a(:)');

5 years ago | 0

Load more