Community Profile

photo

dpb


Last seen: Today 2012 以来アクティブ

Statistics

All
  • Revival Level 2
  • First Review
  • Master
  • Thankful Level 3
  • 36 Month Streak
  • Knowledgeable Level 5
  • First Answer
  • Solver

バッジを表示

Content Feed

表示方法

回答済み
readstruct/writestruct changes boolean value true to "true"
Never tried it; I'd just use save and load for the purpose. Could have named it .txt to attach, or just past the text inline if...

約2時間 前 | 0

回答済み
Weighted mean by groups
It's the wmean function definition that's doing it -- what you intended was wmean = @(w,v)mean(w.*v); trying that, id = { 'a'...

約4時間 前 | 0

| 採用済み

回答済み
Error about preallocating for speed
a = []; y = 1; for T = 25:5:1000 D = 0.0062*exp(-80000/(8.31*T)); x(y) = 1/T; %error here a(y) = D; %error here...

約6時間 前 | 0

回答済み
How can I add individual datapoints and connecting lines to grouped boxchart?
fn=websave('Data_example.xlsx','https://www.mathworks.com/matlabcentral/answers/uploaded_files/1136410/Data_example.xlsx'); tD=...

約23時間 前 | 0

回答済み
When converting a .txt file to a matrix/cell, MATLAB merges some of the columns together.
C = readcell ('filename.txt'); writematrix ('filename.txt'); C ([1:40], :) =[]; % Delete rows 1-40 from the produced matrix (t...

1日 前 | 0

回答済み
Scatter plot with mean for multiple groups
fn=websave('MATLAB_exampledata.xlsx','https://www.mathworks.com/matlabcentral/answers/uploaded_files/1136975/MATLAB_exampledata....

2日 前 | 0

| 採用済み

回答済み
How to draw negative values ​​on bar when it contains negative values
That's a little more tricky and the examples don't illustrate -- but it's not terribly difficult to fix; the problem is 'Vertica...

2日 前 | 0

| 採用済み

回答済み
Stacked plot graphics, trying to color multiple lines on one y-axis.
OK, had just a few more minutes -- the real answer is that there's a 'LineProperties' handle under the stacked plot object handl...

2日 前 | 0

回答済み
Drawing different coloured bar plots according to different conditions
Well, let's see if I parsed this correctly... data =[ 1 1 2 1 2 35 40 23 36 0 0 1...

3日 前 | 1

| 採用済み

回答済み
how to avoid getting 0 overlap on the pie chart?
I've never tried a legend with a pie chart; I suppose it also probably works somehow... Well, the patch handle is two objects p...

3日 前 | 0

回答済み
How to use dir function with customized number of folders
Go ahead and read all the files into the dir() stuct and then do the culling there... It's easy enough to parse those filename ...

3日 前 | 1

回答済み
Duplicate elements in each row
Sure, if am reading the desired output correctly -- NB it appears your c variable is indexed incorrectly; it should be a logical...

3日 前 | 0

回答済み
Why my results of regress function and fitlm function are different?
I don't see that...I'm guessing a different y vector, somehow, maybe??? x=[1 2 3 4 5 6 7 8 9 10].'; y=[4 5 2 7 2 8 10 2 1 5].'...

3日 前 | 0

回答済み
Looping through object array, possible to get an iterator to index into the object array?
"The MATLAB way" would be to write isConditon=(EvaluateLogicalExpressionOverTheRange); myObjectArray(isCondition)=[]; or the ...

3日 前 | 0

回答済み
Color Scatter plot based on values in another column
You can't use such a grouping as is, create a grouping variable... edges=[0.5 1.5:0.5:3.5 inf]; g=discretize(Z); hSC=scatter(...

3日 前 | 0

回答済み
How Timelines Unify in subplot
fn1=websave('compound_tide_1516_data_wl_3.mat','https://www.mathworks.com/matlabcentral/answers/uploaded_files/1134780/compound_...

4日 前 | 0

回答済み
Plot boxplot/boxchart outliers in different colors by goups
fn=websave('sub_table.mat','https://www.mathworks.com/matlabcentral/answers/uploaded_files/1134300/sub_table.mat'); load(fn) i...

5日 前 | 1

回答済み
Is it possible to create such a Visualization in Matlab?
With all the amenities, it'll take a fair amount of effort, although one could undoubtedly create a crude replication of the wal...

5日 前 | 0

| 採用済み

回答済み
How can I read rows from a CSV outside of datalines using readtable
"Do I just have to run textscan or readtable again to read those two lines separately?" Yes, unfortunately readtable doesn't ha...

5日 前 | 0

| 採用済み

回答済み
How to find parent uifigure for a child several layers down
" I want to avoid having to pass the figure handle down through each layer." In an app, data are all global anyway, so save the...

5日 前 | 0

回答済み
How can I change rows that appeared more than once to missing rows
A=[ 2005.00 1.00000 0.000000 0.000000 0.000000 2005.00 2.00000 0.000000 0.000000 0.000000 2...

5日 前 | 0

| 採用済み

回答済み
Irregular Arrays for fixed.Interval Objects
Never heard of them, but never used/don't have the FixedPoint TB ... all my micro work occurred way before any of these toolsets...

6日 前 | 0

| 採用済み

回答済み
Stacked plot graphics, trying to color multiple lines on one y-axis.
There's an array in the <'StackedLineProperties'> gotten to by the links in the "See Also" section of the documentation.

6日 前 | 0

| 採用済み

回答済み
plotting 4 by 1 tiles using tiledlayout function do not produce figure properly
Well, there's only so much room in a default figure and as Dolly Parton told Johnny Carson one night, "You can't put 10 pounds o...

6日 前 | 0

回答済み
Combining existing figures, each in its own tile
See copyobj It's pretty easy if just copying an axes and its content to a new figure; when it's a new axes that's been created ...

6日 前 | 0

| 採用済み

回答済み
how to input data into an array from csv files in a for loop
You loop above would work except you use the variable na as both a dynamic file name to read and then overwirite it with the ret...

6日 前 | 1

| 採用済み

回答済み
interpolate (extrapolate?) the values in between two matrices using existing data
A = [1, 2, 3, 4, 5; 0.3654, 0.3634, 0.3663, 0.3665, 0.3677]; B = [16, 17, 18, 19, 20; 0.4653, 0.4636, 0.4652, 0.4620, 0.4715];...

7日 前 | 0

回答済み
Using regexpressions with 'dir' function
"I woudl like to know if it is possible to use reg expressions with a 'dir' function." Nope. Unsupported by the OS; "filename ...

7日 前 | 1

| 採用済み

回答済み
Resize only height, not width of spectrogram
You don't show how you're trying the resize operation but spectrogram(...) plots into the current axes and if you size the axes ...

7日 前 | 0

回答済み
Customise colorbar labels (exponent)
@Star Strider is on the right track; the colorbar numeric ruler handle is hidden, however, but it is there and writeable -- For...

7日 前 | 0

| 採用済み

もっと読み込む