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
  • Knowledgeable Level 5
  • 6 Month Streak
  • Number Manipulation I Master
  • Sequences And Series I Master
  • 5-Star Galaxy Level 1
  • Personal Best Downloads Level 1
  • Strings I Master
  • Cody Challenge Master
  • Cody 10th Anniversary 10-Day Streak
  • Project Euler I

Visualizza badge

Content Feed

Risposto
Index exceeds the number of array elements. Index must not exceed 1.
You can do that without the loop W = 10000; S = 40; AR = 7; cd0 = 0.005; k = 1 / pi / AR; hv = 6:-.01:0; cdminp = 4*cd0...

circa 2 ore fa | 0

Risposto
bring zeros on top of a matrix
Assuming elements are sorted row-wise A=[4 5 0 6;3 0 5 7;0 3 4 6]; "the answer needs to use loops" B=A'; C=B(:)'; for ix = ...

circa 6 ore fa | 0

Risolto


GJam 2017 Kickstart: Vote (Large)
This Challenge is derived from <http://code.google.com/codejam/contest/6304486/dashboard#s=p1 GJam 2017 Kickstart Vote>. This is...

circa 6 ore fa

Risposto
How can we reduce the execution time of this whole code?
I am aware that pre-allocation speeds up the process, but pre-allocating an empty matrix doesn't reserve any memory for the oper...

circa 8 ore fa | 1

Risolto


Knight Moves?
One of my favorite games are chess. Let’s do something with chess. If you don’t know chess, that’s completely fine. You can stil...

circa 9 ore fa

Risolto


GJam 2017 Kickstart: Vote (Small)
This Challenge is derived from <http://code.google.com/codejam/contest/6304486/dashboard#s=p1 GJam 2017 Kickstart Vote>. This is...

circa 21 ore fa

Risolto


Magic!
Check whether the input matrix is a normal magic square: http://en.wikipedia.org/wiki/Magic_square Output the logical value tr...

circa 22 ore fa

Risposto
Find the value from the integral equation
You can solve it symbollically (This requires symbolic toolbox) syms w m0 A=(cos(4*w)*cos(4*w)+1)/(1+exp(w-m0)); eq=int(A,w,-...

circa 24 ore fa | 1

Risolto


Number of cyles and fixed points in a permutation
A permutation can be constructed from one or more sets of elements in cyclic order. A permutation in a single row vector form ...

2 giorni fa

Risolto


Best Square-Shaped Grid for Subplot
If you have x number of plots, find the optimum 'm' number of rows and 'n' number of columns for subplotting where the overall f...

2 giorni fa

Risposto
Which is the most accurate way to solve these equations?
"Which is the most accurate way to solve these equations?" Generally, the most accurate way to solve any equation is analytical...

2 giorni fa | 1

| accettato

Risolto


Find the point of intersection of tangents.
Given two points on a conic, find the point of intersection of the corresponding tangents. The conic is given in Cartesian coor...

2 giorni fa

Risposto
How can I use one row having full data whose elements repeat [like A(:,1) below] to query another data of the same type but having some elements missing?
A = [0 10; 0 20; 0 25; 1 30; 1 40; 2 50; 2 60; 3 70; 3 80; 4 90; 4 100; 5 10; 5 20; 5 35]; B = [0 110; 0 210; 1 300; 1 405; 2 6...

2 giorni fa | 1

Risolto


Script file size
Determine the file size of a script, "function.m". This is the base scoring method for Cody and the Matlab Contests. A method ...

4 giorni fa

Risolto


Verify Law of Large Numbers
If a large number of fair N-sided dice are rolled, the average of the simulated rolls is likely to be close to the mean of 1,2,....

5 giorni fa

Risolto


Generate Hadamard Matrix
In mathematics, a Hadamard matrix, named after the French mathematician Jacques Hadamard, is a square matrix whose entries are e...

5 giorni fa

Risposto
Taking one dimension of a matrix
in = rand(972,48,128); out = in(1,:,:); size(out)

6 giorni fa | 0

| accettato

Risposto
Attempt to grow array along ambiguous dimension. it happens when N,M are smaller then the total of A,B. can I make my code work for any value of N,M? if so how would I do that
The number of elements in C is greater than the total number of elements pre-allocated in res. You can not put 22 elements in 2...

7 giorni fa | 0

| accettato

Risposto
What is the function of this button? Where is the corresponding official document link?
The function of the button is to generate Fixed-point data via a dialog box. I don't know if there is a documentation specifica...

7 giorni fa | 0

Risposto
Error using * Dimension do not match
As you can see here, Jac is 2x2, thus inv(Jac) will also be 2x2 and f is 1x2. The multiplication of 2x2 with 1x2 is not possible...

7 giorni fa | 0

| accettato

Risposto
Homogenuous differential equation with conditions
j=22; y=[-8.2,0.6]; As you can see below, you are using non integer values as an index, which is not possible. i = -8.2:j+0.6...

8 giorni fa | 0

Risposto
How do I plot the different elements of a matrix in a single plot?
for t = 0:1:100 omega1 = 0.02*cos(0.15*t) + 0.03*sin(0.15*t); omega2 = 0.03*cos(0.15*t) - 0.02*sin(.15*t); omega3...

9 giorni fa | 0

Risposto
Generate array of sequence pairs without iteration
A combination of repelem and repmat - M=13;N=8; %corresponding arrays m=1:M;n=1:N; out1=[repelem(m',N,1) repmat(n',M,1)] ou...

10 giorni fa | 0

| accettato

Risposto
How to store values in matrix form for differn iteration
Use reshape() %in case of row array x=1:3500; y=reshape(x,7,500)' %in case of column array a=(1:3500)'; b=reshape(a,7,500)...

10 giorni fa | 0

| accettato

Risposto
Convert Equastion to Matlab Code
Transfer Function Model Example for reference

11 giorni fa | 1

Risposto
How do i plot many short horizontal lines when a value is available?
%random data A=randi(100,1,10) B=randi(100,1,12) %You can not use max, because A has less elements than B elements N=min([nu...

11 giorni fa | 0

Risposto
Convert numeric 2D array to array of orders of values
I couldn't think of a vectorized solution (yet), so here is the for loop approach. If and when I find a vectorized solution, I ...

12 giorni fa | 0

| accettato

Risolto


feeling VERY lucky?
Just like Matthew's problem 2793 and Edward's problem 2872 (guess the number that Cody is thinking) but now you must solve it in...

13 giorni fa

Risposto
Variable passed through function doesn't work
How are you calling the function? Also, Use strcmp or isequal to compare strings behavior = 'drug' isequal(behavior,'drug') ...

13 giorni fa | 0

| accettato

Risposto
can someone check the code i have problem
You can do that without defining C (If I understand what you want to do correctly) B = [4;6;4;6;6;4]; m = 6; n = 30; L = 200...

13 giorni fa | 0

| accettato

Carica altro