Community Profile

photo

Dyuman Joshi


Last seen: Today Attivo dal 2012

Mechanical Engineer IITG'20

Programming Languages:
MATLAB
Spoken Languages:
English
Professional Interests:
Fluid Dynamics, Aerospace Engineering, Aerodynamics, Computational Fluid Dynamics (CFD)

Statistics

All
  • MATLAB Mini Hack Participant
  • Treasure Hunt Participant
  • 6 Month Streak
  • Pro
  • Strings I Master
  • Cody Challenge Master
  • 5-Star Galaxy Level 1
  • Personal Best Downloads Level 1
  • Cody 10th Anniversary 10-Day Streak
  • Project Euler I
  • Indexing II Master
  • R2016b Feature Challenge Master

Visualizza badge

Content Feed

Risposto
Get back variables out of function inside a for loop
J = [2.5 27 56]; WZ = [12.2 23.2 33]; M1 = 22; I1 = 2600; slope=(J-M1)./(WZ+3750-I1) [minval,minid]=min(slope) Jval=J(mi...

circa 9 ore fa | 1

Risposto
How to check if an integer is above or below 0.5 continuously ?
If you have numeric data, you can do something like this - x=0:0.01:3; y=abs(sin(pi*x)); %original plot plot(x,y,'k-') hol...

1 giorno fa | 1

| accettato

Risposto
how to change decimal point place
To answer your queries - format long z=3.261505126953125; z1=z*1e15 This is the best output you will get with double precisi...

1 giorno fa | 0

Risolto


Dyck words
A Dyck word can be considered as a string of n X's and n Y's arranged to have at least as many X's in an initial segment of the ...

3 giorni fa

Risposto
How to increase yticklabel?
Change the y-limits ylim([1 5]) %or more than 5, whatever value is preferable

4 giorni fa | 0

| accettato

Risposto
How to delete a row if the value of a certain cell in a table is less than the first cell? and then carry out the same condition for the cell after it again.
%random data for example y=rand(10,2) %index of rows that don't satisfy the constraint idx=find(y(2:end,2)<=y(1,2))+1 %delet...

4 giorni fa | 1

| accettato

Risposto
I want make a (t,h)graph. But I can 't solve a problem ㅜㅜ.
- y1 is not defined in the code - If you want to perform vector operation using function handle, use element wise operations f...

4 giorni fa | 1

| accettato

Risposto
Question about searching a number in file suffix
d=5; s=sprintf('file_%d.txt',d) %command for reading the file fileread(s)

5 giorni fa | 0

| accettato

Risposto
Get both values and indices
X = [4; 5; 1; 0; -7; 3; 0; 1; -4]; row = find(X>0 & X<6) val = X(row)

6 giorni fa | 0

| accettato

Risposto
How to multiple a vector by a scaler?
It still applies, regardless of the size of the array m=rand(1,200) mat=m/0.279

6 giorni fa | 0

Risposto
How can we insert a row matrix without altering the rest of the values?
A = reshape(1:15,3,5)' %pre-allocation y=zeros(size(A,1)*2,size(A,2)); y(1:2:end,:)=A; y(2:2:end,:)=A*10

7 giorni fa | 2

| accettato

Risolto


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

10 giorni fa

Risolto


Determine if input is a perfect number
A perfect number occurs whent the sum of all divisors of a positive integer, except the number itself, equals the number. Examp...

10 giorni fa

Risolto


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

11 giorni fa

Risolto


Calculate a modified Levenshtein distance between two strings
Inspired by the Cody problem found here. The Levenshtein distance is a charater-based string metric used to measure the differe...

11 giorni fa

Risolto


Calculate the Levenshtein distance between two strings
This problem description is lifted from http://en.wikipedia.org/wiki/Levenshtein_distance. The Levenshtein distance between two...

12 giorni fa

Risposto
apply if-else-statement to a 3D matrix
The syntax for comparing multiple conditions is individualistic in MATLAB, i.e. you have to write code for each condition indivi...

13 giorni fa | 1

| accettato

Risposto
How i can concatenate the binary values of each two cell arrays into one binary value cell array?
as = {'1011','0001','0100','0110','1111','0111'}; str=strcat(as(1:2:end),as(2:2:end))

13 giorni fa | 0

| accettato

Risposto
Format x and y axis
use xticks to specify the points (years in this case) you want

14 giorni fa | 1

Risposto
Invalid Array Indexing when trying to plot the function
You forgot operation signs in a few places ((O^(1-n))./(4^n*a*x*pi^(1-n)*p))*(d_i^(2*n+1)+2*a(2*n+1)(4*O./pi)^(n)*t)^((2*n-1)....

14 giorni fa | 1

Risolto


Sum the unitary divisors of a number
Cody Problems 1933 and 46898 deal with , the sum of divisors function. This problem deals with , the sum of unitary divisors fun...

14 giorni fa

Risolto


Count the unitary divisors of a number
Cody Problem 56738 asks for a list of the unitary divisors of a number. For this problem, write a function to count the unitary ...

14 giorni fa

Risolto


List unitary divisors of a number
A unitary divisor of a number divides and satisfies gcd(,) = 1. For example, 9 is a unitary divisor of 18 because gcd(9,2) = ...

15 giorni fa

Risolto


Cross ("+") flag returns
Given two numbers, [m, n], return a matrix of size m x n which has all elements of the centre column and centre row set as 1, an...

15 giorni fa

Risolto


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

17 giorni fa

Risposto
specific RGB color in plot3
A=randi(100,10,3); %Marker size 5 is a bit small for a good visual plot3(A(:,1), A(:,2), A(:,3), 'LineStyle', 'none', 'Marker'...

18 giorni fa | 0

| accettato

Risolto


return row and column indices given 2 values which define a range
Inspired by problem http://www.mathworks.co.kr/matlabcentral/cody/problems/856-getting-the-indices-from-a-matrice Inputs: - matr...

18 giorni fa

Risolto


Acid-Base Chemistry: Which side of the reaction is more favorable?
In an Acid-Base reaction, there is always going to be an acid, a base, a conjugate acid, and a conjugate base. When provided wit...

19 giorni fa

Risolto


GJam March 2016 IOW: Cody's Jams
This Challenge is derived from <http://code.google.com/codejam/contest/8274486/dashboard GJam March 2016 Annual I/O for Women Co...

21 giorni fa

Risolto


Basics - not so easy division
Please make a function whcih divides x/y, but pay attention for some exceptions with NaN,0,Inf. Sometimes return "ERROR" instead...

24 giorni fa

Carica altro