Community Profile

photo

Dyuman Joshi


Last seen: Today Actif depuis 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

Afficher les badges

Content Feed

Afficher par

A répondu
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. I will update my solution, if and when I fin...

environ 21 heures il y a | 0

A résolu


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

1 jour il y a

A répondu
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') ...

2 jours il y a | 0

A répondu
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...

2 jours il y a | 0

| A accepté

A répondu
How to write this thetta fuction in Matlab? I have an example code in Python
@Beket, your code needs some changes 94th and 95th line of your code, you used b in c_rinf before defining it. c_rinf = @(r) Q...

2 jours il y a | 1

A répondu
Writing IF STATEMENT that omits empty fields in different arrays of a structure
You need to use () with isempty, otherwise it would assume the input to be a string array y = []; isempty(y) isempty y %even...

3 jours il y a | 0

A répondu
Arranging a vector to new index position
You mean like this n=15; E = randi(50,1,n) idx = randperm(n) Eprime = E(idx)

3 jours il y a | 2

| A accepté

A répondu
How can I rearrange this matrix into new one?
Assuming data is homogenous (In pairs throught-out), and end value is greater than or equal to first value. data=[50 67.5; ...

3 jours il y a | 1

| A accepté

A répondu
Why my function is not vectorized
dv = [1 5 10 20 50]; vc = sqrt(0.8*200*2*365*24*3600)/1000; figure for i = 1:5 dvc = dv(i); %vectorizing the functi...

3 jours il y a | 1

| A accepté

A répondu
How to create a matrix of ones and zeros with location of ones based on array that also contains zeros?
You get the error because the code includes 0 as an index. V = [3 1 1 5 0 4]; idx = V~=0; m = max(V); n = numel(V); R =...

4 jours il y a | 0

| A accepté

A résolu


Counting Permutations
In the permutations of the numbers 1 to n, count the number of permutations in which exactly m elements are greater than the pre...

4 jours il y a

A répondu
How to change entries in matrix based on another matrix?
A=[0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0...

4 jours il y a | 0

| A accepté

A répondu
Why does an array have a different column dimension than the array used to define that array?
You have defined B directly from a logical condition. When you do so, MATLAB checks for logical true values and defines accordin...

5 jours il y a | 0

| A accepté

A résolu


Play PRIMEGAME
Have you ever used the Sieve of Eratosthenes and said, "I wonder whether there’s a less efficient way to find prime numbers."? N...

5 jours il y a

A résolu


Evaluating continued fractions
Given row vector c=[c0 c1 c2 c3 ...] evaluate the continued fraction x=c0+1/(c1+1/(c2+1/(c3+...))) If c is a ...

5 jours il y a

Problème


Counting Permutations
In the permutations of the numbers 1 to n, count the number of permutations in which exactly m elements are greater than the pre...

6 jours il y a | 1 | 6 solveurs

A résolu


Determine flows of given probability using empirical frequency analysis
Write a function that takes as input observations of peak streamflow and exceedance probabilities expressed as percentages an...

6 jours il y a

A résolu


Find number patterns in rows of a matrix...
So I think this may be a hard one, may be it was only hard for me! So here is what it is, I will give a matrix, with some numbe...

7 jours il y a

A répondu
Report r_n and n when |r_n − r_n−1|< 10−9 (while-loop).
You have to update the values inside the while loop. One way to do is F=[2 3 5]; %defining rn = F(n+1)/F(n) r=F(2:3)./F(1:2)...

8 jours il y a | 0

A répondu
Grouping elements in a matrix
M = [2 1.3 1.4 1.1 -1 -0.9 -0.5 0 0.5 0.9 1.1 0.9 1.6 0.8 0.2 1.1]; index=and(M>-1, M<1); idx=unique([1 find(di...

8 jours il y a | 0

A répondu
How to associate a range of values to a certain vector component in a if statement?
You can put all the clalfaws in a single array and using indexing - arr=[clalfaw1 clalfaw2 clalfaw3 clalfaw4 clalfaw5]; idx=fl...

8 jours il y a | 0

| A accepté

A résolu


Hermite Polynomials
Return the _n_-th <http://en.wikipedia.org/wiki/Hermite_polynomials Hermite polynomial> of the physicists' type. Assume that ...

8 jours il y a

A résolu


Given a matrix X, manipulate it accordingly
Given a matrix X, 1st add a column to the matrix whose elements are the summation of each rows. Then add a row to the matrix who...

8 jours il y a

A résolu


Hermite Polynomials
Problem 1304 deals with Hermite polynomial of the physicist's type. In this problem, Return the n-th Hermite polynomial of the ...

8 jours il y a

A répondu
why do i receive this error?
The error occurs because 0 can not be an index in MATLAB (Indexing starts from 1) and you tried to initialize the variable S (V ...

9 jours il y a | 0

| A accepté

A répondu
Add name above a horizontal (threshold) line on a graph plot matlab
x=[0 10]; y=[2 2]; plot(x,y) %adjust x, y coordinates and the text as you like text(0.5, 2.05, 'Text')

9 jours il y a | 0

| A accepté

A répondu
Plot absolute values in stacked bar plot
x = [15 40 22; 6 13 4]; b = bar(x,'stacked','FaceColor','flat'); ylim([0 100]) legend({'1','2','3'}); ylabel('%') xticklabe...

10 jours il y a | 1

A répondu
how can I tell MATLAB to add a NaN if the size of concatenation is not consistent?
A = [2,2;3,3]; B = [4,4,4;5,5,5]; A=padarray(A,[0 1],nan,'post') C=[A;B]

10 jours il y a | 1

| A accepté

Problème


Hermite Polynomials
Problem 1304 deals with Hermite polynomial of the physicist's type. In this problem, Return the n-th Hermite polynomial of the ...

10 jours il y a | 1 | 5 solveurs

A répondu
How do I prevent duplicate indexes in an array from subtracting to each other when it satisfies the condition the 1st time?
matA = [21 36 172 246 259 274 303 311 316 322 340 375 377 378 382 396 483 508]; matB = [39 116 198 203 309 314 364 421]; idx=[...

10 jours il y a | 1

| A accepté

Charger plus