Community Profile

Sajid Afaque

Last seen: 11 days ago
46 total contributions since 2019

View details...

Contributions in
View by

function 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...

2 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'});

2 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...

2 months ago | 0 answers | 0

0

writing 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 = ...

3 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 ...

3 months ago | 0

| accepted

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

3 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 ...

3 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:...

3 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 ...

3 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...

3 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...

3 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

3 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:...

3 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

3 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...

3 months ago | 0 answers | 0

0

Question

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....

8 months ago | 1 answer | 0

1

Question

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...

11 months ago | 0 answers | 0

0

Question

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...

12 months ago | 2 answers | 0

2

Question

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...

12 months ago | 0 answers | 0

0

Question

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

Question

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

Question

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

Question

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

Question

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

Question

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

Question

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

Question

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

Question

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

Question

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

1

Question

change color scheme of a scatter plot
here above you can see i have a 2-D Scatter plot. now i want to change the color scheme. for all the values values <= 10 ...

1 year ago | 2 answers | 0