Community Profile

photo

dpb


Last seen: Today Active since 2012

Statistics

All
  • Revival Level 2
  • First Review
  • Master
  • Thankful Level 3
  • 36 Month Streak
  • Knowledgeable Level 5
  • First Answer
  • Solver

View badges

Content Feed

View by

Answered
Find country code from city name
Postal codes helps for many countries, yes...although there are some that either don't have or don't use one, if all your addres...

alrededor de 2 horas ago | 0

Answered
index exceed the number of arrays elements
length_collective=length(Collective); %equals to 124 length_single=length(single); %equals to 393 for i=1:1:length(Collective)...

alrededor de 4 horas ago | 1

Answered
Why does num2str() of 138.97 return 138.96999999999999886?
Wrong expectation for floating point numbers -- short story is if a fraction is not exactly representable by 1/2^n, it'll not be...

alrededor de 16 horas ago | 0

Answered
Merge 864 single column text files and 60,000 rows in single file. How to get a matrix with 60000 rows and 864 column
It would be simpler if you had named the files so they would sort lexically as C001, C002, ... etc., but it's still not too bad....

alrededor de 21 horas ago | 0

Answered
A compact way to find single digit numbers (i.e. numbers between 0 and 9) and replace them with two digit numbers
For what purpose and in what context? You will only be able to show the leading zeros if you convert the numeric values to some...

1 día ago | 0

Answered
Legend command not working when plotting figure
Try something like figure pbaspect([1 1 1]) loglog(ElectronEnergy(:), [ElectronDifFlue(:) ElectronSolMinDifFlue(:)], 'LineWid...

1 día ago | 0

Answered
Delete selected worksheet from Excel
OK, I'll create new Answer to move out of the previous longish comments and to reflect what I now (think) I know that I wasn't f...

2 días ago | 0

Answered
Winopen does not work on executable
I've packaged it (winopen) in another app and it works fine. Looking at the above code snippet, I'd hypothesize your problem is...

2 días ago | 0

Answered
How to have top x axis with different scale as compared to bottom x axis for same plot?
Try fhe FEX submission <plotxx-m FEX> -- I've not used it, but looks like it does nice job...

2 días ago | 0

Answered
Fast fourier tranformer for Time series data
No disagreements at all with what @Bjorn Gustavsson notes, just do a baseband PSD and look at the signal some... First, look at...

2 días ago | 1

Answered
Delete selected worksheet from Excel
excelName1= fullfile(newPath,excelFile); %file name and address, worksheet to be deleted from this Excel. Excel = actxser...

3 días ago | 0

Answered
How to create a textbox using annotation, that includes matlab shapes?
While apparently theoretically possible to mung on the vertices of an annotation object to change the shape -- figure hF=gcf; ...

3 días ago | 1

| accepted

Answered
Delete selected worksheet from Excel
You don't seem to be following the path I laid out but reinventing the wheel and changing coding styles... The thread <Excel Ut...

3 días ago | 0

Answered
R-squared analysis of scatter plot resulting in NaN
'Pends on how you did it -- show your code for exact answer to that direction, but -- If you have the Statistics TB, then use ...

3 días ago | 0

Answered
merge six columns with zeros step by step end of each one
It would be far easier to write code if you would use cell array for the existing data instead of a bunch of named variables -- ...

3 días ago | 0

Answered
How do I run the function for each value in array?
clear global Tth1 Tth2 A B data= ... Therein lies your problem -- you wrote a script instead of a function -- get rid of th...

4 días ago | 0

| accepted

Answered
how to copy sheet from one excel to another sheet of excel.
OK, here's a barebones routine that works to duplicate the given sheet, placing it after the copied one and names it to the requ...

4 días ago | 0

| accepted

Answered
How can I edit code so only bottom graph is displayed.
W/o the data and w/o knowing what didn't work, the simplest way to just get the second plot alone by itself would be to just dra...

4 días ago | 0

Answered
How to Extract ROI on a signal with additional rows before and after threshold
It's gotten too convoluted -- yes, the original answer does, as noted in the last comment, only return the first/last -- your or...

4 días ago | 1

| accepted

Answered
How to remove one single quote at the beginning of a string?
The MATLAB function to retrieve the extension and filename is fileparts and to rebuild a new one is fullfile But, in this case...

5 días ago | 0

Answered
Multi Colors and Legend for each bar
Slightly different, using a colorbar is nice alternative; legend is somewhat problematical owing to design of bar in that it's o...

5 días ago | 0

Answered
how to copy sheet from one excel to another sheet of excel.
Had a few minutes so poked around a little as explained above... Excel = actxserver('Excel.Application') excelFullFileName=ful...

5 días ago | 0

Answered
Change value based on the values of another column
If there's always at least one zero before the new -ive value excepting the initial element, then ix=find(diff(sign([0;x]))==-1...

5 días ago | 0

Answered
Creating vector of labels
pics_ds = ones(size(pics_ds)); words_ds = -ones(size(words_ds)); MATLAB reallocates the LHS variable when not subscripted to ...

5 días ago | 0

Answered
How and when to apply calibration to my pressure measurements (calibration factor is available)?
Calibrate/convert the time signal to pressure units as the very first step.

6 días ago | 0

| accepted

Answered
Saving Each Table Within a Structure as its Own Entity
"I want to split this table into N=4 smaller tables:..." Again, that's the wrongheaded approach -- it can (and should) be done ...

7 días ago | 0

| accepted

Answered
How do you write a loop for a variable that will list 6 rows but you want the equation to apply for those 6 rows and 30 rows after each of them
nAddLines=30; for i=1:numel(RA4) ix1=RA4(i); ix2=ix1+nAddLines; XError(?)=abs(COMArray(ix1:ix2,1))-abs(New_COM(ix1:ix2...

7 días ago | 0

Answered
How to Extract ROI on a signal with additional rows before and after threshold
Revised to match the figure and new understanding of intent to isolate one transient and select ROI around it -- the second trac...

7 días ago | 0

Answered
Reading a set of numeric values from 100s of .txt files inside a folder
Alternatively, just as an experiment, wonder how it would work using some of the more recently introduced features -- foldernam...

7 días ago | 0

Answered
How to build up linear functions in MATLAB and plot the?
% the lookup table/interpolant function... y=[0 0.25 0.30 0.55 0.6 1]; x=[0 0.05-eps(0.05) 0.05 0.25-eps(0.25) 0.25 0.6]; %...

7 días ago | 1

Load more