Community Profile

photo

Dyuman Joshi


Last seen: Today Aktiv seit 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

Abzeichen anzeigen

Content Feed

Anzeigen nach

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

etwa 5 Stunden vor | 1

| akzeptiert

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

etwa 5 Stunden vor | 0

Gelöst


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

2 Tage vor

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

2 Tage vor | 0

| akzeptiert

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

3 Tage vor | 1

| akzeptiert

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

3 Tage vor | 1

| akzeptiert

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

3 Tage vor | 0

| akzeptiert

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

5 Tage vor | 0

| akzeptiert

Beantwortet
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

5 Tage vor | 0

Beantwortet
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

6 Tage vor | 2

| akzeptiert

Gelöst


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

9 Tage vor

Gelöst


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

9 Tage vor

Gelöst


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

10 Tage vor

Gelöst


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

10 Tage vor

Gelöst


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

10 Tage vor

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

12 Tage vor | 1

| akzeptiert

Beantwortet
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))

12 Tage vor | 0

| akzeptiert

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

13 Tage vor | 1

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

13 Tage vor | 1

Gelöst


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

13 Tage vor

Gelöst


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

13 Tage vor

Gelöst


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

13 Tage vor

Gelöst


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

13 Tage vor

Gelöst


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

15 Tage vor

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

17 Tage vor | 0

| akzeptiert

Gelöst


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

17 Tage vor

Gelöst


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

18 Tage vor

Gelöst


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

20 Tage vor

Gelöst


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

22 Tage vor

Beantwortet
Error during integration after differentiation
When you declare x as a symbolic variable, g will defined a symbolic variable as well. And as the error states, integral3 requir...

24 Tage vor | 0

Mehr laden