Community Profile

photo

HC98


Last seen: 6 days ago Active since 2018

Statistics

  • Thankful Level 3

View badges

Content Feed

View by

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

answers

Question


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

answers

Question


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

answer

Question


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

answer

Question


stacked plots with contour- custom lsyout
How might I produce sumething like this?

3 months ago | 1 answer | 0

1

answer

Question


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

answers

Question


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

answer

Question


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

answer

Question


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

answers

Question


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

answers

Question


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

answer

Question


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

answer

Question


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

answer

Question


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

answer

Question


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

answers

Question


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

answers

Question


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

answer

Question


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

answers

Question


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

answer

Question


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

answers

Question


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

answer

Question


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

answers

Question


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

answer

Question


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

answers

Question


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

answers

Question


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

answers

Question


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

answer

Question


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

answers

Question


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

answers

Question


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

1

answer

Load more