# HC98

**Statistics**

**MATLAB Answers**

**48** Questions

**0** Answers

RANK**120,588**

of 281,637

REPUTATION**0**

CONTRIBUTIONS

**48** Questions

**0** Answers

ANSWER ACCEPTANCE **
18.75%
**

VOTES RECEIVED**0**

RANK

of 19,056

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

RANK

of 133,943

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

Adding labels to plots with LaTeX syntax

I was wanting to do something like this But I'm not sure

7 days ago | 2 answers | 0

### 2

answersQuestion

why does conv2 increase z height?

I want to smooth a jagged 3D plot and I thought using blurredImage = conv2(data, ones(15), 'same'); would help but the conv2 ...

1 month ago | 2 answers | 0

### 2

answersQuestion

Creating a custom plot layout with data from multiple sources

I have a rough idea in my mind how to create this but I was wondering how to put it in practice?

2 months ago | 1 answer | 0

### 1

answerQuestion

adding lines to a contour plot with labels

I want to produce something like this But I'm not sure how- how might one add lines and labels to contor plots?

3 months ago | 1 answer | 0

### 1

answerQuestion

stacked plots with contour- custom lsyout

How might I produce sumething like this?

3 months ago | 1 answer | 0

### 1

answerQuestion

Breaking the axis of plots

How can I do something like this in MATLAB without using any external pagkages or functions? Thanks

3 months ago | 2 answers | 0

### 2

answersQuestion

smoothing the shading of pcolor plots

I'm preparing some plots for a presentation and no matter which options I combine, my pcolor plot is always really jagged and no...

3 months ago | 1 answer | 0

### 1

answerQuestion

another crazy plot layout with zoomed portions and arrows

Hi, so I'm writing some lecture notes and want to show how to do this For our purposes let's just suppose 'f(x) = exp(-x)'

3 months ago | 1 answer | 0

### 1

answerQuestion

subplot with 1 large and 2 small figures

Is it possible to create a subplot like this? I.e., % | 1 | % |________| % | 2 | 3 | % | | |

3 months ago | 2 answers | 0

### 2

answersQuestion

Shifting a line on the x-axis ONLY

I have function q = [0:0.01:2]; plot(20*q.^2, q.^2) It's just a straight line. I want to move it from x = 0 to x = -50. I tri...

4 months ago | 2 answers | 0

### 2

answersQuestion

Storing numbers with lots of decimal places in arrays

I'm mmeasring some quantities using an analysis script and appending each one to a dummy array manually with amplitude = [NaN,...

4 months ago | 1 answer | 0

### 1

answerQuestion

Breaking the axis of plots (without external packages etc)

Is there a simple way to break the axis of my plot without falling a function from the mathworks public package repository etc? ...

4 months ago | 1 answer | 0

### 1

answerQuestion

Plotting arrays with different sizes

I want to plot a function where the arrays are different sizes gamma = [1, 1.2, 1.4, 1.6, 1.8, 2]; x = [0:0.01:2000]; b = 349...

4 months ago | 1 answer | 0

### 1

answerQuestion

using copyfile to copy the FOLDER AND its CONTENTS, i.e., preserve the folder

In linux one cna use rsync to copy the folder with its contents inside to another diretory. unfortucately, when I use copyfile, ...

4 months ago | 1 answer | 0

### 1

answerQuestion

Linux and MATLAB: Segmentation fault (core dumped)

Every time I go to launch my code using matlab -batch <filename> I get Segmentation fault (core dumped) Anny ideas? I'...

4 months ago | 0 answers | 0

### 0

answersQuestion

Bringing plots to the "front" to make them more visible?

I'm plotting 2 quantities: I'm plotting a seried of values and overlaying the mean on top. The trouble is, the mean line is ...

4 months ago | 2 answers | 0

### 2

answersQuestion

Plot formatting: including zoomed in regions

So I know how to create a separate set of axes on the plot using % create smaller axes in top right, and plot on it axes('Pos...

4 months ago | 1 answer | 0

### 1

answerQuestion

Shifting an array without circshift

I want to shift an array and whilst circshift generally works, I encounter errors with certain configs. Is there a way to shift ...

5 months ago | 2 answers | 0

### 2

answersQuestion

Determining the amplitude of peaks on a slowly changing signal?

So as we all know, findpeaks will return the value of a peak using, e.g., [pks locs] = findpeaks(data, x); My question is, ho...

5 months ago | 1 answer | 0

### 1

answerQuestion

Positioning Axes using arrays

I have this simple code % create smaller axes in top right, and plot on it axes('Position', [.32 .22 .25 .15]) box on plot(...

5 months ago | 2 answers | 0

### 2

answersQuestion

Optimising my data importer for large datasets

So I have this txtFiles = dir('*.txt') ; %loads txt files N = length(txtFiles) ; Numit = N; [~, reindex] = sort( str2dou...

6 months ago | 1 answer | 0

### 1

answerQuestion

3 subplots with the bottom one split in 2 vertically?

I want to produce a figure with 3 stacked plots where the bottom one is split in half vertically, how might I do this? TIA

6 months ago | 3 answers | 0

### 3

answersQuestion

How to set default axes tick using groot?

I tried to set axis tick using set(groot,'XMinorTick','on','YMinorTick','on') But it gives an error. any idea how to fix?

7 months ago | 1 answer | 0

### 1

answerQuestion

Finding peaks greater than a set value

I'm using for h2 = 1:size(udata,1); [pks,locs] = findpeaks(udata(h2, :), x); pksc{h2,:} = pks; ...

7 months ago | 2 answers | 0

### 2

answersQuestion

How can I rewrite this to get peak locations?

I have this amps = arrayfun(@(h2) max((findpeaks(udata(h2, :), x) < 0.99)... .* findpeaks(udata(h2, :), x)), 1:size(udata...

8 months ago | 2 answers | 0

### 2

answersQuestion

Finding peaks with a set amplitude range?

I'm findint the peaks in a signal wich have an amplitude between 0.2 and 1. Trouble is when I call findpeaks via [pks,locs] ...

8 months ago | 2 answers | 0

### 2

answersQuestion

Detecting peaks with a specified range of amplitudes?

Say i have a signal with range betwene [-3, 3] and I want to locate peaks within an amplitude range of say [0, 1], how might I d...

8 months ago | 1 answer | 0

### 1

answerQuestion

Converting an array slicer to Python

I have this code in MATLAB (attached below) and wondered how I'd go about converting it to Python seeing as it keeps giving me a...

8 months ago | 2 answers | 0

### 2

answersQuestion

How to merge and slice arrays of different sizes?

Say I have one aray called `ydata` which has dimension 1x24000 and I want to slice a part of this array, say from index 2:3000 a...

8 months ago | 2 answers | 0

### 2

answersQuestion

Function which creates a vertical line (Heaviside or something) which has a double gap in it

I want to create a function which produces something like this where we have a vertical line which has a gap in it. https://i....

9 months ago | 1 answer | 0