Answered
Create a infinite while loop
As is, it would be better to open the file first and write each record; the line bufferRx1(indRx1:indRx1+samplesLength1-1) ...

11 días ago | 0

| accepted

Answered
Calculating the Gaussian distribution paramaters
Let's try your formula with numbers... >> data1 = normrnd(-6,3,[200 1]); >> mean(data1) ans = -6.1098 >> std(data1) ans...

12 días ago | 1

| accepted

Answered
cell2mat has a very specific condition
Indeed, you made dereferencing the data about as hard as could by putting it into cell array -- a struct could/can hold an ordin...

13 días ago | 0

| accepted

Answered
Separate a matrix into bins based on first column values
load DataRoll bar(N) xlim([0.25 31.75]) [min(DataRoll(:,1)) max(DataRoll(:,1))] [N,e,g]=histcounts(DataRoll(:,1),-15:16); t...

16 días ago | 0

Answered
Listing values that fall into histogram
edges = 2.^(-2:14); [N,~,bin]=histcounts(Cell_Biomass_001,edges); BinSums=groupsummary(Cell_Biomass_001,bin,'sum');

19 días ago | 1

| accepted

Answered
Why I am getting Same p-value, h and stats while using Wilcoxon Rank test for 7 different data set?
taz=readmatrix('az_solar.xlsx').'; >> [mean(taz) std(taz)] ans = 138.9109 16.7621 >> >> mnref=readmatrix('Mean_Surfac...

20 días ago | 0

| accepted

Answered
Problem in determining standard error and plotting 3 error bars
tData=readtable('WORK.xlsx'); tData.ParticleConc=1E9*tData.ParticleConc; tData.CAPE_Bin=discretize(tData.CAPE,[0,500,900,inf])...

20 días ago | 0

| accepted

Answered
How to insert a zero column vector in a matrix according to a particular position?
ixInsert=N; % set the index Z=zeros(size(M,1)); % the insert vector (don't hardcode magic numbers into code) if ...

20 días ago | 1

Answered
how to repeat a loop?
While you could, why not just duplicate the array as many times as needed once it's been generated -- z=repmat(z,2,1);

20 días ago | 1

Answered
Create new column based on whether values in another column are NaN or a number
tData.Event_Z_Yes=isfinite(tData.Event_Z);

21 días ago | 0

| accepted

Answered
How do for loop and stop when code is catch error 1e-6, and please i need to check following code to get "M1" Value
e1=0.0045/.00264; fnF=@(M1)((2+0.135.*M1.^2)./(2.135)).^(2.135./(4*0.135)).*(1./M1).^0.5-e1; fplot(fnF,[0.1 3]) shows zero cr...

21 días ago | 0

Answered
How to group logical numbers in a vector?
>> num_gr_1=sum(diff(Vector)==1)+(Vector(1)==1) num_gr_1 = 3 >> There are FEX submissions for runlength encoding that ...

21 días ago | 0

Answered
How to change interval of normalized x-axis?
normalize() and plot against the x variable itself instead of the "prettified" xtick values. plot(normalize(x,'range',[0 100]...

21 días ago | 1

| accepted

Answered
replace dlmread file name with a variable in a loop
You've got to turn the numerics into string filename to build dynamically -- for T = [288 299 308 323 337] for P = [10 100 3...

21 días ago | 1

Answered
why i can't delete a surface 3d plot (fsurf i mean) whereas i can delete a plot. If it can be, how can i do that
fsurf(g); does the plot but doesn't return the handle by which to reference it for the delete() operation. hFS=fsurf(g); ...

22 días ago | 0

Answered
choose multiple functions from a larger group
Using listdlg would be one easy-to-code way to get started -- although it doesn't have the facility to limit the number selected...

22 días ago | 0

Answered
How to export data displayed from uitable on GUI MATLAB to Microsoft Excel?
If you use a table for the uitable content, then two advantages -- The uitable looks just like the data table you're manipulati...

22 días ago | 0

Answered
Iterating over array in pair-wise manner and calling function with two args and taking max over all pairs
MAXI=128; % don't bury magic constants inside code; use variables n = 10; c=3; roi_1=randi(MAXI,n,c); n = 8; roi_2=...

23 días ago | 0

Answered
Trying to have a Matlab line plot with Xticks coresponding to numbers with unequal numerical gap but equal spacing.
Good start; a little extra than needed in some places, not quite enough others... :) x=[3:30].'; x(3:3:end)=[]; y = [0.964 0.9...

23 días ago | 0

Answered
show table from bottom to top
data=flipud(data); first...I'm pretty sure there's no direction flag in the uitable properties like in an axes to reverse the d...

23 días ago | 0

| accepted

Answered
How to count how many times a number repeat in a sequence
See <FEX/56131-runindex> There are other similar submissions with slightly different functionalities; search at your heart's co...

24 días ago | 0

| accepted

Answered
Merging two arrays containing decimal points into a table
Aha! As we suspected, the problem is in what was NOT shown -- the order variable is apparently an int32; MATLAB will silently c...

24 días ago | 1

| accepted

Answered
Visualization shows only the last 8 days
'DateRange' — Range of data to return datetime vector Range of data to return, specified as a comma-separated pair consisting ...

24 días ago | 2

| accepted

Answered
How to extract hour+minute from DateTime vector ?
Convert to durations and use isAMRush=iswithin(duration(hour(t),minute(t),0),duration(7,45,0),duration(8,45,0));

25 días ago | 0

Answered
I have a table of three columns and I want to find a particular value in third column using interpolation, how can I do that if I know the values at first two columns?
>> SI=scatteredInterpolant(X.',Y.',Z.') SI = scatteredInterpolant with properties: Points: [4×2 double]...

25 días ago | 0

| accepted

Answered
Labeling the X axis in an hour format while original data points were gathered every 5 minuites
Aptamer.Time=minutes(5*[0:height(Aptamer)-1]); % create the time vector at 5 min Aptamer.Time.Format='h'; ...

25 días ago | 0

| accepted

Answered
I want to convert a character series into numerical series using for loop
for j = 1:5 x = []; a = DNA_SEQS(j); ... You wipe out what you put in x later every time you start through the l...

25 días ago | 0

| accepted

Answered
2020a readtable error when specifying rectangular range
The error isn't anything to do with the 'Range' argument; it's the file name ("First input must...") "ChTableXLS is a string wi...

25 días ago | 0

Load more