Question

Loop for mutliple (but variable) number of plots on multiple pages

I'm trying to make multiple pages of subplots, but the number of pages varies. There will be 12 subplots per page. Note that som...

7 dagen ago | 1 answer | 0

Question

Help parsing predictably messy data

I have some really messy data that I am trying to reorganize. The attached *.txt is an example subset. The first screenshot belo...

10 dagen ago | 1 answer | 0

Answered

I want to add this cell variable 'condition_col' to existing matrix 'data' if certain conditions are met, following code doesn't work, any help?

See if this helps to get you on the right track: % set up dummy data to work with data = rand(20,1); data = array2table(data)...

I want to add this cell variable 'condition_col' to existing matrix 'data' if certain conditions are met, following code doesn't work, any help?

See if this helps to get you on the right track: % set up dummy data to work with data = rand(20,1); data = array2table(data)...

19 dagen ago | 0

| accepted

Question

Unable to link x-axis in subplot

I can't seem to get linkaxis to work (code is below, with small datasets attached). I am trying to get the subplots to line up, ...

20 dagen ago | 1 answer | 0

Answered

Find four midpoints between each two nodes

This should work: d = [1 1; 2 1; 2 2; 1 2]; givenMidpoints = [1.25 1; 1.5 1;1.75 1; 2 1; 2 1.25; 2 1.5; 2 1.75; 2 2; 1.75 2; 1...

Find four midpoints between each two nodes

This should work: d = [1 1; 2 1; 2 2; 1 2]; givenMidpoints = [1.25 1; 1.5 1;1.75 1; 2 1; 2 1.25; 2 1.5; 2 1.75; 2 2; 1.75 2; 1...

20 dagen ago | 1

| accepted

Answered

Plot best fit line in log-space & get slope

Star Strider basically gave the correct answer, so I have accepted; but I wanted to show the fit in log-log space, so here's my ...

Plot best fit line in log-space & get slope

Star Strider basically gave the correct answer, so I have accepted; but I wanted to show the fit in log-log space, so here's my ...

20 dagen ago | 0

Question

Inserting string into specific field in table

I'm trying to insert a string into a specific cell in a table. I've tried a handful of combinations, including curly brackets, c...

20 dagen ago | 0 answers | 0

Answered

reading csv file from 10 th line ?

If you want to read only the 10th line: mydata10only = textscan(fid001, '%f %f %f %f', 1 , 'HeaderLines', 10); mydata10only = ...

reading csv file from 10 th line ?

If you want to read only the 10th line: mydata10only = textscan(fid001, '%f %f %f %f', 1 , 'HeaderLines', 10); mydata10only = ...

27 dagen ago | 0

Question

Plot best fit line in log-space & get slope

I am trying to determine the slope of the best-fit line in log space, and plot the best-fit line as a visual check. It needs to ...

27 dagen ago | 2 answers | 0

Answered

Resample points that make up a line

I solved this by [for each group_id] getting the distance between each counter_id. Then if the distance was less than the thresh...

Resample points that make up a line

I solved this by [for each group_id] getting the distance between each counter_id. Then if the distance was less than the thresh...

ongeveer een maand ago | 0

| accepted

Question

Resample points that make up a line

My dataset consists of lines that are defined by "group_id" and "counter." Each group_id is one line, and the counter is the ord...

ongeveer een maand ago | 1 answer | 0

Question

How to repeatedly subdive vector rectangle into equal area?

I have x,y point data that I am trying to analyze in "swaths" or rectangles along the x-axis. I need to take the rectangle and s...

ongeveer een maand ago | 1 answer | 0

Answered

regexprep() skip first occurrence

this works but perhaps is not most efficient: [spaces,letters] = regexp(mystring, ' ', 'match', 'split', 'forceCellOutput'); s...

regexprep() skip first occurrence

this works but perhaps is not most efficient: [spaces,letters] = regexp(mystring, ' ', 'match', 'split', 'forceCellOutput'); s...

5 maanden ago | 0

Question

regexprep() skip first occurrence

Is there a way to use regexprep() but skip the first occurrence of a space? mystring = 'this is my string'; desired return: m...

5 maanden ago | 2 answers | 0

Answered

Delete rows in cell that contain part of string

Below works, but perhaps is not the most elegant code. rawdata = textscan(fid, '%s %s' , 'HeaderLines', 7); fclose all; rawda...

Delete rows in cell that contain part of string

Below works, but perhaps is not the most elegant code. rawdata = textscan(fid, '%s %s' , 'HeaderLines', 7); fclose all; rawda...

5 maanden ago | 0

Question

Delete rows in cell that contain part of string

I have an Nx2 cell (mixes of strings and doubles) that I'm trying to clean up (rawdata). Specifically, I am trying to delete all...

5 maanden ago | 2 answers | 0

Question

Efficiently import text file with irregular struture

I have data like the sample attached. I'd like to efficiently read it in and ultimately have a table with the following columns:...

5 maanden ago | 1 answer | 0

Question

Append to exisintg file column-wise, different number of rows, don't add NaNs

I'm trying to append a table column-wise (with specific column names, so not a matrix) to an existing TXT. The existing file has...

6 maanden ago | 0 answers | 0

Answered

Change upper limit of HSV colormap

This actually is what I was looking for; the above answers are helpful for manipulating the HSV matrix, but this by-passes that ...

Change upper limit of HSV colormap

This actually is what I was looking for; the above answers are helpful for manipulating the HSV matrix, but this by-passes that ...

10 maanden ago | 0

| accepted

Question

Change upper limit of HSV colormap

Is there any way to change the upper limit of the HSV colormap (https://www.mathworks.com/help/matlab/ref/hsv.html), so that the...

10 maanden ago | 3 answers | 0

Question

Scatter Plot, Color on Z not differentiated as expected

I have a dataset of ~150k pts, xyz. Range of z is pretty broad, as illustrated below. I'd like a color map of z, not just shades...

10 maanden ago | 1 answer | 0

Question

Launch Java app & populate entry fields via Matlab

I have a couple programs I run frequently that all written in Java and are bundled as double-clickable JAR files. The programs e...

10 maanden ago | 1 answer | 0

Question

Add number of data points to gscatter() legend

I have a set of data points I am plotting using gscatter(). All the points classified as "Type1" plot as blue circles, "Type2" p...

meer dan een jaar ago | 1 answer | 1

Question

Define bar3() colors with hold on

I am trying to control the colors in a bar3() plot using hold on, but I keep over-riding my previous plot. My code is below....

meer dan een jaar ago | 1 answer | 0

Question

How to use solve() with max()

<</matlabcentral/answers/uploaded_files/106065/Capture.JPG>> Hello, I am trying to solve() the equation pictured for "A" (Ac...

meer dan een jaar ago | 1 answer | 0

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

bijna 2 jaar ago

Question

3D bar graph with gradient Z values

I'm trying to make a 3D bar graph from a 3-column matix (let's call the columns x-y-z). For any x-y combo, there are multiple z ...

bijna 2 jaar ago | 1 answer | 0