Réponse apportée
How to compare two arrays and add elements to the first one
You were on the right track... [LIA,LOCB]=ismember(A1(:,1),A2(:,1)); % find locations in respective arrays first column...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
How to create separate tables from a data set
Boy! is that a mess! Why people/vendors do such things is beyond ken. Another start... G=readcell('Level Reduced.csv'); ...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
Error using tabular/plot
Named parameters must follow X,Y,linespec triplets. plot(t,V,'r','LineWidth',3); instead. Or, alternatively, plot(t,V,'LineWi...

plus de 5 ans il y a | 0

Réponse apportée
How to perform a task on each 2D within a 3D array and get back the 3D at the end of it?
... non_uniform_FFT= DFTmtx* k2F;% This is a 2D array after each iteration. non_uniform_FFt= cat(3,non_uniform_FFT,non...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Importing date and time from a txt file
Add the first column datetime() and the second column duration(), or Read the file as fixed-width combining the first two colum...

plus de 5 ans il y a | 0

Réponse apportée
How to save an excel file to a specific path using ActiveX controls?
You don't give a fully-qualified filename; what else is it to do but use system default? [file,path]=uiputfile('.xlsx'); Workb...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
How to combine stacked bar chart and line chart?
Seems to work fine here... figure hB=bar(step,array,'stacked'); ylim([0 16]) xlim(xlim+[1 -1]*500) yyaxis right hL=plot(st...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
How to approximate value to values in an array
See doc interp1 with 'nearest' method.

plus de 5 ans il y a | 0

Réponse apportée
Match Xticks to Datapoints
x=[1 10 30 125 250 500]; plot(x,sort(randi(40,[6,1])),'*-') xticks(0:100:500) will duplicate the above with the addition of a...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Match Xticks to Datapoints
"with datetime, but then it is impossible to just display days and not specific dates." Au contraire, good buddy! tt=array2tim...

plus de 5 ans il y a | 0

Réponse apportée
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(...

plus de 5 ans il y a | 0

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

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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)....

plus de 5 ans il y a | 0

Réponse apportée
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... ...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
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(...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
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 ...

plus de 5 ans il y a | 1

Réponse apportée
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?

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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',"...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 1

Réponse apportée
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...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 1

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 1

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

plus de 5 ans il y a | 2

| A accepté

Réponse apportée
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))...

plus de 5 ans il y a | 0

| A accepté

Charger plus