# Aftab Ahmed Khan

Seeking to improve my ability to communications system. Use Matlab for Network and traffic analysis.

A big Fan of community-based learning like Matlab Answers; appreciate the help I've gotten here. Thank you so much everyone.

**Statistics**

**MATLAB Answers**

**66** Questions

**0** Answers

RANK**6,423**

of 250,069

REPUTATION**5**

CONTRIBUTIONS

**66** Questions

**0** Answers

ANSWER ACCEPTANCE **
93.94%
**

VOTES RECEIVED**5**

RANK

of 17,374

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

RANK

of 103,764

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

Reducing the number of data points on the grapth

Hello How can i reduce the number of data points for every graph? I want the line to be plotted with the original number of dat...

4 years ago | 1 answer | 0

### 1

answerQuestion

Getting the minimum value from a row vector

Hi, I am calculating a min value in a row vector one after the other. There are two repetitions in the row vector. I want to pi...

5 years ago | 2 answers | 0

### 2

answersQuestion

Generating random number from a given sequence.

Hello, I am generating a random sequence of channels one after another based on its availability. The way i'm doing it is like ...

5 years ago | 1 answer | 0

### 1

answerQuestion

Indices of a maximum value in a multidimensional matrix.

Hi, I have a multidimensional matrix of size (100,16,4,10) and i want to calculate all the 4 indices of the max value in it? An...

5 years ago | 2 answers | 0

### 2

answersQuestion

Help needed with the find function

Hello everyone, I have this section of code. I want to find the closest node among the two sets of base stations. The way i am ...

5 years ago | 1 answer | 0

### 1

answerQuestion

Problem with legends for multiple entries

Hello everyone, I am plotting different entities on the figure window. The problem is when i use the legend function, it doesn'...

5 years ago | 1 answer | 0

### 1

answerQuestion

Combining 3 for loops into 1 in Matlab

I have this section of code which is working fine but i don't like the way i have implemented those 3 separate for loops. Can an...

6 years ago | 0 answers | 0

### 0

answersQuestion

Unable to sort symbolic variables in matlab

There is a an issue in one section of my code. Let I have this symbolic equation. When i use the coeffs function like this it g...

6 years ago | 2 answers | 0

### 2

answersQuestion

Creating linear equations in matlab

Hello, How can i create 9 different equations in matlab if i have this general form of equations. I never did any thing of th...

6 years ago | 1 answer | 0

### 1

answerQuestion

Zooming a portion of a figure with multiple .mat files

Hello everyone, I have this image having four graphs. I want to zoom-in on the end overlapped section of this figure. This is m...

6 years ago | 1 answer | 0

### 1

answerQuestion

Shade the area between two graphs

Hi, i have this graph from my simulation. I want to highlight the area between the two graph with some colors. How can i do it ...

6 years ago | 1 answer | 0

### 1

answerQuestion

Problem with Nested if statements

Hi everyone, I am using nested if statements to perform a subsection of my project but i don't like the way i have implemented...

6 years ago | 1 answer | 0

### 1

answerQuestion

Exponential Distribution for random number

Hi, How can i generate an exponential distributed random integer from the interval [1 16]. Thank you so much.

6 years ago | 1 answer | 0

### 1

answerQuestion

Problem with find function

Hello everyone, i am having two vectors and i want to find the index by doing so but it gives me an error. However it works fin...

6 years ago | 2 answers | 0

### 2

answersQuestion

Video traffic model in matlab

Hi everyone, I am using file based traffic model (Exponential Distribution) with mean size of 2-MB for my communication network...

6 years ago | 0 answers | 0

### 0

answersQuestion

Greek Symbol lambda using fprintf

Hi everyone, i am using \lambda for the greek symbol lambda inside the fprintf function but it is not working for me. Any help ...

6 years ago | 1 answer | 0

### 1

answerQuestion

Problem with fprintf function

Hi, This is my command window. The second last column of "bnum" is a bit inward in the middle. I don't know how to make it exac...

6 years ago | 1 answer | 0

### 1

answerQuestion

Missing One entry in Legend while using Plotyy function

Hi everyone, I am plotting multiple graph using plotyy function. All the graphs are plotted but the legend section is not displ...

7 years ago | 1 answer | 0

### 1

answerQuestion

Changing y-axis for Bar graph

Hi Everyone, I am plotting these bar graphs but i want the y-axis to be from 3 sec to 4 sec. So to make the variation more visi...

7 years ago | 1 answer | 0

### 1

answerQuestion

Plotting multiple bar graphs

Hi everyone, I am plotting 3 different bar graphs on a same figure window. I have managed up to this point, shown in the figure...

7 years ago | 3 answers | 1

### 3

answersQuestion

Plotting 10 graphs with different colors and markers

Hi everyone, I am plotting 10 graphs on a single figure from a different 10 sets of data. I know only these 5 colors and marke...

7 years ago | 3 answers | 0

### 3

answersQuestion

Implementing a routing table in Matlab

Hi, This is my routing table which i have made. I want to ask that is there any better way in which i can implement this. Than...

7 years ago | 2 answers | 0

### 2

answersQuestion

Simplifying the If statements.

Hello Everyone, I am making this routing table for my network which is working fine but is there any efficient way of doing thi...

7 years ago | 1 answer | 0

### 1

answerQuestion

Problem with the legend for the multiple axes.

Hi everyone, I am plotting two graph using multiple axes option, the problem i am having now is with the legend. It is displayi...

7 years ago | 1 answer | 0

### 1

answerQuestion

Plotting using multiple x-axes and y-axes.

Hi everyone, i am plotting two curves on a same figure, since the x-axis scale is different for both of them, so i am using mul...

7 years ago | 1 answer | 0

### 1

answerQuestion

Problem with rng shuffle

Hello everyone, I am running my simulation for like 50000 iterations but when i use rng('shuffle') during each itera...

7 years ago | 3 answers | 1

### 3

answersQuestion

Selecting a random number with some probability

Hello Everyone, I am using this one line of code to generate a single value either to be 1 or 2 with equal probability but my q...

7 years ago | 5 answers | 1

### 5

answersQuestion

Problem with fprintf command

hello everyone, I have this set of schemes which i want to print. The way i am doing is like this, The "pno" control for me the...

7 years ago | 1 answer | 0

### 1

answerQuestion

Plotting with dfferent colors

Hello everyone, I am loading three mat files into matlab but each time i want the color of the graph should be like red, green ...

7 years ago | 1 answer | 0

### 1

answerQuestion

Loading multiple mat files

Hello everyone, i want to load this 3 set of data files into matlab using for loop but it is not working for me. Any help.........

7 years ago | 2 answers | 0