Community Profile

photo

dpb


4,335 2012 이후 총 참여 횟수

담당자

dpb's 배지

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

세부 정보 보기...

참여 게시물
보기 기준

답변 있음
Delete specific rows from a cell array and create a new cell array
Place where converting the cell array to regular double array makes sense it would seem...there's nothing in the above data that...

약 9시간 전 | 0

답변 있음
Error using fprintf when copying cell content into a text file
Having data helps...to achieve the objective in the easiest way w/o writecell, use the intermediary of converting to a table... ...

약 16시간 전 | 1

답변 있음
error bars in bar plot with categories
This is a royal pain for even numeric axes; even worse for categorical. Complain to TMW about the sorry quality of implementati...

1일 전 | 0

답변 있음
How do i label each bar in bar group with a "string" on top?
... hB=bar(y); % use a meaningful variable for a handle array... hAx=gca; % get a variable for the current...

1일 전 | 1

| 수락됨

답변 있음
plot with points in file
Well, still kinda' difficult to figure out exactly what is wanted, but as near as I can make out, something like; t=readtable('...

3일 전 | 0

답변 있음
Using loglog to plot results in a y axis that is not log scaled. But matlab seems to think it is
Set ylim([5 15]) to have sufficient part of the y-axis showing to be able to see the difference in the log scale vis a vis lin...

3일 전 | 0

답변 있음
timeseries date data matlab
Either however you created the text file and/or imported it, you ended up with the datenum integer portion of the date/time info...

4일 전 | 0

| 수락됨

답변 있음
I want to create multiple buffers one after the other. How do ensure that they show in a random order?
Simplest would be to create N objects in (say) a cell array. Then generated a randomized indexing vector as |randperm idxrand=...

4일 전 | 0

답변 있음
char time: wrong label on years
The problem is the explicit four-digit string for the year -- that overrides any pivot year input for either datenum/datestr as ...

4일 전 | 0

답변 있음
Using dir to extract the names of plexon files for upload
targetDir='WhteverisDirNeeded'; d=dir(fullfile(targetDir, '*.plx')); % return all files of desired extension for i=1:numel(...

4일 전 | 0

답변 있음
Shuffle the rows a matrix
ir=randperm(1:numel(y)); % since y is 1D; otherwise use size(y,1) y=y(ir); x=x(ir,:);

5일 전 | 0

| 수락됨

답변 있음
Summation of Infinity Terms
S = 0; tol = eps; term = inf; n = 1; If (x<1) 'not valid starting points enter another points' end while abs(term) > tol ...

5일 전 | 1

답변 있음
Get every first value above a treshold out of an array
B=([0 diff((A>trsh)-1)]==1); For comparison, >> [A;B] ans = Columns 1 through 27 1 2 3 4 5 6 2 3 4 5 6 3 4 5...

5일 전 | 0

| 수락됨

답변 있음
Data must be numeric, datetime, duration or an array convertible to double.
TimeX isn't defined in the above code snippet before or by reading the table so that's an inconsistency that should be dealt wit...

5일 전 | 0

답변 있음
How to check if a table exists?
"...will be created by using the command "table"..." So, there then has to be a variable name on the LHS of the table() stateme...

5일 전 | 0

답변 있음
How to convert cell 2 double?
If SI is as you say... >> SI={rand(1,2) rand(1,2)} SI = 1×2 cell array {1×2 double} {1×2 double} >> sitem=cell2mat...

5일 전 | 0

답변 있음
Graphs of mean and standard deviation
A typical plot would be use errorbar, alternatively there's boxplot that shows data in somewhat different fashion than explicitl...

6일 전 | 0

답변 있음
varfun: how to get ride of the function name for the output variable?
No. That's the way varfun is designed and works to keep from overwriting the original variable with the functional output havin...

6일 전 | 0

답변 있음
how do i count unique cell rows?
I agree w/ Per, use strings since TMW didn't see fit to extend unique to cell arrays and either is far better than char() arrays...

6일 전 | 1

답변 있음
Filter contents of a table
Why are numeric values entered as text/characters? ix=~ismember(str2num(tbl.value),[3 4]); tbl=tbl(ix,:); If the real questio...

7일 전 | 1

| 수락됨

답변 있음
How do I use splitapply when the applied function has non-scalar output?
OK, I reread the Q? and realize there was enough in it to see what it was that was wanted... >> t=myTable; ...

7일 전 | 0

| 수락됨

답변 있음
Short Question about Multiple cases in for end
Depends upon what you mean to do...if want each combination of the four variables, then you write a set of nested for loops... ...

7일 전 | 0

| 수락됨

답변 있음
Trying to have user input names into matlab and store them in a matrix
Don't use the character array...assignment in it has to be padded to the maximum length for every row in the array. Either use ...

8일 전 | 0

답변 있음
How do I use splitapply when the applied function has non-scalar output?
[A,B,C,...]=splitapply(func, ...); applies func to inputs by group and returns the given outputs... See the doc for details, e...

8일 전 | 0

답변 있음
Swapping entries in column of table
% first build a more workable table arrangement... t=table(str2double(tbl.multicol),'VariableNames',{'array'}); t=t(1:3,:) t ...

9일 전 | 1

답변 있음
How to save a complex matrix as text file?
C (and ergo Matlab) is woefully weak in input/output for complex variables. Should been remedied by TMW from the git-go given M...

10일 전 | 0

| 수락됨

답변 있음
How to print out a cell array inside a cell array
How did you manage to get that so deeply nested? Let's see the code that generated the array and work on it... But, to answer ...

10일 전 | 0

| 수락됨

답변 있음
How to compare variables without if statement
>> assert(3==4,'Mismatch') Mismatch >> assert(3==3,'Mismatch') >> ADDENDUM: Of course, you can make things more interesti...

11일 전 | 0

답변 있음
import csv file and use the data in Matlab
The problem is the file has explicit "" for string variables built into it...that overrides what readtable would otherwise do fo...

12일 전 | 2

| 수락됨

답변 있음
Removing rows - duplicates based on a condition
[~,ia]=unique(A(A.Size==1,1),'first'); B=[A(A.Size==0,:);A([ia+find(A.Size==0,1,'last')],:)]; returns >> B B = 6×3 table ...

13일 전 | 0

Load more