Community Profile # Dyuman Joshi

Last seen: Today 2012 이후 활성

Mechanical Engineer IITG'20

Programming Languages:
MATLAB
Spoken Languages:
English

#### Statistics

All
• • • • • • • • • • • • 배지보기

#### Content Feed

보기 기준

답변 있음
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...

2일 전 | 0

답변 있음
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(...

2일 전 | 0

답변 있음
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...

3일 전 | 0

| 수락됨

답변 있음
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)

4일 전 | 0

| 수락됨

답변 있음
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...

5일 전 | 0

| 수락됨

답변 있음
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...

5일 전 | 0

답변 있음
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 ...

11일 전 | 0

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

13일 전 | 1

| 수락됨

답변 있음
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

13일 전 | 1

| 수락됨

답변 있음
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...

14일 전 | 1

답변 있음
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...

14일 전 | 1

| 수락됨

답변 있음
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

14일 전 | 0

답변 있음
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)

15일 전 | 1

| 수락됨

답변 있음
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...

15일 전 | 1

| 수락됨

답변 있음
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...

16일 전 | 0

| 수락됨

답변 있음
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) ...

16일 전 | 1

| 수락됨

답변 있음
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...

17일 전 | 0

| 수락됨

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

19일 전 | 1

| 수락됨

답변 있음
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...

19일 전 | 1

| 수락됨

답변 있음
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*...

22일 전 | 1

답변 있음
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

22일 전 | 0

| 수락됨

답변 있음
Complex matrix & vertex errors
The last row in your matrix contains 10 elements rather than 9.

26일 전 | 1

답변 있음
i want to coding
y=ones(8760, 1); size(y) z=reshape(y,365,24); size(z)

27일 전 | 0

| 수락됨

답변 있음
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)=(...

27일 전 | 2

| 수락됨

답변 있음
Different number of elements
There's an error in defining c. It should be c = 0.2

29일 전 | 0

| 수락됨

답변 있음
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])

30일 전 | 1

답변 있음
replace RGB values with new values
rgb=[67,68,69;0,67,69;0,66,68;125,126,127;122,125,127;117,122,126;113,114,115;110,113,115;106,111,114] floor(abs(rgb-1)/64)

약 1달 전 | 2

| 수락됨

답변 있음
i want mathlab programme for solving linear differential equation as metioned below
syms x1(t) x2(t) x3(t) k1 k2 k3 ode1 = diff(x1)==k3*x3-k1*x1+10; ode2 = diff(x2)==k1*x1-k2*x2; ode3 = diff(x3)==k2*x2-k3*x3...

약 1달 전 | 1

답변 있음
Problem stataments in Matlab
Final answer, I have tested this code on my laptop cd=0; %counting \$ userd=[]; for i=1:size(T,1) if isequal(char(T.Colu...

약 1달 전 | 1

| 수락됨

답변 있음
I try this coding but it's say plot error..what wrong with my coding?
Use fplot to plot symbolic expressions syms t f=exp(t)*sin(3*t); c=0.003; I=c*diff(f); figure; fplot(I); grid; xlabel('...

약 1달 전 | 2

| 수락됨