Answered
How to group data within a column by specific text within that column
Illustration with faked data... tmp=categorical({'star','bat','crab'}); % the categorical variable categories t=table(tmp(...

5 years ago | 0

Answered
is there a way to plot change point detection on a scatter plot?
See if <Piecewise Polynomial> is what you're asking for...

5 years ago | 0

| accepted

Answered
How to group data within a column by specific text within that column
A sample dataset always helps, but probably be good to convert species to a categorical variable first (although not mandatory)....

5 years ago | 0

Answered
How can I replace outliers with 2 standard deviation from the mean
Can't do it with filloutliers alone; it for some reason doesn't have the facility to use a function handle as a fill option... ...

5 years ago | 1

| accepted

Answered
How to make this function run faster
For starters, try... ... IJ=inv(J); for i = 1:2 for j = 1:2 for k = 1:2 for l = 1:2 AA = IJ*F(i,1)*F(...

5 years ago | 0

| accepted

Answered
Generating non-repeating numbers by using a for-loop and break statement
The function doesn't return anything, though...either your original nor mine. I didn't catch that before. If the idea is to re...

5 years ago | 0

Answered
Plotting a curve with just x values
Something like x=[3,3,4,5]; n=histc(x,unique(x,'stable')); v=[1:numel(n)]; m=fitlm(v,n); bar(n); xlim(xlim+[1 -1]*0.5) ho...

5 years ago | 1

| accepted

Answered
Expected input number 2, edges, to be one of these types
W/O the Statistics TB, you'll have to resort to some other way to compute the wanted distribution quantities -- a quick look at ...

5 years ago | 1

Answered
3D plot time on x-axis, data from each column on z-axis and # of column on y-axis
waterfall(T,[1:numel(T)].',UH_V) maybe?

5 years ago | 0

| accepted

Answered
Maximum value from data
findpeaks uses more logic internally than just height; it will consider points inside the peak width as being part of the larger...

5 years ago | 0

| accepted

Answered
How to Fit Points on a Previous Plot
If I understand what you're after from the code that doesn't quite work-- plot(pro(:,1),pro(:,2)) hold on iz=arrayfun(@(z)fin...

5 years ago | 0

| accepted

Answered
Convert Table to Matrix
The phone rang...and Chris got back first, but my next response was to be-- opt=detectImportOptions('tex_file.txt','FileType',"...

5 years ago | 0

Answered
How to Fit Points on a Previous Plot
I'm betting you're forgeting your above note that increasing depths are larger negative numbers and have something like the foll...

5 years ago | 1

Answered
How can I change this code to get the line when plotting the graph? Because I tried adding commands related but still there is no line when I am running the codes
You're creating a new animatedline object every time, not adding points to the ones intended...that's not how the examples in th...

5 years ago | 1

| accepted

Answered
I want to resize font of the power of ten of plot.
hAx=gca; hYAx=hAx.YAxis; % handle to Y axes numeric ruler object hYExpText=hYAx.NodeChildren(1); % han...

5 years ago | 0

| accepted

Answered
How to obtain FRF if sampling frequency for INPUT and OUTPUT data is different?
You'll need to resample one or both to a corresponding time base. This will introduce some error into the estimation; if the sa...

5 years ago | 1

Answered
Avoid exponential values as y-axis label in App Designer
The 'exponent' property is a property of the NumericRuler axis object, not the main axes. app.UIAxes_nomcashflow.YAxis.Exponen...

5 years ago | 0

| accepted

Answered
How do I store data that meet conditions of an if statement
Don't need any loops nor the explicity xy array that is duplicate of existing data. data=nan(size(x,1),2); % initi...

5 years ago | 1

Answered
Help with splitting data
>> datetime(extractAfter(c(contains(c,'D_')),'D_'),'InputFormat','yyyyMMdd') ans = 4×1 datetime array 29-Jul-2017 1...

5 years ago | 2

| accepted

Answered
Reading specific lines from multiple text files
Ya' gotsa' skip the text to get to the floating point value... ... T=cell2mat(textscan(fid,'%*s%f',1,'HeaderLines',linenum-1))...

5 years ago | 0

| accepted

Answered
creating a menu for a .MAT file.
Your data doesn't go into the menu; it is simply a selection mechanism for the user to pick a specific action; one then has to w...

5 years ago | 1

Answered
How do I convert dates from excel into Matlab
tData=readtable('yourfile.xlsx','ReadVariableNames',0); tData.Properties.Variablenames={'Day','Hour','WindDir','Speed'}; tData...

5 years ago | 0

Answered
How can a copy a MATLAB code into word?
See if doc publish leads to joy...

5 years ago | 0

Answered
how to set different xlabels for all subplots in for loop at once?
YLABS=["Fuel/g", "time/s","distance/m", ...]; % define the ylabel strings for i=1:length(DATA1(1,:)) hAx(i)=subplot(4,4,i)...

5 years ago | 0

Answered
Extract Data From Imported Excel Sheet Containing Specific Numeric Values
Rather than duplicating the same data in multiple places, use grouping variables to process the data by the desired categories/g...

5 years ago | 0

| accepted

Answered
Improve the performance of a function based on str2double
Variations upon a theme -- this is almost 2X as fast as my previous...here it times out as just a fraction ahead of the original...

5 years ago | 1

Answered
Position of two subplots with bar and plot charts
You're messing with the wrong thing -- it's xlim you want to make the same... ... figure hAx(1)=subplot(2,1,1); ...

5 years ago | 0

| accepted

Answered
problem with 'extract' function
What do you get when you type ver at command line? extract wasn't introduced until just now in R2020b so if you have a releas...

5 years ago | 1

Answered
Improve the performance of a function based on str2double
"Deadahead" solution without any attempt to use anything fancy...regular expressions are known to be expensive; I've never compa...

5 years ago | 1

| accepted

Answered
extract data from table matlab
That's messy...that they didn't put the data into separate columns makes it rougher...almost do have to separate out the T senso...

5 years ago | 1

Load more