Community Profile

photo

dpb


Last seen: Today Active since 2012

Statistics

All
  • First Review
  • Master
  • Thankful Level 2
  • 36 Month Streak
  • Revival Level 1
  • Knowledgeable Level 4
  • First Answer
  • Solver

View badges

Content Feed

View by

Answered
how to run multiple number of regressions?
tRegress=rowfun(@(x,y)polyfit(x,y,1),T,'GroupingVariables',{'Location'}, ... 'InputVaria...

2 hours ago | 0

| accepted

Answered
how convert the vector to matrix ? unknown number of columns
A=1:9; nRow-3; >> A=reshape(A,3,[]) A = 1 4 7 2 5 8 3 6 9 >> The posted in the...

3 hours ago | 0

Answered
Divide each element of an array by the corresponding element of another array
c=a./b; Read the "Getting Started" to get basic syntax...

13 hours ago | 0

Answered
How do I get a "≤" sign to appear in my function's HELP documentation?
<unicode-characters-in-m-file>

1 day ago | 0

Answered
HELP Plotting hourly time series data
Use the builtin tools and datetime instead of deprecated datenum/datetick uvFile = 'C:/Users/darcy/OneDrive/Desktop/Darcy/temp ...

1 day ago | 0

| accepted

Answered
How to plot curve instead of straight line in MATLAB?
A demo built around a rough approximation of your figure... figure % approximate the quadrilateral above plot([5 5],[250 380]...

2 days ago | 0

Answered
Compare a column in two different excel-sheet
Just read both sheets -- CODES=categorical({'bad','good'}).'; % the output categories A1=readmatrix('Workboo...

2 days ago | 0

Answered
Perform a calculation using data from multiple tables
You can probably most simply just augment your flight table...something like-- % preparations tDist=readtable('Airport distanc...

2 days ago | 0

Answered
Correct way to calculate Moving Mean for Ozone hourly values
1, 3. "movmean(A,[kb kf]) computes the mean with a window of length kb+kf+1 that includes the element in the current position, k...

3 days ago | 0

| accepted

Answered
How do I get readtable to skip lines with certain text?
That's not a great format for readtable to try to parse -- it's got the variable names as columms and so are interpreted as data...

3 days ago | 0

Answered
Problem with importing a text file
"... it only imports the lower part:" Of course, because the file is a mishmash of stuff and only the last section is a regular...

3 days ago | 0

| accepted

Answered
Conversion and Merger of date and time using datetime
Didn't do you any favors in using the ":" for the separator of the msec field, did they? :) But, the above looks like should w...

3 days ago | 0

Answered
Using find command to group data into bins
find is not the tool for this; see grpstats or groupsummary or for more generality, findgroups combined with splitapply

3 days ago | 0

Answered
How can I write division formula in label of matlab app designer?
The above LaTex string is bad syntax -- here's a simplified illustration of what is needed -- your expression is far more comple...

3 days ago | 0

| accepted

Answered
Call two folders (or directories) with the same file in the script
basedir='C:\Users\Jacqueline\ERA5\Downloads\'; fn='ERA5_2010.nc'; N=2; for i=1:N fqn=fullfile(basedir,num2str(i,'%02d'),fn...

3 days ago | 0

Answered
error bars on grouped barplot with 2 axis
Little tricky -- although in a recent release TMW finally made the XEndPoints property visible so at least can see it is there.....

3 days ago | 0

| accepted

Answered
How to adjust the legend of pie chart
legend is limited in its flexibility, unfortunately. A given axis can have only one legend and the second axis/figure "knows nu...

4 days ago | 0

Answered
Creating hourly average data with geographic coordinates to produce 3D matrix
rowfun to the rescue yet again... :) tData=readtable(); longrid=-180:10:180; latgrid=-90:10:90; [~,~,~,tData.lon_g,tData.lat...

4 days ago | 0

| accepted

Answered
how to pass a function with internally set parameters as an input to another function
a0] = fscoeff(ft1) The above, indeed, is calling ft1 without any arguments and it expects, nay! - requires one. MATLAB evalua...

4 days ago | 0

Answered
How to plot the average and std shade of 4 different datasets?
I'm rushed for time so not complete solution, but the outline of how to proceed... [mxx,ix1]=max(dataset1_x); % ...

4 days ago | 1

| accepted

Answered
printing a table made of 3 arrays
disp() just displays something to the command window without the "variable =" prefix; it doesn't save anything. Also, the hint ...

5 days ago | 1

Answered
Matlab code for Stirmark
Don't think anybody has undertaken task -- and seems pointless to write in high-level m-code. Somebody could do a service and w...

5 days ago | 0

Answered
Problem with serialport communication
Extremely difficult to debug what we can't simulate in cases like this without access to the instrument... But, the last proper...

5 days ago | 0

Answered
EDF reading: edfread gives timetable; possible to get struct?
Undoubtedly your colleague still has the FEX version and has it where it aliases the builtin version. This would happen trans...

5 days ago | 1

| accepted

Answered
Reading multiple sheets from an excel file
You'll just have to loop over the sheets; use sheetnames to return the list of sheets in the given file and iterate over it--pre...

5 days ago | 0

| accepted

Answered
How to make scatter
Per IA's direction...with a correction for the data variables--dpb :) You don't need two axes for that, just hold on hold on ...

5 days ago | 0

| accepted

Answered
If statement in a for loop
See above comment -- your IF expression is not ever TRUE unless each and every member of NewDist < 1 so it is never executed. B...

6 days ago | 0

Answered
how to write a Matlab code to sum 10 terms of rational numbers?
N1=39; d1=8; N2=36; d2=12; D1=2; D2=5; S=N1/D1-N2/D2; for i=2:10 N1=N1-d1; N2=N2-d2; D1=D1+d1; D2=D2+d2 S=S+N...

6 days ago | 0

Answered
How to display serial port setting?
See doc serialport and auxiliary section on serial port devices for all the skinny...

7 days ago | 0

Answered
How to multiple set of normally distributed data?
You rest the RNG before each of the two sets in first code segment but only at the beginning of the loop in the second so the tw...

7 days ago | 0

| accepted

Load more