# Sajid Afaque

**Statistics**

RANK**1,681**

of 239,284

REPUTATION**24**

CONTRIBUTIONS

**34** Questions

**11** Answers

ANSWER ACCEPTANCE **
23.53%
**

VOTES RECEIVED**2**

RANK

of 16,804

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

Question

construct a complex number using real part and abs data

i have real part and absolute values of a complex number. is their any built in function to generate back the complex number us...

22 days ago | 1 answer | 0

### 1

answerfunction to display name

that is because while storing the result in big you are using the index i please try below code it might help function resul...

4 months ago | 0

| accepted

Same colour for two curves in a plot

you can also use color instead of triplets h=plot(x,y); set(h, {'color'}, {'r'; 'b'; 'r'});

4 months ago | 0

Question

insert hyperlink in a pdf report using matlab report generator tool

hello all, i am trying to insert hyperlink in the report .I am generating the report using the matlab report generator tool. i...

4 months ago | 0 answers | 0

### 0

answerswriting values into nested cell structures.

try this might help % example of A A{1,1} =[3 5 4]; A{2,1} = [3 1 7 0 1] ; A{3,1} = [3 1 7 ]; %MAIN PART IS BELOW for i = ...

4 months ago | 0

| accepted

The 'if' nested in my 'for loop' does not seem to be working, any idea why?

recheck your first condition y_n == 0.25 check if y_n is exactly equal to 0.25 as expected. 0.249999999 is not equal to 0.25 ...

4 months ago | 0

| accepted

Multiple if elseif statement

you can try switch statements as alternative for else if. depends on your need

4 months ago | 0

Solved

Find the sum of all the numbers of the input vector

Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

4 months ago

Solved

Times 2 - START HERE

Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

4 months ago

Saving multiple files using for loop

if you are running the 36 different scripts individually then you have to use a for loop. this way your code would be shorter ...

4 months ago | 1

| accepted

How to write for loop for an array calculation ?

if i understood correctly then, it is because your inner loop runs over j several times for each k value hence in A the k posi...

4 months ago | 0

| accepted

Variables within other variables

I am not clear with your question but with whatever i have understood is you can have a single cellarray containg all the varia...

4 months ago | 0

join two cells on certain cell row values

try converting the cells to table format. then you can explore inner join feature of tables to perform your task

4 months ago | 0

imread error file does not exist

actually the path which you have given is in wrong format try to remove the space before foldername This PC imgread=imread('c:...

4 months ago | 1

how to substitute, in a table, variable names with the values of a vector

for num = 2:5 table_name.Properties.VariableNames(num) = {'New substitute name here in this case X(num-1)'}; end

4 months ago | 0

Question

Insert Hyper link in report genrated from matlab report generation tool

hello all, i am trying to insert hyperlink in the report .I am generating the report using the matlan report generator tool. i...

4 months ago | 0 answers | 0

### 0

answersQuestion

plot cdf and calculate 90th percentile value

hello all , i have a variable z_cdf attached; prctile(z_cdf,90) % answer is 30.9361 now using z_cdf i am trying to plot cdf....

9 months ago | 1 answer | 0

### 1

answerQuestion

is it possible to combine two matfiles ?

supposes i have 2 matfile : matfile 1 consits of : block 1 block 2 matfile 2 consits of : block 2 block 3 now i want to c...

1 year ago | 0 answers | 0

### 0

answersQuestion

i have a variable in my workspace and i dont know its name directly

for example i have loaded a variable Verification_2018 = [ ]; in my workspace. now i directly dont know its name. i know tha...

1 year ago | 2 answers | 0

### 2

answersQuestion

how to calculate percentile from ecdf values f and x

suppose i have y = 0:10; [f x] = ecdf(y); plot(x,f); then why does my x value corresponding to f = 0.5 is not equal to medi...

1 year ago | 0 answers | 0

### 0

answersQuestion

i want to read a csv file and store as rows and columns of a cell

i have a csv file at a particular location. i have attached the csv file. i want to read the data in the csv file in the below ...

1 year ago | 1 answer | 0

### 1

answerQuestion

how to load a matfile and access & process its content.

I am explaining my doubt with an example. Eg: suppose i load a matfile named 'validation.mat' using load command, the contents ...

1 year ago | 1 answer | 0

### 1

answerQuestion

normalize a histogram in matlab 2013b

hello all , i have a similar issue as in https://www.mathworks.com/matlabcentral/answers/266306-how-to-normalize-a-histogram#an...

1 year ago | 1 answer | 0

### 1

answerQuestion

visibility range of histogram

hello i have 2 questions now, in below histogram how do i limit the range of x-axis to around 200.(here i am also specifying th...

1 year ago | 2 answers | 0

### 2

answersQuestion

to highlight median value on the plot.

hello , i have plotted a graph using cdfplot(z) now i need to indicate median as a line on graph as shown below here i nee...

1 year ago | 1 answer | 0

### 1

answerQuestion

how to plot cumulative normal distribution of matlab

i have a data "z_hist" which i have enclosed below. now i need to plot cumulative normal distribution which looks something lik...

1 year ago | 1 answer | 0

### 1

answerQuestion

how can i move cell components to new line

hello All, i have a cell array where each row looks like a{5} = 'temp=25' 'vds=12' 'id=60' 'vbchmax=14' now i wa...

1 year ago | 1 answer | 0

### 1

answerQuestion

Using Matlab Regular expressions ans Tokens

i have a cell array containing strings for example i have a(:,1) = 'temp_25_vbchmax_14_vds_10_id_80' 'temp_-55_vbc...

1 year ago | 0 answers | 0

### 0

answersQuestion

improve visibility of a plot

is their any way, by which i can get better visibility of the graph. i.e in the above graph the blue line is almost flattened ...

1 year ago | 2 answers | 0

### 2

answersQuestion

create specific color map and save it

how do i create my own color map for 2D-scatter plot. such that all the values of z z <= 10 ------- take green color 10 < z <...

1 year ago | 1 answer | 0