Community Profile

photo

dpb


4,124 total contributions since 2012

Contact

dpb's Badges

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

View details...

Contributions in
View by

Answered
Floating point error incrementing in while loop
https://www.mathworks.com/matlabcentral/answers/57444-faq-why-is-0-3-0-2-0-1-not-equal-to-zero

2 hours ago | 1

| accepted

Answered
How can I load (many!) points from file, and display them in 3D including color?
See doc scatter3 ML can read whatever datafile format you wish to use...for such large data a stream file would be obvious cho...

1 day ago | 0

Answered
Save files to folder loop won't save the .txt files
% location of data files data_path = 'C:\....\Desktop\Fat-L100T10-785'; % create search string to pick up all txt files in fol...

3 days ago | 1

| accepted

Answered
How to Combine Line and Bar Charts with multiple groups in the same figure?
Oh...didn't follow what were after...thought it was to create the image-like figure... The following will get you started -- h...

4 days ago | 0

| accepted

Answered
How do I scan in data that is flowing on each other horizontally, the values running into each other can't be recognized and separated correctly.
Use opts=detectImportOptions(readfile); to create a base import options object for fixed-width text and then fix up the Varia...

4 days ago | 0

| accepted

Answered
phase plot no giving the correct plot
Don't forget floating point precision... >> real(a) ans = 1.0e-15 * 0.0555 0.1665 0.0555 0.0185 -0.1295 ...

4 days ago | 0

Answered
Moving files to new folder based on timestamp
Return the dir() of the files matching desired pattern and then convert the .date field to datetime. You can then use whatever ...

4 days ago | 0

Answered
How can I display greek letters as boxplot labels?
Axes labels aren't text objects; you didn't diagnose the result of your probe: ... h = findobj(gca, 'type', 'text'); >> h h ...

4 days ago | 2

Answered
Gettind the indexes of table array with time and data according to datetime vector with time. Or how to syncronize datetime vector with table array
OK, with the code to see what it was you were really trying to do it's easier... First, there's an issue with your table that m...

5 days ago | 0

| accepted

Answered
How to revert graphs.
Basically, don't erase/delete anything until you're sure you're done with it. Save the line handle(s) to the lines when drawn; ...

8 days ago | 1

Answered
Matrix Dimensions must agree
The + operator only works for the class string catenation, not character strings. path_new="C001H001S00040" + i3 + ".tif"; ...

9 days ago | 0

Answered
psd estimation using welch's method
To compute via Welch's overlapping estimator, yes. Of course, you can compute PSD from base product directly with FFT() and ch...

9 days ago | 1

| accepted

Answered
Correlation between two non-linear vectors
Can I trust the function corrcoef?" Well, you can trust it to have computed what it says it computes which is the estimate of ...

10 days ago | 0

Answered
Trasform cell arrays vector into a double vector
All the gyrations with tables are apparently totally unnecessary and just added complexity... pluto_test=cell2mat(c2); pippo_t...

10 days ago | 0

Answered
Displaying special characters in dialog box
Dialogs don't have 'Interpreter' property, unfortunately, and they're not full-blown text objects underneath. Have to hardcode ...

10 days ago | 0

Answered
Importing Histogram bin width & bin frequency data without access to underlying raw data
Just read the data in as is; no need for Excel. I'd use bin midpoints altho will make little difference on fitting is probably ...

10 days ago | 0

Answered
Why fileID value is -1 in fopen function despite that it seems to have opened and read the file content successfully?
Also, too: Your logic doesn't immediately continue to the next file in the for...end loop after the error message--it just does...

10 days ago | 0

Answered
Wrong axis value in correlation plot
It's a confusing labeling problem -- the ticks aren't actually the variables on the plot for the histogram but for the scatter p...

10 days ago | 1

Answered
Occurence with 2 variables
HD=[HsW;DirW].'; % combine data for convenience Pattern=[HD(1:2,:)]; % the look...

10 days ago | 0

Answered
how can i display only two decimals in uitable MATLAB?
Don't have that much flexibility with numeric formattting in the object, sorry. uitable uses the same setting as the command wi...

11 days ago | 0

Answered
A clever way to have dynamic output variables from a function??
Do NOT write code with metadata in variable names nor sequentially-numbered or lettered ones for starters...use an array. Then ...

12 days ago | 1

Answered
I want to my contour plot to look like the one from mathematica?
One of the examples from ML doc (peaks function) with x/y limits expanded to more or less mimic the kind of figure you have resu...

13 days ago | 0

Answered
Skipping 1st two calculations of a loop
for i=1:n for j=1:k C(i,j)= a(i)+b(j)+c(j) end end C(1,1:2)=[C11 C12]; % fixup special cases

15 days ago | 0

| accepted

Answered
Inserting number where vector changes from positive to negative
On the chance the crystal ball foresaw the answer to the above questions, try the following (or perturbations thereof)... x = [...

15 days ago | 0

Answered
Read only numerical values from mixed text file
Something like fmt1='NODes %n ELEments %n'; % info line nodes, elements in file fmt2=repmat('%f',1,4); fmt3=repmat('...

15 days ago | 0

Answered
Index on a matrix
xlo=0.000020; xhi=0.000025; d=dir('*.csv'); nFiles=numel(d); % how many are there? vt=zeros(nF...

16 days ago | 0

Answered
How to copy first column, and replace other columns with this first column values in same array in MATLAB? (array size can vary)
"copy what ever is in the first column (first column will have each row with different values and have n number of rows in it), ...

16 days ago | 0

| accepted

Answered
Multivariate regression betas stock returns
OK, just add as new Answer since preceding getting rather long...try this out; seems to work ok here on the sample dataset. NB:...

16 days ago | 0

| accepted

Answered
Print OCR results to text file
AHA! The one about "Expected one output from a curly brace or dot indexing expression, but there were 544 results." is helpful!...

17 days ago | 0

Answered
Multivariate regression betas stock returns
Just saw something overlooked last night... if size(vars,1) > 15 I think there's your problem -- you only calculate a re...

17 days ago | 0

Load more