Solved


Create a random logical vector of N elements of which M are true.
Your task for tomorrow is to create a random binary (logical) vector of N elements of which M are true. For example: ran...

ungefär 6 år ago

Solved


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

ungefär 6 år ago

Solved


Size of this cup?
The given vector has diameter of the cup in mm sampled at micrometer increments in depth from top to bottom, need output in cc a...

ungefär 6 år ago

Solved


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

ungefär 6 år ago

Solved


A quadrant matrix
Write a function called quadrants that takes as its input argument a scalar integer named n. The function returns Q, a 2n-by-2n ...

ungefär 6 år ago

Solved


Concatenate strings
concatenate a variable number of input strings to produce one outputstring

ungefär 6 år ago

Solved


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

ungefär 6 år ago

Solved


Rotate matrix by -90 degrees
Rotate a Matrix by -90 degrees Example: X = 1 2 3 4 5 6 7 8 9 output = 7 4 ...

ungefär 6 år ago

Solved


vector to string
Determine what the ASCII characters spell out. Example: input = [ 72 73 71 72] output = 'HIGH'

ungefär 6 år ago

Solved


UICBioE240 problem 1.1
Remove the middle row from a matrix, assuming # of rows is odd. So if A = [ 1 2 3; 4 5 6; 7 8 9] the...

ungefär 6 år ago

Solved


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

ungefär 6 år ago

Solved


Change string to number
Change given string to number. (hint: there is already function) Changing from ['1234'] to [1234] is one of example

ungefär 6 år ago

Solved


Matrix FUN
Given a Matrix M, find out the number of elements of matrix that are divisible by 3. M = [1 2 3;4 5 6;7 8 9]; ou...

ungefär 6 år ago

Solved


Test
Answer the question and the correct answer write in vector. Only one answer is correct. 1a Yes 1b No 1c No 1d No ...

ungefär 6 år ago

Solved


Calculate some equation
Using given inputs x and z, make two outputs that are y1 = (xz)/(x/z)^2 + 14x^2 - 0.8z^2 y2 = x^z - z^x + (x/z)^2 - (z/x...

ungefär 6 år ago

Solved


Unit conversion
Convert x degree Celsius to y degree Fahrenheit.

ungefär 6 år ago

Solved


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

ungefär 6 år ago

Solved


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

ungefär 6 år ago

Solved


String substitution, sub problem to cryptoMath
This is a sub problem related to this problem: <http://www.mathworks.com/matlabcentral/cody/problems/621-cryptomath-addition>...

ungefär 6 år ago

Solved


Find the maximum two numbers of every column of a matrix
Find the maximum two numbers of every column of a matrix. Example: If we input a matrix A = [ 1 2 4 6 0 3 ...

ungefär 6 år ago

Solved


Calculate the Number of Sign Changes in a Row Vector (No Element Is Zero)
For a row vector: V=[7 1 2 -3] there is one sign change (from 2 to -3). So, the function you write must return N=1. F...

ungefär 6 år ago

Solved


Vector of numbers divisible by 3
* Input(n) - any integer * Output(v) - vector with numbers divisible by 3(exept 0) starting from n to 0 Examples: * n=6...

ungefär 6 år ago

Solved


Nth root of a number
Given an input and a number N, find the Nth root of the number(s)

ungefär 6 år ago

Solved


Perimeter of a semicircle
Given the diameter d, find the perimeter of a semicircle

ungefär 6 år ago

Solved


Second Diagonal
Transpose the matrix from it's second diagonal.

ungefär 6 år ago

Solved


Calculate time taken by light to reach earth surface
We know the time(seconds) taken by light to reach surface of earth. What if the distance varies yearly or source of light moves ...

ungefär 6 år ago

Solved


basic matrix operations: rotate and find sum of diagonal elements of the resultant matrix
For given input matrix a, rotate it by 90 degrees and find the sum of the diagonals. Example: Input: a = 1 ...

ungefär 6 år ago

Solved


World Cup 2018 Prediction!
Which team will be the winner?

ungefär 6 år ago

Solved


What score did they give?
Your task in this problem is to figure out the most recent score, |S|, submitted. <<https://upload.wikimedia.org/wikipedia/...

ungefär 6 år ago

Solved


Prime Product
My professor has given a sequence of N numbers as a1, a2, ..., aN and asked me to find the smallest possible value of ai * aj su...

ungefär 6 år ago

Load more