Community Profile

photo

Dyuman Joshi


Last seen: Today
1,227 total contributions since 2018

Mechanical Engineer

Contact

Dyuman Joshi's Badges

  • MATLAB Central Treasure Hunt Finisher
  • Knowledgeable Level 1
  • First Answer
  • Project Euler I
  • Leader
  • Cody Problems in Japanese Master
  • CUP Challenge Master
  • Scholar
  • Introduction to MATLAB Master
  • Community Group Solver
  • Draw Letters
  • Speed Demon
  • Creator
  • Commenter
  • Promoter

View all

Contributions in
View by

Solved


Find the longest sequence of 1's in a binary sequence.
Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...

16 hours ago

Solved


Funny problems
Generate the following vector: if n=1 then q=1; elseif n=2 then q=[2 2 1]; elseif n=3 then q=[3 3 3 2 2 1]; ... end

17 hours ago

Solved


Find a common vertex
First input is T, a triplet list of indices. Second input is i, a single index (positive integer). The goal of this function is ...

17 hours ago

Solved


Reepeating numbers in array
Repeating numbers in array In = [1 0 0 0 2 0 0 0 3 0 0 0 0 0 5 0 0 0 0]. Out = [1 1 1 1 2 2 2 2 3 3 3 3 3 3 5 5 5 5 5].

18 hours ago

Solved


Convert Fahrenheit to Kelvin
Convert the value f in Fahrenheit to Kelvin

18 hours ago

Solved


How to find the position of an element in a vector without using the find function
Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for.

18 hours ago

Solved


Check if integer is a prime number
Check if integer i is a prime number. Returns logical true '1' if it is.

18 hours ago

Solved


Powers Of
Fill the vector with powers of 2, so that vector(1) is 2^1, vector(2) is 2^2, etc. Stop with vector(10). Complete the function ...

19 hours ago

Solved


Matrix operation

19 hours ago

Solved


Swap

19 hours ago

Solved


String count
given a string 'str', count the number of the followings - * letters * digits * white space * capital letters * smal...

19 hours ago

Solved


Find the sequence
Find the nth number of a sequence. Check the test suite to determine the sequence. * hint: it is closely related to familiar ...

22 hours ago

Solved


Find the centroid of triangle
Imagine that you want to calculate the *centroid* of some _triangles_ given in matrix form. First the coordinates of the vertice...

22 hours ago

Solved


How many Christmas presents under the tree?
For many families at Christmas, each family member gives 1 present to every other family member. The main exception is that chil...

23 hours ago

Solved


Matrix multiplication across rows
Given matrix m, return matrix n such that, rows of n are result of multiplication of the rows of the input matrix Example ...

23 hours ago

Solved


Tribonacci Sequence
Generate the tribonacci sequence upto n

23 hours ago

Solved


$10,000 sequence
Find the nth term of the Hofstadter–Conway sequence and its chaotic cousin. <https://en.wikipedia.org/wiki/Hofstadter_sequenc...

1 day ago

Solved


Effective Nuclear Charge

1 day ago

Solved


Size

1 day ago

Solved


NaN

1 day ago

Solved


Real

1 day ago

Solved


imaginary

1 day ago

Solved


Integer Sequence - 1
Check the test suite to determine the relationship between input integer scalar and output integer scalar.

2 days ago

Solved


Narcissistic number ?
Inspired by Problem 2056 created by Ted. In recreational number theory, a narcissistic number is a number that is the sum of ...

2 days ago

Solved


S-T-R-E-T-C-H I-T O-U-T
You will be given a row of numbers (x), and a single number (n). Your job is to write a script that will stretch out the row of...

2 days ago

Solved


Getting logical indexes
This is a basic MATLAB operation. It is for instructional purposes. --- Logical indexing works like this. thresh = 4...

2 days ago

Solved


union without repitition
Let a = [9 9 9 9 9 9 8 8 8 8 7 7 7 6 6 6 5 5 4 2 1] b = [1 1 1 3 3 3 3 3 4 4 4 4 4 10 10 10] Output should be [9 8...

2 days ago

Solved


ascii value
let input='a' output=97

3 days ago

Solved


most frequent character
Obtain the most frequent character. For example, s='balaram'; output='a'; If there is a tie between letters, return t...

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

3 days ago

Load more