Community Profile

# Dyuman Joshi

##### Last seen: Today
1.572 total contributions since 2018

Mechanical Engineer
IITG'20

View all

Contributions in
View by

Solved

Find unique number in input
Find value that occurs in odd number of input elements.

alrededor de 2 horas ago

Solved

Crunch that matrix!
You are given an M x N matrix. Write a script that will compress this matrix into an M x (N/3) matrix, where each of the terms ...

alrededor de 2 horas ago

Solved

Replace values out of an interval with the lower or upper values
For a vector or matrix X and an interval [n1,n2], the function replace every element of x inferior to n1 by n1, and every elemen...

alrededor de 2 horas ago

Solved

Select every other element of a matrix
Write a function called outMat = odd_idx( myMat ) that takes a matrix, myMat, as input argument and returns a matrix th...

alrededor de 2 horas ago

Solved

Colon operator of two vectors
You are given two vectors of equal length: VecStart, VecEnd Each vector contain a set of integers, where VecEnd(j)>=VecStar...

alrededor de 2 horas ago

Solved

Odd row
Create a row 'y' with odd numbers where the potential maximum number is given by 'x' and the space between them by 'm'. The firs...

alrededor de 2 horas ago

Solved

you are given a vector x. you have to make an output vector y with zeros padded between every adjacent values of x. e.g x: ...

alrededor de 2 horas ago

Solved

Repeat the entries of the vector to their reference times in the vector.
e.g for input x: [ 7 3 9 5] output y: [ 7 3 3 9 9 9 5 5 5 5]

alrededor de 3 horas ago

Solved

Calculate the Hamming distance between two strings
Inspired by a similar Cody problem found <http://www.mathworks.com/matlabcentral/cody/problems/93-calculate-the-levenshtein-dist...

alrededor de 3 horas ago

Solved

Find last zero for each column
Given a numeric array of arbitrary size, return the row index of the last zero for each column. If a column contains all nonzero...

alrededor de 3 horas ago

Solved

Calculate vowel / consonant ratio of a string
Given a string, calculate the ratio of vowels to consonants for example : x = 'This is a very good Day!' y = 7/11

alrededor de 3 horas ago

Solved

Find difference of two set as per example
Find difference of two set as per example Say x=[1:5] and y=[2:6] then, set_diff(x,y) should give output[1] and set_diff(y...

alrededor de 4 horas ago

Solved

Find the mode of the given input
Find the statistical <http://en.wikipedia.org/wiki/Mode_(statistics)/ mode> of the given input. Example: If X is matr...

alrededor de 4 horas ago

Solved

Check capital letters
Check if each first letter of a string is a capital letter. for example: 'This Is Ok' gives a true answer and 'This Is not Ok' ...

alrededor de 4 horas ago

Solved

Union of two set decreasing order
Union of two set decreasing order Say, x=[1 2 5] and y=[5 7 8] then answer must be [8 7 5 2 1]

alrededor de 4 horas ago

Solved

i forgot to use capital I
When referring to yourself you should write "I" (capital) and not "i". So correct the input string x, but be aware that other u...

alrededor de 4 horas 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'

alrededor de 4 horas ago

Solved

Reduce the logic
We have three logical input, x,y and z. The output is: y = ((x&y)|z)&((z|x&y)|(z&y|x))|((x&z)|z)&((y|x&z)|(z&x|y))|(x|y|z) ...

alrededor de 4 horas ago

Solved

time difference
The arrays x and y contain time values in the form of: x = [hours minutes seconds] Create the output z which contains the...

alrededor de 5 horas ago

Solved

x is a vector of votes, e.g. x=[1 2 3 2 2 1 3 2 1 2 2 2 2], who is the winner? 1,2,3?

alrededor de 5 horas ago

Solved

Related Vectors
I have two vectors A & B. If the values in vector A is zero then the corresponding value in vector B should be zero. Example:...

alrededor de 5 horas ago

Solved

Largest Prime Number
Given a matrix X, find the largest prime number in X.

alrededor de 5 horas ago

Solved

Find max prime number
Given integer number n. Find the max prime number (mpn) that smaller than or equal to n. Example: n = 10 --> mpn = 7

alrededor de 5 horas ago

Solved

Calculate numerical integration.
x=0:0.01:1 y=@(x)x.^2 Using given two inputs(x and y), conduct numerical integration in x. (hint: trapz)

alrededor de 6 horas ago

Solved

Solve system of equation!
Given provided system of equation, and find x and y. System of equation can be expressed as each term's coefficient. For exam...

alrededor de 6 horas ago

Solved

Solve the system of linear equations
4x - 2y +6z=8 2x + 8y +2z=4 6x + 10y +3z=0 Input is each coefficient of polynomial. For example, a=[4 ...

alrededor de 6 horas ago

Solved

Extract a specific part of matrix!
In the given matrix, extract element that have odd rows and column number. For example A=[1 4 2 3 5] B=extractodd(A);...

alrededor de 6 horas ago

Solved

Weighted moving average
x1=[1 2 1]; y1=[1 2 2 4 5 6 6 8]; Make function for weighted moving average. z(i)=(x1(i)*y1(i)+x1(i+1)*y1(i+1)+x1(i+2)*y1...

alrededor de 6 horas ago

Solved

Where is 1?
There is a 3d matrix [A] that consist of many zeros and only one. A=zeros(100,100,100); i=randi(100); j=randi(100); ...

alrededor de 6 horas ago

Solved