Community Profile

photo

dpb


Last seen: Today
5,193 2012 이후 총 참여 횟수

연락

dpb's 배지

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

세부 정보 보기...

참여 게시물
보기 기준

답변 있음
randomly select elements of an array without repeat and create a matrix with these elements as rows
"1 to n. I want to choose m integers withiut replacement p times out of these integers, " What does the above mean, precisely? ...

약 24시간 전 | 0

| 수락됨

답변 있음
How to speed up the following Matlab script? Can anyone suggest me to speed up the process?
Since you're doing all the work only to return coherence, look at doc mscohere to return the coherence directly with all the ...

1일 전 | 1

답변 있음
MATLAB Answers Wish-list #5 (and bug reports)
At least w/ Firefox, recently the scroll wheel acts to reduce the size of the response textbox such that what is being typed get...

1일 전 | 0

답변 있음
Control decimal places of contour labels
Yet another case where TMW (The MathWorks) has been too aggressive in hiding stuff that clearly users would want to and should b...

1일 전 | 0

답변 있음
How to read the specific colums from 12 excel files in a folder and then plot it
Other than superfluous stuff that doesn't need to be in the loop, nothing appears to be wrong in the basic code... Oh! Now I s...

1일 전 | 1

| 수락됨

답변 있음
Building a "Typical Year" from averaging daily-hourly data over several years
<AnsweredComment> OK, the conversation in the other thread turned into more interesting one than I initially anticipated; I tho...

2일 전 | 1

| 수락됨

답변 있음
How to read this kind of info out of a txt file and post them into Excel files?
Basically, just read the file record-by-record searching for the matching header strings and when find a section header, then re...

3일 전 | 0

| 수락됨

답변 있음
How to average monthly data using a specific method in Matlab?
There may be a more clever way, but brute force seems straightforward enough... A=reshape(vectorA,3,[]); ...

4일 전 | 0

| 수락됨

답변 있음
How to retrieve multiple values from a 3D array
Ignoring the excessively verbose variable names that keeps code from being visible without scrolling or breaking line and thereb...

4일 전 | 0

답변 있음
Computing the number of variables belonging to each data type
How about n_cl=countcats(categorical(varfun(@class,M,'OutputFormat','cell')))

5일 전 | 0

| 수락됨

답변 있음
Can I plot a line function, and a plot function under an if statement?
"can put a line and plot function under an if statement. ...? It works when I try it ..." It would seem you've answered your ow...

6일 전 | 0

| 수락됨

답변 있음
Reading Specific numbers from a text file
fileID = fopen(filename); Cdata = textscan(fileID,'%f32 %f32 %f32','HeaderLines',5); % find the point coordi...

6일 전 | 0

| 수락됨

답변 있음
How to protect arbitrary variable names
Functions have their own workspace although internal and anonymous functions share their context with the containing workspace.....

6일 전 | 0

| 수락됨

답변 있음
displaying element of matrix
To use disp and have two decimal points, use format bank first, otherwise will get whatever precision is associated with the cur...

8일 전 | 0

답변 있음
How to plot 3 graphs in 1 figure?
There's an example of 2 on top and one on bottom that should have given the clue of how to bo about it... hAx(1)=subplot(2,2,1)...

9일 전 | 1

| 수락됨

답변 있음
Need to run two counters in a foor loop
If you describe the real problem to be solved instead, it'll lead to more efficient getting to the right answer, but if the resu...

9일 전 | 0

답변 있음
How can I find peak from matrix
What's wrong with what you've done for the one? findpeaks is one of the functions that has not been vectorized (owing to its co...

9일 전 | 0

답변 있음
Write a tabbed matrix in a txt file
Read the rest of the documentation for dlmwrite -- Name-Value Pair Arguments ... 'precision' — Numeric precision ...

10일 전 | 0

| 수락됨

답변 있음
Full Factorial Design of Experiments
"I know about the matlab function fullfact([,]) but since I will use decimal numbers i needed a differen solution." There's no ...

10일 전 | 1

| 수락됨

답변 있음
for loop to subtract every element from the first element for a given trial
Another job for varfun and grouping variables-- tt.TrialTime=cell2mat(rowfun(@(m)m-m(1),tt,'GroupingVariables','TrialNumber', ....

11일 전 | 0

| 수락됨

답변 있음
How do I make two arrays go from largest to smallest?
[a,ix] = sort([4 8 11 7],'descend'); % keep the optional original order vector when sort b = b(ix); ...

12일 전 | 1

| 수락됨

답변 있음
how to plot cell array and how to get its imaginary part?
Use cell indexing expressions-- >> c={[rand(4,1),rand(4,1)]}; % presume the format described for some sample data >> c{:} ...

16일 전 | 0

| 수락됨

답변 있음
Understanding the structfun() or cellfun() commands
As the error message and doc says, structfun applies a function to each field in a scalar struct; you have a struct array -- not...

17일 전 | 0

답변 있음
How can I find mean crossing irregularity?
z=randn(1,1000); % sample dataset zs=(detrend(z)>0); % convert to binary at mean iz=diff(find([0 zs])); % crossin...

22일 전 | 0

답변 있음
Assign same linewidth to a grouped barplot
You can't use the "dot" notation with an array of handles, anyway; must use set here, or a looping construct of some sort. se...

26일 전 | 1

답변 있음
How to compare two columns in a table and delete that row having same values in that columns?
c=string({'column1' 'column 2' 'columns3' 'ball' 'bat' 'gloves' 'bat' 'gloves' 'bat' 'ball' ...

28일 전 | 0

답변 있음
Error using corrplot function
OK, I played with one of the sample datasets used for illustrating some other regression stuff...it is possible to start with pl...

28일 전 | 0

답변 있음
Binomial Distribution when mean and variance is given
Well, sometimes one is given a nonsensical problem -- if so, then one has to inform the requestor of the fact and get a differen...

29일 전 | 0

| 수락됨

답변 있음
2 digits after the dot
In the first case, you'll have to use >> string(arrayfun(@(n)sprintf('%.2f',n),vals,'UniformOutput',false)) ans = 2×3 str...

29일 전 | 0

| 수락됨

답변 있음
Generating a heat map of adjacency matrix
Presuming you want the displayed values of the cells to still be their totals, then s = [1 1 1 2 2 3]; t = [2 3 4 5 6 7]; G =...

29일 전 | 0

| 수락됨

Load more