Solved


Crop an Image
A grayscale image is represented as a matrix in MATLAB. Each matrix element represents a pixel in the image. An element value re...

meer dan 4 jaar ago

Solved


Plot Damped Sinusoid
Given two vectors |t| and |y|, make a plot containing a blue ( |b| ) dashed ( |--| ) line of |y| versus |t|. Mark the minimum...

meer dan 4 jaar ago

Solved


Rescale Scores
Each column (except last) of matrix |X| contains students' scores in a course assignment or a test. The last column has a weight...

meer dan 4 jaar 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 ...

meer dan 4 jaar ago

Solved


No Twins?
Write a function that accepts as input a vector and returns the same vector, but retaining only the first occurrence of an eleme...

meer dan 4 jaar ago

Solved


Vector parallel to plane?
Given the coefficients of the equation which defines a plane as follows: ax+by+cz=d, return a boolean indicating whether the 2n...

meer dan 4 jaar ago

Solved


surface of parallelogram
Given 2 vectors of each 3 elements, determine the surface of the parallelogram which can be created from these 2 vectors.

meer dan 4 jaar ago

Solved


The prisoner
"We want information, information, information." "Who are you?" Input can be a string or a number (array).

meer dan 4 jaar ago

Solved


Parallel vectors
Return true or false depending on whether 2 vectors are parallel or not. Vectors can be 2 or 3 dimensional. The origin is not c...

meer dan 4 jaar ago

Solved


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

meer dan 4 jaar ago

Solved


Reverse the input
Given an input (n), produce an output in the reverse order with out using string variables or string function. Example x ...

meer dan 4 jaar ago

Solved


String revert
Revert all words in a sting x for example, if x = 'this is a sentence' then y should be 'sentence a is this'

meer dan 4 jaar ago

Solved


Calculate feeling temperature before climbing a mountain
I sometimes climb a mountain. As is well known, when the altitude becomes 100 (m) higher, the temperature lowers by 0.6 degrees...

meer dan 4 jaar ago

Solved


'Absolute value'
Create a function called own_abs, which is the absolute number entered as the input return value.

meer dan 4 jaar ago

Solved


Adding Numbers
Add the input numbers to the original.

meer dan 4 jaar ago

Solved


currency converter
given a rate of exchange calculate the equivalent units of 100 USD

meer dan 4 jaar ago

Solved


Find indices of diagonal elements
Given a matrix A and a diagonal index d (where 0 indicates the main diagonal and off-diagonals are identified by positive and n...

meer dan 4 jaar ago

Solved


Divisible by 12
Write a function to determine if a number is divisible by 12. Similar to the number six, this can be done by checking for divisi...

meer dan 4 jaar ago

Solved


Divisible by 15
Write a function to determine if a number is divisible by 15. If a number is <http://www.mathworks.com/matlabcentral/cody/proble...

meer dan 4 jaar ago

Solved


longest sequence of nans
In an array return the length of longest sequence of nans for each column. x = [ 2 3 1 2 5 6; nan nan 5 n...

meer dan 4 jaar ago

Solved


Calculate Euler's phi function
Compute the Euler's phi function of a large integer. For more information about this topic please visit: <https://en.wikiped...

meer dan 4 jaar ago

Solved


balance vector
Given a non-empty vector x with integer elements. x shall be called balance vector if one can split the elements of x into two g...

meer dan 4 jaar ago

Solved


means
Calculate the arithmetic, the geometric and the harmonic mean of a given vector (with positive elements) and return them in a ve...

meer dan 4 jaar ago

Solved


Create cosine function out of sine
Please dont use cos(x) directly

meer dan 4 jaar ago

Solved


N-plicate me
Modified version of duplicate and triplicate me. Repeat elements of input vector with given input n Ex: input = [1 2 3 4 5...

meer dan 4 jaar ago

Solved


How many trades represent all the profit?
Given a list of results from trades made: [1 3 -4 2 -1 2 3] We can add them up to see this series of trades made a profit ...

meer dan 4 jaar ago

Solved


Convert decimal to binary and then generate the minimum binary it can with jumbling
input is 10 --> 1010 output should be 3 --> 0011 input 23 --> 10111 output should be 15 --> 01111

meer dan 4 jaar ago

Solved


Annoying population
Every year the number of annoying persons in the office triples Found the population, given a(0) and t

meer dan 4 jaar ago

Solved


Find the outcast
All pairs have the same difference except for one. Output the index of the latter Example: input =[0 1; 1 0; ...

meer dan 4 jaar ago

Solved


Implement zero-based indexing for Matrices
Given an input vector and position (which is zero based) output the value Example: x = [1 2; 4 5] pos = [0 1] value = 5 ...

meer dan 4 jaar ago

Load more