Community Profile

photo

dpb


Last seen: Today Active since 2012

Statistics

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

View badges

Content Feed

View by

Answered
How can I include absent group names in table grouping results?
Well, unless the data are in the table, there's not going to be anything for groupsummary to operate over to tell it those other...

etwa 3 Stunden ago | 0

Answered
I can't understand the following MATLAB code documentation
This isn't documentation, this is actual MATLAB code. The first section is a script; the second is a function which is called b...

etwa 3 Stunden ago | 1

Answered
How to show that calculation is going in MATLAB App
An outline of the progress dialog implementation I used for one app... % Button pushed function: UpdateButton function ...

3 Tage ago | 0

Answered
How to make an if-statement that finds whether a 1x5 column has 4 of the rows the value 0?
Just a somewhat pedantic comment on details of notation first -- If the matrix is 1x5, it would be matrix = [0 0 0 241 0] inst...

3 Tage ago | 0

Answered
How to extract data stored in a matrix and in a specific range of columns whose number is stored in another matrix?
It would be much simpler if you would use a table for each variable and include the ParticipantID as a variable instead. Howeve...

9 Tage ago | 0

Answered
Matlab default font monospace is not a wise choice
Can't say as it's been a problem for me, no... But, you can change it to anything installed on your system -- go to Preferenc...

9 Tage ago | 0

Answered
Converting 1D indexed array to 2D matrix
You don't need to convert the linear addresses to indices to assign them to the array. If you have, indeed, segregated the alti...

11 Tage ago | 0

| accepted

Answered
How to get such legend in MATLAB?
Use the 'DisplayName' property for the desired line types to be plotted -- you'll need two lines drawn with just the solid line ...

11 Tage ago | 0

Answered
How to sort the rows of a cell?
s=sort([x{:}]); % where x is the cell array

12 Tage ago | 0

| accepted

Answered
Why is signal amplitude so low after applying FFT?
Several issues here -- the first being the RMS value masks the signal amplitude with the DC value unless you first detrend the t...

13 Tage ago | 0

Answered
Bar chart samples are shuffled
As @Star Strider says, categorical variables are not ordinal by default and are valued by lexical sorting. To fix X = {'Pristi...

13 Tage ago | 1

| accepted

Answered
Selecting random cells in a matrix without repetition
N2Choose=20; R=M(randperm(numel(M),N2Choose)); ERRATUM Stupid auto-complete put the silly parens in instead of letting me whe...

14 Tage ago | 0

| accepted

Answered
How do i add a for loop if command to a pre existing table
Begin learning to use MATLAB vector operations from the git-go -- naming variables sequentially with a numeric suffix is almost ...

14 Tage ago | 1

Answered
Feeding index returned by find in another matrix
>> a=[NaN,NaN; NaN,2; 11,NaN]; >> a a = NaN NaN NaN 2.00 11.00 ...

14 Tage ago | 0

| accepted

Answered
Insert "epsilon dot" in a figure title with tex interpreter (not latex)
No; the MATLAB implementation of TeX uses the defined special characters and the limited modifiers of ^ and _ for super/subscrip...

15 Tage ago | 0

Answered
Put axis label in their respective middle (3D plot)
... mesh(x,y,z); hXL=xlabel('time[sec]'); % default label, save handle hXL.Position=hXL.Position+[0.5 0 0...

15 Tage ago | 0

| accepted

Question


Setting focus in AppDesigner
I'm setting a TextArea object to be editable with a menu selection to allow a field to be updated by the user. The callaback to...

17 Tage ago | 1 answer | 1

1

answer

Answered
Why is it not possible to increase the excel readtable range?
The error message doesn't have anything to do with the Q? that was posed as written and looked at above, however...it's got to ...

18 Tage ago | 0

| accepted

Answered
Select rows of timetable based on Month range
To use the numeric months, wintertime = [1:3 11:12]; % [start, end] of desired months TTwinter = TT(ismember(month(TT.Tim...

22 Tage ago | 0

| accepted

Answered
Get maximum values across a cell array with multiple indexing.
Use grouping variables -- there's still a looping construct inside, of course, but you don't have to write it explicitly... >> ...

23 Tage ago | 1

| accepted

Answered
strsplit: the deliminator on both sides was still kept but not removed
WAD (Working As Designed) >> a = strsplit(' aa bb cc ',' ') a = 1×5 cell array {0×0 char} {'aa'} {'bb'} ...

26 Tage ago | 1

| accepted

Answered
Loop until Matrix value exceeds value
% pseudo code, salt to suit... A=[...]; % initialize A here maxB=60; % the test value for x...

etwa ein Monat ago | 0

Answered
Create table of means from multiple tables
Simplest probably would be to convert to a 3D array and then use mean() along the third dimension.... tMeans=mean(cat(3,table2a...

etwa ein Monat ago | 0

| accepted

Answered
How to change font type of bar plot labels?
... hAx=gca; hAx.TickLabelInterpreter='latex'; xticks(1:numel(str)) xticklabels(str) hAx.FontSize=20; ...

etwa ein Monat ago | 0

Answered
How to write a specific number via a loop
Other than there aren't 23 lines in the code shown :), the problem is actually in the line distances = (deg2km(distance(lat1(z)...

etwa ein Monat ago | 0

Answered
How to combine table output in one table?
Hr=2; u=11.5; Qm=7973504; X=[10:20]; sigma_y=0.22*X./sqrt(1+0.0001*X); sigma_z=0.20*X; Ground_Level_Conc=(Qm./(3.142*sigma...

etwa ein Monat ago | 0

Answered
Searching for a file when the filename is always changing
"the filename will always be 'location 1 (random letters) \ test (random letters)'." rootdir='C:\Users\tathuen\Desktop\Data\'; ...

etwa ein Monat ago | 0

| accepted

Answered
how can I read spreadsheet file which is not generated by excel in Matlab
I thought something like this might be the case -- it's a text, delimited file named as ".xls" -- Excel does have internal smart...

etwa 2 Monate ago | 0

| accepted

Answered
Bar plot with two axis no plotting as grouped
They're not stacked, they're just plotted on top of each other because there's only one series on each call to bar(); hence ther...

etwa 2 Monate ago | 1

| accepted

Answered
how to confusion matrix convert to heatmap style?
m=[923 4 21 8 4 1 5 5 23 6 5 972 2 0 0 0 0 1 5 15 ...

etwa 2 Monate ago | 1

| accepted

Load more