Community Profile

photo

dpb


Last seen: Today
4,982 2012 年以降の合計貢献数

連絡する

dpb's バッジ

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

詳細を表示...

貢献した分野
表示方法

回答済み
Redefining a variable in a multidimensional array
There isn't a time vector explicitly stored in the 3D array; each plane in the array is associated with the corresponding time i...

約4時間 前 | 0

回答済み
Forcing a scalar to be represented as a 1x1 vector
By the table in the documentation, >> jsonencode({c}) ans = '[4]'

約5時間 前 | 1

| 採用済み

回答済み
Use text in table to make variables
Do NOT even think about doing this.

約20時間 前 | 0

回答済み
Replacing empty cells using for loop
Short answer is, "you can't". A double array cannot have an empty element; it is either empty or full. A cell array is the on...

約20時間 前 | 0

回答済み
How do position coordinates work on a subplot?
It appears taht those [x,y] positions are the image indices from the upper left of the image. If you look at the two examples a...

約20時間 前 | 0

回答済み
using fwrite for multiple data type at once
The precision, skip, machinefmt optional inputs to fwrite have not been vectorized (as you have discovered), so you can't interm...

約23時間 前 | 0

回答済み
How can I import multiple .CSV files in MATLAB and SISTEMATICALLY process the data of each file?
See <Importing-all-files-from-a-specific-folder?> from yesterday. There's a section in the doc with examples on processing mult...

1日 前 | 0

回答済み
Importing All Files from a specific Folder
datapath=uigetdir([],'Select Data Directory'); d=dir(fullfile(datapath,'*.txt'); for i=1:numel(d) txt_file = fullfile(data...

2日 前 | 0

| 採用済み

回答済み
How can I draw a six graph together in one figure using plot and hold on?
Replace for Q=1,6; plot(T,K(:,Q)); end with hL=plot(T,K); plot (like almost all MATLAB functions) operates by column and t...

2日 前 | 0

回答済み
How to calculate the quantiles/percentiles values for each hour?
Use grouping variables and splitapply or put into a table or timetable and then rowfun and/or retime (timetable) are also option...

2日 前 | 0

回答済み
Error using tiledlayout syntax instead of subplot when referencing axes handles
tiledplot is only able to put one axes object per tile, sorry. Another user wanted two y-axes just yesterday... <Answers/72148...

2日 前 | 0

回答済み
Get supersets from cell array of doubles
I misread the problem statement originally and the second idea didn't really help all that much. It's fairly straightforward, t...

2日 前 | 0

回答済み
Insert time depending on sample time and measurement points into existing table
In "the MATLAB way", don't use loops where not needed...since you have end points and number, use linspace ST = 3; ...

2日 前 | 1

| 採用済み

回答済み
Inserting Array into Another Array
ix=true(size(a)); ix(x)=false; z(ix,1)=a;

3日 前 | 0

| 採用済み

回答済み
How to find indices of non duplicate rows in a matrix?
>> A = [1 1 2 2 3 4 5 6 6]; >> [n,b]=histc(A,unique(A)); >> A(ismember(b,find(n==1))) ans = 3.00 4.00 ...

3日 前 | 0

| 採用済み

回答済み
error converting chars to string
You've previously defined Samples as a cell array (either deliberately or by accident) -- >> Samples={} Samples = 0×0 empty...

3日 前 | 0

回答済み
Splitting data array into sub arrays
>> SIC=[3301, 4502, 3306, 4602, 4510].'; >> splitapply(@median,SIC,findgroups(fix(SIC/100))) ans = 3303.50 450...

3日 前 | 0

回答済み
Adding a second x-axis to each plot in a tiled layout / subplot
The tiled layout object is documented as "A tiled chart layout contains an invisible grid of tiles that covers the entire figur...

4日 前 | 0

回答済み
cell to matrix in matlab
>> X=[{[[2:2:10].' rand(5,1)]},{[[1:2:10].' rand(5,1)]}] X = 1×2 cell array {5×2 double} {5×2 double} >> [X{1}(:,...

4日 前 | 0

回答済み
Input only numbers from .txt file and store numbers
It would be better to write a more parseable text file, at least with a delimiter if not multiple records... With just highleve...

4日 前 | 0

回答済み
How to iterate through the alphabet like Excel does
function rnge=xlsAddr(row,col) % Build Excel cell address from row, column % % RNGE=XLSADDR(ROW,COL) will return an Excel cel...

4日 前 | 0

| 採用済み

回答済み
selecting values between vectors and plot the values
isA=(Ax>Bx); ABx=Bx; ABx(isA)=Ax(isA); plot(ABx,max(Ay,By))

5日 前 | 0

回答済み
FindPeaks() of a 1024 x 116 Matrix
findpeaks only works on vector input; just use a loop and pass each column of your array in turn. There's a fair amount of back...

5日 前 | 0

| 採用済み

回答済み
How to separate weekends from weekdays from an Excel file in MATLAB?
Well, ya' gotsa' start somewhere! We all were newbies once...give it a shot and see how far you get on your own first... Impor...

5日 前 | 0

| 採用済み

回答済み
extract or split data from one column in table into several columns
>> s='250ms,500ms / 95, 101, 106, 107 / Avg: 11_right / | bl | _HLG_MLD | (9) vs. Avg: 11_right | bl | _CG | _LOW (8) / FCL';...

5日 前 | 0

回答済み
Delete data in one table, based upon another table
It would be easier to write working code if we knew the actual format of the variables -- is it really a MATLAB table object or ...

5日 前 | 0

| 採用済み

回答済み
How can I duplicate the array data into a fixed number?
No, you don't have to have the same number of points in both lines to plot them on the same axes. Use plot(x1,y1,x2,y2) or p...

5日 前 | 0

回答済み
if any command to check table values
We don't have the data and can't see the actual result in context -- although the code snippet posted isn't formatted well, that...

6日 前 | 0

回答済み
extract numbers form a column
v=sprintf('%d',double([nan;Q(:,1);nan].'==0)); iStrt=strfind(v,'01').'; iEnd=[strfind(v,'10')-1].'; grpsums=arrayfun(@(i1,i2)...

6日 前 | 1

| 採用済み

回答済み
Conditional average (need help with speed)
Grouping variables and rowfun to the rescue... tMeans=rowfun(@(x),mean(x,'omitnan'),mytable,'InputVariables','T','GroupingVaria...

7日 前 | 0

| 採用済み

Load more