Community Profile

photo

dpb


3,815 2012 年以降の合計貢献数

連絡する

dpb's バッジ

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

詳細を表示...

貢献した分野
表示方法

回答済み
for loop produces a 103x1 array I need a 1x103 array.
Write P_S(ii,1)... But, why use a loop at all--use the vector functions in Matlab instead. I've not tried to decipher the RHS...

約10時間 前 | 0

| 採用済み

回答済み
How do I Create a Matrix that connected to Excel using MATLAB
Have to know the structure of the file or write code to find what you want...I'll presume you can count columns... :) >> [n,t,r...

1日 前 | 0

回答済み
FFT from CSV file
Follow the recipe provided precisely...you've doubled the DC and Fmax components so that the DC bias is shown as twice what it w...

1日 前 | 0

回答済み
Creating plot with 2 x axes
If you'll go through step by step, you'll see the problem doesn't occur until the second plot() call -- you didn't hold the seco...

2日 前 | 0

回答済み
I have a matrix (57,3600,45), how can I create matrices with (3600,45)?
Why did you store data in such a permuted order? However, not to fear, MATLAB can fix your problem! data=permute(data,[2 3...

2日 前 | 0

回答済み
Comparing common strings in two large string arrays imported from excel (using xlsread)
[c,ia,ib]=intersect(categorical(s1),categorical(s2));

2日 前 | 0

回答済み
Plot data with x-axis as date
t=datetime(2019,1,1,0,0:15:365*24*60-15,0); plot(t,randn(size(t))) hAx=gca; hAx.XTick=datetime(2019,[1 7 12],1); ADDENDUM: ...

3日 前 | 0

| 採用済み

回答済み
if function for array
I have a little utility function ("syntax sugar") for such things... plot(x(iswithin(x,52,54))) where >> type iswithin.m ...

5日 前 | 0

| 採用済み

回答済み
I want to read similar column headers and standardize their names
Picking up where left off above with two string arrays of quoted string column labels from the two shown-to-be-different files.....

7日 前 | 1

| 採用済み

回答済み
Saving a cell with multiple vectors of different length to csv or xlsx
The easier way but does open/close the file every time... N=size(val,3); rOff=0; for i=1:N v=val{:,:,i}; ...

8日 前 | 0

回答済み
Jump datetime in graphs and tables
You mean generate a series of some time difference (like three months above)??? dat=datetime(2010,2:3:9*12,1).'; dat.Format='...

20日 前 | 1

| 採用済み

回答済み
csvwrite is storing wrong number
>> tstary=int32(randi(2^31,104937,1810)); >> whos tstary Name Size Bytes Class Attributes ...

22日 前 | 1

| 採用済み

質問


COM Syntax Queston (Excel example but general puzzle)
If/when driving Excel or other apps via COM/ActiveX, "dot" syntax isn't always available for every method and one is forced tor ...

24日 前 | 1 件の回答 | 0

1

回答

回答済み
How to normalize curves with multiple peaks such that each peak will be 1 and each valley will be 0?
If you mean 'builtin' already coded to do that, "No, I don't think so!" I've never seen it actually done before; don't think it...

28日 前 | 0

| 採用済み

回答済み
CUSUM and CUMSUM, cusum not found
>> which -all cusum C:\ML_R2017\toolbox\signal\signal\cusum.m >> Your present release apparently doesn't have the Signal Pro...

28日 前 | 2

質問


ISMEMBER() modified result desired
[lia,locb]=ismember(A,B); returns the first/last matching location in B of the elements in A that occur in B depending on which...

29日 前 | 2 件の回答 | 0

2

回答

回答済み
Create new vector from 2 differnet cells
You could use loops, but that's not "the MATLAB way!"... This also superfically seems like a place cell arrays may be in the wa...

29日 前 | 0

| 採用済み

回答済み
How to remove period stamp in datetime plot ?
This was a side subject of a thread some time back with the need to combine durations with times at which the event durations oc...

29日 前 | 2

回答済み
How to load text file and extract number from file that is not organized into columns?
That's a very nicely organized file in the sections...you just have to know what the section headers are and which you want... ...

29日 前 | 0

| 採用済み

質問


Debug and Focus, Huh?
Is there no way to make focus stay in command window instead of jumping to editor when reach breakpoint???? Am always typing on...

約1ヶ月 前 | 2 件の回答 | 0

2

回答

回答済み
MATLAB Answers Wish-list #4 (and bug reports)
I would put a hard character limit of (say) 50 characters on the Title -- mandate that the question is in the text, do NOT even ...

約1ヶ月 前 | 1

回答済み
Writing multiple matrices into text file
fid(i)=fopen(filename, 'wt'); From the doc for fopen -- permission: 'w' Open or create new file for writing. Discard e...

約1ヶ月 前 | 0

| 採用済み

回答済み
Hello, i want to display separate (side by side) bar on one graph. below is my code but its display bars on single column. and image what i should do?
AMENDED: Rank = [15678 10987 15243 3467 1234; 1111 3456 13456 3345 1038].'; C = categorical ({'Google','Bin...

約1ヶ月 前 | 0

| 採用済み

回答済み
Explode cell that are into another cell
OK, I overlooked the regular expression in the format string that sucks up all of those extra blanks at the end of the odd-man-o...

約1ヶ月 前 | 1

回答済み
Preallocate char array: Wrong values
Any array must be rectangular; char() arrays are no different. The array must be as wide (have as many columns) as the longest ...

約1ヶ月 前 | 0

| 採用済み

回答済み
compile MatLab into standalone exe, how to pass matrices as input.
"[A]rguments can be passed to standalone applications created using MATLAB® Compiler™ in the same way that input arguments are ...

約1ヶ月 前 | 0

| 採用済み

回答済み
Change figure legend horizontal spacing
Something legend gives no control of directly Increase the width of the legend will spread them out hLg=legend('gefeuert','ni...

約1ヶ月 前 | 1

回答済み
xlswrite Issue: not writing an entire column
The first column of data is a column of cells each containing a cell containing... xlswrite can't handle that. data(:,1)=...

約1ヶ月 前 | 0

回答済み
Percentage of each elements in a 3d matrix
There's no point in the output array having P planes... V=value; [~,~,N]=size(A); B=100*sum(A>V,3)/N;

約1ヶ月 前 | 1

| 採用済み

回答済み
How to make a while loop fill out an array?
Tlist = { 'DEB' 'DEB' 'TFR' 'DEB' 'DD' 'DEB' 'FPI' 'DEB' 'CPT'}; lup={'DEB','DD','CPT','FPI','FPO','CHG','TFR'}; >> [~,Tt]=i...

約1ヶ月 前 | 1

| 採用済み

Load more