Community Profile

photo

dpb


Last seen: 1일 전
4,983 2012 이후 총 참여 횟수

연락

dpb's 배지

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

세부 정보 보기...

참여 게시물
보기 기준

답변 있음
How to do a Loop statement from cell to double?
Use ordinal categorical variables -- t1989=readtable('1989.xlsx','Range','10:40','ReadVariableNames',0); % get in a set of ...

약 11시간 전 | 1

답변 있음
Redefining a variable in a multidimensional array
There isn't a time vector explicitly stored in the 3D array; each slice(*) in the array is associated with the corresponding tim...

약 20시간 전 | 0

답변 있음
Forcing a scalar to be represented as a 1x1 vector
By the table in the documentation, >> jsonencode({c}) ans = '[4]'

약 21시간 전 | 1

| 수락됨

답변 있음
Use text in table to make variables
Do NOT even think about doing this.

1일 전 | 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...

1일 전 | 1

| 수락됨

답변 있음
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...

1일 전 | 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...

1일 전 | 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...

2일 전 | 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...

3일 전 | 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...

3일 전 | 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...

3일 전 | 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; ...

3일 전 | 1

| 수락됨

답변 있음
Inserting Array into Another Array
ix=true(size(a)); ix(x)=false; z(ix,1)=a;

4일 전 | 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 ...

4일 전 | 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...

4일 전 | 0

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

4일 전 | 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}(:,...

5일 전 | 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...

5일 전 | 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...

5일 전 | 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...

6일 전 | 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';...

6일 전 | 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 ...

6일 전 | 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...

6일 전 | 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...

7일 전 | 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)...

7일 전 | 1

| 수락됨

Load more