photo

newbie9


Aktiv seit 2017

Followers: 0   Following: 0

Statistik

All
  • Thankful Level 4
  • Knowledgeable Level 1
  • First Answer
  • Solver

Abzeichen anzeigen

Feeds

Anzeigen nach

Frage


How to get optimal linear scaling factor for a set of vectors
I am trying to determine the optimal linear scaling factor for a set of vectors, such that the mean of the scaled set is close t...

etwa 3 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


interp2() 'monotonically increasing' error
I have many lines that represent a "z" value and want to interpolate at a specific value between them, at a specific x-axis loc...

etwa 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Join 3 tables based on 2 key fields, trouble using outerjoin()
How can I combine 3 tables into 1 table, using two "key" fields? I have tried various combinations of outerjoin() without any lu...

mehr als 4 Jahre vor | 0 Antworten | 0

0

Antworten

Beantwortet
How to save uitable() to PNG
I asked on StackOverflow and got an answer that worked: f = figure; uit = uitable(f, 'Data', table2cell(t)); uit.ColumnName={...

mehr als 4 Jahre vor | 2

Frage


How to save uitable() to PNG
I am trying to use uitable() to convert my Table to a PNG, but I'm having trouble saving it. Using R2018a, no fancy add-ons ...

mehr als 4 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Scatter plot legend marker size is huge
The legend icons in my scatter plot are huge in the saved PDF (they look fine in the Matalb figure pop-up window). I tried some ...

fast 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Subplots squished to top of page, manually setting position not working
I am trying to create a set of 12 subplots on a tabloid landscape layout to print to PDF. The plots are all squished to the top...

fast 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Existing table, populate a column with string (receiving errors)
I have a table, and I want to populate every row in a specific column with the same string. I keep getting errors. Using Matlab ...

etwa 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Duplicate x,y in table; get min/max of variables to new table
I have a large dataset, small subset attached. There are duplicate x,y values. I need a cleaned table with "var1_max, var1_min,...

etwa 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Table, how to replace all values less than X with Y in specific column
Working with a Matlab table, not matrix, how can I replace all values less than X with Y in specific column?

etwa 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Extract all columns from a table where the column names "start with" a string
How can I extract all columns from a table where the column names "start with" a string? For example, in mytable = array2table...

etwa 5 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Customizing location of plot on figure
How can I set a plot to be in the center of a figure, while controlling the width? The problem I ham having is that my heatmap i...

etwa 5 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
Table, delete columns with zero
Got it; it takes two steps. First repalce zeros with NaN, then can clean it up: table2 = standardizeMissing(table1, 0); % the 0...

etwa 5 Jahre vor | 1

| akzeptiert

Frage


Table, delete columns with zero
I have a table with many rows and columns. How can I delete a column if any row contains zero? (I found a million ways to delete...

etwa 5 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


How to make heatmap y-axis based on column names, not column values
How can I make a heat map based on the values in the column names in a table? For example, if I have this table: myTable = [0 ...

etwa 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 5 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
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)...

mehr als 5 Jahre vor | 0

| akzeptiert

Frage


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

mehr als 5 Jahre vor | 1 Antwort | 0

1

Antwort

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

mehr als 5 Jahre vor | 1

| akzeptiert

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

mehr als 5 Jahre vor | 1

Frage


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

mehr als 5 Jahre vor | 1 Antwort | 1

1

Antwort

Beantwortet
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 = ...

mehr als 5 Jahre vor | 0

Frage


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

mehr als 5 Jahre vor | 2 Antworten | 0

2

Antworten

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

mehr als 5 Jahre vor | 0

| akzeptiert

Frage


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

mehr als 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 5 Jahre vor | 1 Antwort | 0

1

Antwort

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

mehr als 5 Jahre vor | 0

Frage


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

mehr als 5 Jahre vor | 2 Antworten | 0

2

Antworten

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

mehr als 5 Jahre vor | 0

Mehr laden