Community Profile

photo

Dyuman Joshi


Last seen: Today
2.372 total contributions since 2018

Mechanical Engineer
IITG'20

Contact

Dyuman Joshi's Badges

  • MATLAB Central Treasure Hunt Finisher
  • Knowledgeable Level 2
  • Thankful Level 1
  • First Answer
  • Computational Geometry I Master
  • Quiz Master
  • Matrix Patterns III Master
  • Explorer
  • First Submission
  • First Review
  • Project Euler I
  • Leader
  • Cody Problems in Japanese Master
  • CUP Challenge Master
  • Scholar

View all

Contributions in
View by

Solved


Iccanobif numbers 1
There are a lot of problems in Cody that deal with Fibonacci numbers (1, 1, 2, 3, 5, 8, 13, 21 etc...) so let's turn things arou...

etwa 15 Stunden ago

Solved


find nth even fibonacci number
1st even fibonacci number=2 ; 2nd even fibonacci number=8 ..

etwa 16 Stunden ago

Solved


Decoding : Find the value
'u' in the function below is of type char or string and 'v' is of type int or double. function y = your_fcn_name( u, v) ...

ein Tag ago

Solved


Circular Primes (based on Project Euler, problem 35)
The number, 197, is called a circular prime because all rotations of the digits: 197, 971, and 719, are themselves prime. The...

ein Tag ago

Solved


Largest Twin Primes
<http://en.wikipedia.org/wiki/Twin_prime Twin primes> are primes p1, p2 = p1 + 2 such that both p1 and p2 are prime numbers. Giv...

ein Tag ago

Solved


Find the next prime number
Find the next prime number or numbers for given n. For example: n = 1; out = 2; or n = [5 7]; out = [7 11]; ...

ein Tag ago

Solved


Wilf-Zeilberger pairs
Take as inputs two functions _F_ and _G_, and two scalar values _n_ and _k_. Test whether the functions are candidates to be a W...

ein Tag ago

Solved


Woodall number
Test whether the input is a Woodall number: <http://en.wikipedia.org/wiki/Woodall_number> _Please do not cheat by simply chec...

ein Tag ago

Solved


Maintain shape of logical-index mask
When using logical indexing into an array, MATLAB returns a vector output. For example, if A = magic(3); mask = logi...

ein Tag ago

Answered
dividing a diagonal matrix into same and different diagonal elements
%This will give the diagonal elements in a separate variable. z = diag(V); %Finding the number of repeated values y = uni...

2 Tage ago | 0

Solved


Clockwise or Counterclockwise
Given a list of 2-d points defining the vertices of a polygon, determine whether these points are sorted clockwise. The input...

3 Tage ago

Solved


Clock Hand Angle 1
Given a time in HH:MM:SS, find the smallest angle (in degrees) between the hour and minute hand

3 Tage ago

Answered
Numerical Methods Problem Solution
In MATLAB, indexing start with 1 and not 0 (as it does in some programming languages). %defining the initial values t0 = 1/sq...

4 Tage ago | 0

| accepted

Solved


Find Elements in Range
Based on a question on <http://www.mathworks.com/matlabcentral/answers/ MATLAB Answers>. Find all the elements of a vector wh...

4 Tage ago

Answered
grouping data in column vector based on another vector
Assuming that sum(A) == numel(C), You can use for loops and cell arrays to get the result X=C; %Assigning C to another variable...

4 Tage ago | 1

Solved


Calculate the average value of the elements in the array
Calculate the average value of the elements in the array

5 Tage ago

Answered
All possible combination based on 2^n but with 1 and -1
y=dec2bin([7 4 2 1])-'0'; y(y==0)=-1; z =[y; flipud(y)] This only works for this particular example. If you want a generalise...

5 Tage ago | 1

Answered
All possible combination based on 2^n
y = flipud(dec2bin(0:2^n-1,n))-'0' %method 1 y = dec2bin(2^n-1:-1:0,n)-'0' %method 2 Choose any of the methods you wi...

5 Tage ago | 1

Answered
Split vector into array with different ranges
a=[22 9 65 814 165 3]; x=a(a<10); y=a(a>=10&a<100); z=a(a>=100); This is assuming that the numbers in x are in the range [0-...

6 Tage ago | 0

Solved


Flip coins

6 Tage ago

Answered
Extend a string within a for loop by values from switch case
No, MATLAB doesn't support Augmented addition, (using +=) However, you can obtain the same result with a variable, x=x+1; and u...

9 Tage ago | 1

| accepted

Solved


Cell Operator *
Please implement operator * for cell: >> {2,3} * 2 ans = 1×4 cell array [2] [3] [2] [3] >> {2,3} * [2 3]...

9 Tage ago

Solved


Prime Letters = Removing
Given a string, remove all the letters which in ASCII Code are prime numbers. For Example: s1 = 'Determine which array e...

10 Tage ago

Solved


Get the combinations
Consider p,q = 2 vectors of same or different length. Get a Output Array which has all the possible combinations of Elements o...

10 Tage ago

Solved


Concatenated roots
Which is the value of this infinte concatenated roots? <<https://s27.postimg.org/i4hkin7xf/Code_Cogs_Eqn.gif>> Note: If ...

10 Tage ago

Solved


Polynomial Evaluation
Create a routine that takes a list of coefficients of a polynomial in order of increasing powers of x; together with a value of ...

10 Tage ago

Answered
Replace nested loops with a matrix
Unew = zeros(nhx, nhy); Unew(2:nhx-1, 2:nhy-1)=U(2:nhx-1, 2:nhy-1)-dt.*(P(3:nhx,2:nhy-1)-P(1:nhx-2,2:nhy-1))./(2*hx); Source

10 Tage ago | 0

Solved


Toeplitz Matrix
For a given square matrix of order n-by-n check whether this is a Toeplitz matrix or not. Return true if it is.

10 Tage ago

Solved


Normalizing a vector

10 Tage ago

Load more