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

casi 6 años hace | 0

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

casi 6 años hace | 0

| aceptada

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

casi 6 años hace | 0

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

casi 6 años hace | 1

| aceptada

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

casi 6 años hace | 0

| aceptada

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

casi 6 años hace | 0

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

casi 6 años hace | 1

| aceptada

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

casi 6 años hace | 1

Respondida
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?

casi 6 años hace | 0

| aceptada

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

casi 6 años hace | 0

| aceptada

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

casi 6 años hace | 0

| aceptada

Respondida
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',"...

casi 6 años hace | 0

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

casi 6 años hace | 1

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

casi 6 años hace | 1

| aceptada

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

casi 6 años hace | 0

| aceptada

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

casi 6 años hace | 1

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

casi 6 años hace | 0

| aceptada

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

casi 6 años hace | 1

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

casi 6 años hace | 2

| aceptada

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

casi 6 años hace | 0

| aceptada

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

casi 6 años hace | 1

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

casi 6 años hace | 0

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

casi 6 años hace | 0

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

casi 6 años hace | 0

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

casi 6 años hace | 0

| aceptada

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

casi 6 años hace | 1

Respondida
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); ...

casi 6 años hace | 0

| aceptada

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

casi 6 años hace | 1

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

casi 6 años hace | 1

| aceptada

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

casi 6 años hace | 1

Cargar más