Community Profile

# Wolfgang McCormack

##### Last seen: 4 days ago
54 total contributions since 2019

View details...

Contributions in
View by

Question

How to index/address the chart width and height using Position option in Text command?
Hi all, I have this line of code. Suppose I want to use text using half of width and height of my figure. How shouldI index/add...

7 days ago | 1 answer | 0

### 1

Question

How to place percent of each bar/bin of histogram on histogram chart in the code below?
Hi all, I have a code like this. Could you guys please help me to plot the percent of total for each histogram bar exactly on t...

7 days ago | 2 answers | 0

### 2

Question

How can we create poll-like plots with confidence intervals like the example attached?
Hi all, I have a quick question, does anyone know where we can start for this type of chart below? https://en.wikipedia.org/wi...

8 days ago | 1 answer | 0

### 1

Question

Is there any option to run a polyfit on a scatter plot?
Hi all, I have a scatter plot and there are some dots on that. Is there any option to get the X and Y of those points on the sc...

16 days ago | 2 answers | 0

### 2

Question

Is there any option to change the font size of figures in the entire MATLABfile?
Hi all, I have a MATLAB file with so many figures. Is there any way to insert a line of code at the begging to change the font ...

16 days ago | 1 answer | 0

### 1

Question

How to use 'layout' in nexttile to make the legend appear in the sixth position in 6 tiled chart?
Hi all, if we have a 6 tiled chart. How do you use layout for legend to put the legend in the 6th tile? Thanks

16 days ago | 1 answer | 0

### 1

Question

How to create corresponding equation in a column based on the value of previous column? (Similar to drag in Excel)
Hi all, Imagine we have a 1000 x 3 matrix named A. I want to have a specific equation such as A(1,1) * by EquationA if the val...

20 days ago | 1 answer | 0

### 1

Question

How to turn all fives to ones in one column? (Questionnaires)
Hi all, Sometimes, there are reverse research questions in research studies. How can I turn all 5 to 1, 4 to 2, 3 remain the sa...

22 days ago | 1 answer | 0

### 1

Question

How to add constant line y(50) to all plots of stackedplot?
Hi all, I am using stackedplot with 15 columns in a time table. How can I add a constant line of y(50) to all those 15 graphs ...

23 days ago | 1 answer | 0

### 1

Question

How to extract all rows that only one columns has a value greater than?
Hi all, I have a quick question. I have A as a 5000 x 30 table. I want to to see which cells have a value greater than 50 and ...

23 days ago | 3 answers | 0

### 3

Question

How to create a histogram for 12 months using a time table?
Hi all, I have a time table with 365 days (hourly). I want to create a histogram which shows how many values above 50 exists in...

23 days ago | 1 answer | 0

### 1

Question

How to turn an adjacency matrix into a graph of cubes?
Hi all, How can I turn the adjacency matrix into a graph of cubes like this? Also, I create my adjacency matrixes in Excel, do ...

2 months ago | 1 answer | 0

### 1

Question

How to calculate the area between two curves separately based on being below or above.
Hi Alll how can I seperate calculate all the area difference when the orange line is below the black line and vice versa. In ot...

2 months ago | 1 answer | 0

### 1

Question

How to know which loop is being calculated?
Hi all, I have a k = 1:100 and j = 1:500 where the second one is loop within the first loop. How can I find out which loop is b...

2 months ago | 3 answers | 0

### 3

Question

How to make a odd number plot look aligned using subplot or tiledlayout?
Hi all, I want my figures to appear this way using subplot or tiledlayout. Please help me to get it done.

3 months ago | 1 answer | 0

### 1

Question

How to change the color of a stacked bar?
Hi all, I have a stacked bar that has a legend but I don't like the way colors are represting it. I want the orange color be t...

3 months ago | 1 answer | 0

### 1

Question

How to select a repetitive range?
Hi all, I have a data from 1 to 8760 representing the hours of the year. I want to select for instance 11 to 17 and repeat it...

3 months ago | 1 answer | 0

### 1

Question

Is it possible to code something like a genetic algorithm for 2 columns in an excel file?
Hi all, I have a question. I have two columns in an excel file each having 100 values. Do you think or is there any thing that o...

3 months ago | 0 answers | 0

### 0

Question

How to skim through a word file for Figures 1 to 10 and copy the figure to MATLAB and save it and its caption as a separate file for each figure?
Hi all, As I am really enjoying MATLAB, I have a question that might save a me great deal of time. I have a word document that ...

3 months ago | 0 answers | 0

### 0

Question

How to keep rows including a specific name in structure and remove everything else within the structure?
Hi all, I have a shape file (shp) that is read as a structure within MATLAB. It is a 2540x1 struc in the worksapce. One of its ...

3 months ago | 1 answer | 0

### 1

Question

How to change the shp files for worldmap and geoshow?
Hi all, I want to add some of my cities the worldmap function which uses geoshow('worldcities.shp', 'Marker', '.'). Where can I ...

3 months ago | 0 answers | 0

### 0

Question

Why isn't this value being saved using ismember and round?
Hi all, I have the following code and it almost works for all my values except two. Nothing being saved in Xsaved AllRatio...

3 months ago | 1 answer | 0

### 1

Question

how to pick the closest value to a point using ismember or anything else?
Hi all, I have the following code, my problem is that multiple values that result in the output (CurRatio) fall within my spec...

3 months ago | 1 answer | 0

### 1

Question

How to index for saving an output of a for loop for each loop?
Hi all, I have the following code and I want to save the output but how? for i = 0.1:0.1:0.7 'Calculating somestuff he...

3 months ago | 1 answer | 0

### 1

How to plot a tiled layout using a loop?

3 months ago | 0

Question

How to plot a tiled layout using a loop?
Hi guys, I have bunch of excel files that almost everything in them is similar. All I want is creating a loop instead of coding ...

3 months ago | 3 answers | 0

### 3

Question

How can I concatenate a row vertically every 5 cells?
Hi all, if A is an array 1 x 100, how can I turn it into an array of 10x10 or 20 x 5? Thanks

3 months ago | 1 answer | 0

### 1

Question

How to plot a horizontal line between two arrays?
Hi all, I have the following arrays, I want to draw a horziontal line between each row. Could someone please teach me how to do...

3 months ago | 1 answer | 0

### 1

Question

Is it possible to reduce the alpha for markers in a simple plot?
Hi all, I am having a simple plot like plot(X,Y, 'MarkerFaceColor','#0072BD') Is it possible to reduce the transparency of...

3 months ago | 1 answer | 0

### 1

Question

How to repeat a pattern on xticks?
Hi all, I have the following for a plot. How can I make the A,B,C,D,E repeat for 100 times on the x label with the same pattter...

3 months ago | 2 answers | 0