Community Profile

Prashant Bhagat

Last seen: 3 months ago Active since 2022

View badges

Content Feed

View by

Question

How to plot bar graph for two different values?
I am trying to run the below code for two different values or multiple values of A and I also want to run the same script for 10...

3 months ago | 1 answer | 0

1

answer

Question

Matrix with fix number of ones
Hello guys, I want to design a matrix whose elements are 1 when the probability for that index is higher than certain probabilit...

3 months ago | 1 answer | 0

1

answer

Question

How to take average of such an array?
Z = 6×2 cell array {[1 0 2 2 1 1 3 1 1 0]} {[2 1 0 0 0 1 0 2 0 0]} {[2 2 3 3 1 3 3 2 1 0]} {[2 2 0 0 1 2 ...

3 months ago | 2 answers | 0

2

answers

Question

Want to run same script for 100 times without changing any variable and then taking the average of the output.
Hi all, I want to run the same script multiple times and then want to take the average of the results and plot them. Is there an...

3 months ago | 1 answer | 0

1

answer

Question

Script not running for different variable size.
I am running this code for Total_time = 1000 and it is working fine but when I increase this variable to 100000, it is not showi...

4 months ago | 2 answers | 0

2

answers

Question

Plot is not lined up with the X axis
Hi, I have a strange problem. My simulatiuon plot is not lined with the x-axis. can anyone please help me for that. I am attac...

4 months ago | 1 answer | 0

1

answer

Question

How to find the length of intersection of rows of a matrix?
I have a matrix A = 1 1 1 0 0 0 0 0 0 0 0 0 0 0 1 1...

4 months ago | 3 answers | 0

3

answers

Question

unable to get desired results
Please find the below code. User = zeros(1,10); for i = 1:10 probability_of_transmission = rand(1); if probability_of...

5 months ago | 1 answer | 0

answer