Community Profile

# Florian

### No affiliation

Last seen: environ un an ago Active since 2018

#### Content Feed

View by

how to write correct looping
for x=1:10000 if x<=99 km(x,:)=1/8*(pf(x,1)+pf(x+1,1)+pf(200+a,1)+pf(201+a,1)+pf(10201+a,1)+pf(10202+a,1)+pf(a+10401...

environ 2 ans ago | 0

| accepted

Question

Interactive pixel extraction from an image along custom line
The following code extracts pixel values for the first column of an image. IMt = imread('test.jpg'); % convert to double form...

environ 2 ans ago | 2 answers | 0

### 2

Question

How to read a corrupt mat file in reverse?
For the first time in 15 years of using matlab I ran into the issue today of not being able to open a mat file. Following the s...

plus de 2 ans ago | 0 answers | 0

### 0

Assign multiple custom labels in one plot using a for loop
Here is how I was able to solve it in the end (if anybody wants to do a similar display): stats=[3.0000 26.7150 43.0300 5...

plus de 2 ans ago | 0

| accepted

Question

Assign multiple custom labels in one plot using a for loop
stats=[3.0000 26.7150 43.0300 53.6300; 4.0000 17.5450 33.4050 80.7700; 5.0000 32.3300 39.6800 109.7...

plus de 2 ans ago | 1 answer | 0

### 1

Question

place down error underneath text string
Hi all, to place a down arrow for a text annotation in a plot I can use... text(0.5,0.5,'\downarrow mytext') ..which puts th...

plus de 2 ans ago | 1 answer | 0

### 1

Question

custom labels for errorplot
Hi all, is there a way to add custom labels to each errorbar in an erroplot using a code (instead of a manual text box)? In m...

plus de 2 ans ago | 1 answer | 0

### 1

Question

tostr = [3 14; 4 38; 5 25; 15 1; 16 196]; str=num2str(tostr); How can I modify the above created string 'str' into the followi...

plus de 2 ans ago | 1 answer | 0

### 1

Question

Plot P50 value with range from P10 to P90 for different groups on same plot
Hi all, for each group on the axis X, I would like to plot corresponding values for P10, P50 and P90 along axis Y. The plot s...

plus de 2 ans ago | 1 answer | 0

### 1

Question

Probability of occurrence as a function of distance
Assume % each color type represented by another integer color=[5;3;4;3;5;4;4;5;16;4;16;4;16;16;16;4;16;16]; % corresponding d...

plus de 2 ans ago | 1 answer | 0

### 1

Question

Pseudo-random distribution of points with minimum distance
Hi all, I use the following code to generate an exact number of points (650 in this case) within a one hectar area: numPoints ...

plus de 3 ans ago | 3 answers | 0

### 3

Question

Convert cell array to character array including string manipulation
Hi all, I have a n*1 cell array where each value is a combination of drive letter, folder path and file name and file extensi...

plus de 3 ans ago | 2 answers | 0

### 2

Question

Understand linkage in dendrogram for regrouping original data points
Hi all, I have a 516 x 4 matrix X representing 516 data points with 4 observations each. Using hierarchical clustering I group ...

plus de 3 ans ago | 0 answers | 0

### 0

Question

XTicklabels don‘t match
I am plotting a matrix using below code. The XTicklabels are supposed to be labeled per tick, but they only label every secon...

presque 4 ans ago | 1 answer | 0

### 1

Question

Correspondance matrix for matching values in two vectors
Assume two vectors with 20 values as follows: a=[2 2 2 2 2 1 1 1 3 3 2 2 1 1 1 1 3 3 2 2]; b=[1 1 1 1 2 2 2 2 2 2 2 2 ...

presque 4 ans ago | 2 answers | 0

### 2

Question

Repeat values in a vector
Assume a1=[1 5 8]; b1=[6 4 5]; a2=[1 2 3 4 5 6 7 8]; Now I want to create a matching vector with values repeated a...

presque 4 ans ago | 2 answers | 0

### 2

Question

Annotations with arrows for scatter plot
I have a scatter plot and would like to add labels with arrows for each data point (similar to the example below). I have a c...

presque 4 ans ago | 1 answer | 0

### 1

Question

scatter plot with narrowed color range
<</matlabcentral/answers/uploaded_files/135438/Capture.PNG>> Hi all, below scatter plot has two variables plotted against ...

presque 4 ans ago | 1 answer | 0

### 1

Question

scatter plot custom colors
Assume a=[1 5 7 1 3 9 4 6 8 7]; b=[4 5 6 7 2 6 9 4 2 1]; c=[1 2 0 1 0 2 1 1 0 1]; scatter(a,b) How can I now colo...

presque 4 ans ago | 1 answer | 0