Community Profile

photo

Dyuman Joshi


Last seen: Today Active since 2012

Mechanical Engineer IITG'20

Programming Languages:
MATLAB
Spoken Languages:
English

Statistics

All
  • MATLAB Mini Hack Participant
  • Treasure Hunt Participant
  • Thankful Level 2
  • Thankful Level 3
  • R2016b Feature Challenge Master
  • Famous
  • 5-Star Galaxy Level 1
  • Personal Best Downloads Level 1
  • Likeable
  • Puzzler
  • Sequences And Series I Master
  • Knowledgeable Level 4

View badges

Content Feed

Answered
Partial Differentiation of a function with exponential is different from other calculators
There's nothing wrong with your answer, it's just simplified version of it. 2 from numerator and denominator is cancelled out an...

alrededor de 8 horas ago | 0

Answered
changing timestamp t and plotting the results.
I am not sure if pause works here on the online/live editor, but it works nicely offline. %building on Torsten's code n=5; dt...

5 días ago | 0

Answered
Storing a variable and calling it out again to use and plot
How can you plot with different numbers of x values and y values? x =-0.8:0.8:5; T=ones(1,5); T(1,5)=40; numel(x) numel(T) ...

6 días ago | 0

Answered
adding a variable into a vector
Your deltax is incorrectly defined and due it all subsequent calculations are incorrect as well. %It should be L=0.8; gridpoi...

6 días ago | 0

Answered
where is the error in my code?
syms doesn't go with function handles. fplot is purely for symbolic function, not function handles. V1 = @(w) -acosh(10*(w./(2...

9 días ago | 0

Answered
How to return values mapped to a variable?
Not sure what you want exaclty a = [1 2 3 4 5 6 7 8 9 10]; b = [4 5 12 45 21 52 69 10 22 0]; a_temp = isprime(a) b_temp = b(...

9 días ago | 0

Answered
Reverse order of X axis
Building on @Image Analyst's comment, reversing the x-tick labels Exp = 0:15; % Days to expiration P = linspace(10, 30, leng...

10 días ago | 0

| accepted

Answered
How to get a data set using Mean and standard deviation
mu=63; sigma=2.3; %generate normally distributed numbers y=randn(1,10); y=sigma*(y-mean(y))/std(y)+mu mean(y) std(y)

11 días ago | 0

| accepted

Answered
I want to obtain value of "W" for different combination of values of (psi,r) example. "W" for (psi=0.0001,r = 2.1891) ; (psi=0.001,r = 2.1940); (psi=0.01,r = 2.2373) and so on
%loop psi=[0.0001,0.001,0.01]; r=[2.1891,2.194,2.2373]; for i=1:numel(psi) W(i)=calculateW(psi(i),r(i)); end W %array...

12 días ago | 0

| accepted

Answered
find node with maximum degree
Your "label" seems incorrect. node=[1 2 3 4 5 6 7 8 9 10 11 12 13 14 15]; degree=[11 11 12 10 15 10 8 14 12 1 8 6 2 18 5]; de...

12 días ago | 0

Answered
How to set bottom repeating elements in matrix to NaN?
Edited as per a comment a=[1 2 3 2 1 3 3 1 1 3 1 2 1 2 3 3 2 1 1 2 1 2 1 3 1 2 3 1 2 1]; for j=1:2 ...

17 días ago | 0

Answered
Filter Matrix over a specific value
The new dimension would be 1x5, not 1x4 data=1:10 data(data>5)

20 días ago | 1

| accepted

Answered
check 2 same numbers in a matrix
y= [80 39 101 39 101 175 237 172 232 168 232 168 104 40] nnz(y==39)==2 nnz(y==168)==2

20 días ago | 1

| accepted

Answered
For loop to make an array from workspace variables
The way you have written your loop, the variable xlength gets overwritten every iteration. %Concatenating in a char array xlen...

20 días ago | 1

Answered
Limiting bulitin function (sine)
You have to call your function for each value of x and store it in another variable and then plot it, as your function is define...

21 días ago | 1

| accepted

Answered
Create a vector to represent the polynomial p(x)=4x5−3x2+2x+33. a) Find the roots p(x) b) The value at p(4)
Check out how to Create and Evaluate polynomials, roots and polyval

21 días ago | 0

Answered
how to return indices?
Based on your comment - %random data y=randi(30,2,3,4) z=NaN(2,3,4); z(y<15)=y(y<15)

22 días ago | 1

| accepted

Answered
How to remove rows in a cell array with a number of Nans major than a threshold
%random data y={NaN(1,50);[zeros(1,5) NaN(1,35) ones(1,25)];[primes(100) NaN(1,37)];... [0.5*(1+sqrt(5)) pi exp(1) NaN(1,5...

22 días ago | 1

| accepted

Answered
MATLAB is taking too much time to solve the following integral?
integral is used for numerical integration of functions, not partial integrations. It expects numerical value for 2nd and 3rd in...

23 días ago | 0

| accepted

Answered
minimun value in a column matrix with its index
A=[0; 5 ;6 ;9 ;55] A(A~=0) %when you do this, your vector changes Method 1 minvalue=min(A(A~=0)) rowidx=find(A==minvalue) ...

23 días ago | 1

| accepted

Answered
How to find peaks in matrix the rest are 0
Run a double for loop through all the elements A = randi(50,7,11) %sample matrix B=zeros(size(A)); for i=1:size(A,1) for...

24 días ago | 0

| accepted

Answered
Extract number from cell with decimal
y={44.10}; befdec=floor(y{1}) aftdec=rem(y{1},1)

25 días ago | 1

| accepted

Answered
How to save multiple matrices in multiple files? I solved the first two parts using for loop but couldn't do the 3rd one.How to save these multiple matrices in separate files?
%Saving magic matrices in files for n=1:7 A=magic(5*n+15); filenames=sprintf('magicmatrix_%d.mat',n); save(filen...

26 días ago | 1

| accepted

Answered
subs command is not working on differentiation in MATLAB
g = -9.81; I1=1;I2=1.5;l1=2;l2=1;rho1=1.1;rho2=0.4; syms theta1(t) theta2(t) theta1=0.02*t; theta2=0.3*t; vec_rho1 = [rho1*...

29 días ago | 1

Answered
In this code how can I put multiple values of "betasqr" for example 0.2, 0.4, 0,6 and subsequently multiple values of "sbar" for example 1/0.02, 1/0.04, 1/0.06 (contd in des)
Define dbar as follows, and run a for loop 9 times dbar = 0.2*(1:9) sbar = 0.1./dbar

29 días ago | 0

| accepted

Answered
Complex matrix & vertex errors
The last row in your matrix contains 10 elements rather than 9.

alrededor de 1 mes ago | 1

Answered
i want to coding
y=ones(8760, 1); size(y) z=reshape(y,365,24); size(z)

alrededor de 1 mes ago | 0

| accepted

Answered
For Loop in 3D Array
a = rand(3,3,4); for k=1:size(a,3) y=a(:,:,k); for i=1:size(y,1) for j=1:size(y,2) out(i,j,k)=(...

alrededor de 1 mes ago | 2

| accepted

Answered
Different number of elements
There's an error in defining c. It should be c = 0.2

alrededor de 1 mes ago | 0

| accepted

Answered
Piecewise plotting with clipping
t = 0:0.001:10; y = cos(pi*t); y(y>0.5)=0.5; y(y<-0.5)=-0.5; plot(t,y) ylim([-1 1])

alrededor de 1 mes ago | 1

Load more