# parag gupta

**Statistics**

**MATLAB Answers**

**22** Questions

**0** Answers

RANK**247,282**

of 265,252

REPUTATION**0**

CONTRIBUTIONS

**22** Questions

**0** Answers

ANSWER ACCEPTANCE **
59.09%
**

VOTES RECEIVED**0**

RANK

of 18,128

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

RANK

of 116,493

CONTRIBUTIONS

**0** Problems

**0** Solutions

SCORE**0**

NUMBER OF BADGES**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

Question

How to store " first_element " values?

Could you please tell how to store the "first_element" values in a matrix? %%%%%%%%%%%%%%%%%%%%%%%%%%%% %code first_element =...

2 years ago | 2 answers | 0

### 2

answersQuestion

Could someone tell me an easy way to plot graph when kk varies from 1 to 100?

I run the function file for kk = 1:4 and saved by using save(['A', num2str(kk),'.mat']) command and then I plot the graphs ...

2 years ago | 2 answers | 0

### 2

answersQuestion

Why MATLAB is showing busy string the code attached below?

I have done the coding of a model (I have attached the image of the model and the code). MATLAB is showing busy. Could you p...

3 years ago | 0 answers | 0

### 0

answersQuestion

How to plot the graphs when b2 varies from 0 to 2 in the code I attached below?

I tried to use a for loop but getting error. Could you please tell how can I get graph for b2 = 0:2 and how to merge them on g...

3 years ago | 1 answer | 0

### 1

answerQuestion

How to find the coordinates of starting, end point and peak from graph?

How to find the peak value, end point and distance between starting and end point? x = linespace(-5,5); y = sqrt((36-x.^2)/9...

3 years ago | 1 answer | 0

### 1

answerQuestion

How to plot for different values of parameters on one run?

How to get the plots for different values of aplha = 2,3,4,5 on one run and how to merge all those graphs ? function [t,y] = ca...

3 years ago | 1 answer | 0

### 1

answerQuestion

How to plot the graph for different values of parameters?

In my mathematical model I have one parameter "c" .I got the graphs of the equations for " c = 1" but now I want the graphs fo...

3 years ago | 1 answer | 0

### 1

answerQuestion

How do I merge 2 figures from 2 different programs in a single figure ?

Hi! Please find attached a file containg code. I got two graphs from two different files and want to merge them into one graph. ...

3 years ago | 1 answer | 0

### 1

answerQuestion

How to avoid the repetition of events ?

I am using dde23 solver. p = sol.ie() p = 6 4 2 3 1 17 17 21 21 27 I dont want the same event ...

3 years ago | 1 answer | 0

### 1

answerQuestion

Stiff Delay Differential Equations

Can we use dde23 solver to find solution of Stiff Delay Differential Equations? I read somewhere that dde23 is for soving nonst...

3 years ago | 0 answers | 0

### 0

answersQuestion

Stiff Delay Differential Equations

Hey Can we use dde23 solver for solving sytem of stiff delay differential equations? I tried to find the solution of those equ...

3 years ago | 0 answers | 0

### 0

answersQuestion

How to write it in a loop?

a = 2 b = 3 p1(1) = a.b p1(2) = a.b^2 p2(1) = a^2.b p2(2) = a^2.b^2 .......i.e pi(j) = 2^i * 3^j where i from 1 to 4 a...

3 years ago | 1 answer | 0

### 1

answerQuestion

confusion related to 'for' loop.

epsilon = 2 p = cell(1,8); for i = 1:8 p{i} = epsilon end How to edit this code so that I can get p{1} = epsilon,p{2} = ep...

3 years ago | 2 answers | 0

### 2

answersQuestion

How to normalize all the matrices in a loop so that each row sums up to 1

N = 4 n = 2 A = cell(1,N); for i = 1:N A{i} = rand(n,n) end celldisp(A) From above command I will get 4 matrices.How to n...

3 years ago | 3 answers | 0

### 3

answersQuestion

sum of row equal to particular number.

I have the following matrix B = [2 2 2 3; ... 2 2 1 1; ... 4 5 2 1] Ho...

3 years ago | 1 answer | 0

### 1

answerQuestion

Replace part of matrix with other matrix.

B = [ 2,2,0,0,0,0;2,2,0,0,0,0;0,0,2,1,0,0;0,0,3,1,0,0;0,0,0,0,2,1;0,0,0,0,3,1] i.e B is a matrix 2 2 0 0 ...

3 years ago | 1 answer | 0

### 1

answerQuestion

how to store output for different values of i's ?

for i = 1:4 p1= [1,2;2,3] end How to store output for different values of i's so that I end up 4 matrices instead of one matr...

3 years ago | 1 answer | 0

### 1

answerQuestion

How to replace 2x2 zero sub matrices by different 2x2 matrices ?

How to replace 2x2 zero submatrix of B with 2x2 matrices different matrice.I have 12 matrices of size 2x2 and want to replace ze...

3 years ago | 2 answers | 0

### 2

answersQuestion

How to use blkdiag command to create a matrix such that its diagonal blocks are random 2 x 2 matrices?

for k = 1 : 4 A = rand(2,2) end By using the above command I got 4 random matrices.How to create a block diagonal mat...

3 years ago | 1 answer | 0

### 1

answerQuestion

Index exceeds the number of array elements .

function v = model(t,y,Z) r=10^(-1); d=5*10^(-1); delta = 10^(-1); c = 10^(2); K = 10^(8); C = 10^(8); x = 1; sigma = 10...

3 years ago | 3 answers | 0

### 3

answersQuestion

how to find the solution of system of equations in MATLAB?

eqn1= r*x*(1-((x+y)/K))-d*z*x =0; eqn2 = r*x*(((x+y)/K))-delta*z*y-delta_m*y =0; eqn3 = c*(((x+y)/C)^m)*(1-z) =0 ; with C r ...

3 years ago | 0 answers | 0

### 0

answersQuestion

How to specify history in matlab ?

Intial conditions are v1(t)= 200,m1(t)=0,a1(t)=0 for -100 <= t <= 0. how to specify history with these intial conditions in ma...

3 years ago | 0 answers | 0