Community Profile

photo

Dave B

MathWorks

Last seen: 2日 前 2020 以来アクティブ

I am a software engineer at MathWorks. My work focuses on graphics and charting.

Statistics

All
  • Knowledgeable Level 4
  • Revival Level 2
  • Personal Best Downloads Level 1
  • 5-Star Galaxy Level 1
  • GitHub Submissions Level 2
  • First Submission
  • First Answer

バッジを表示

Content Feed

表示方法

回答済み
How can I graph an average and individual participant data?
It's a little difficult to visualize what this looks like, but here's what i took away from looking at your code you have a thi...

9日 前 | 0

回答済み
scatter not ploting matrix
Yes this functionality was just recently introduced in R2021a The relevant section from the release notes reads: Scatter Plo...

10日 前 | 0

| 採用済み

回答済み
Why do I receive "Index exceeds the number of array elements (1)" ?
You wrote: For some background, m and t are both defined already in my workplace and they are both vectors. But you redefine...

10日 前 | 0

回答済み
Drawing a line to divide two parts of a curve
You can draw a vertical line very easily with xline area works well for filling a part of the curve x=linspace(-3,3,100); y...

10日 前 | 0

回答済み
51 uniformly-distributed points
You can create uniformly (linearly) distributed values with the linspace function: x = linspace(0, 5, 51) Alternatively, you m...

11日 前 | 0

| 採用済み

回答済み
array indexing returns empty row vector while attempting to locate index corresponding to only certain array values
This is an issue of floating point arithmetic, another way to state the problem is: (.1+.2)==.3 What? How can those not be equ...

11日 前 | 0

| 採用済み

回答済み
Dealing with Data Structures
I think in general it's better if your struct is an array rather than using names of fields in the struct as an array, but if yo...

11日 前 | 0

回答済み
Nested for loop for multipication
I think the question is really how you store your total values (you didn't store them in your snippet, so I'm not sure how you p...

11日 前 | 0

| 採用済み

回答済み
fill missing point in data (x y z 3 columns data)
You can use meshgrid to make x and y grids, and then ismember with the rows flag to find which pairs of x and y are missing: % ...

12日 前 | 0

回答済み
How to locate the plotting title above the legend, where the legend is placed "northoutside"?
You can put a title on the legend, but I think you just want a master title for everything. You can do that by placing your axes...

12日 前 | 2

| 採用済み

回答済み
How to relate data to other data from excel in MatLab?
In general, it's better to think of it not as Height(Name1), but as Height(Species=="Name 1"), this extends to all sorts of data...

12日 前 | 0

回答済み
How do I use output values from a function to plot those values in a script
I think what you're looking for is: [t,~,v] = rocket_euler(30,20) plot(t, v, '.-','color',[0 1 0],'Marker','x','markersize',15...

12日 前 | 0

| 採用済み

回答済み
select one item between two List Box
How about just using the callback of one to deselect the other: % Set up some example listboxes: u = uifigure; lsta = uilistb...

12日 前 | 0

| 採用済み

回答済み
graph with two formulas
You can make the error bars with the errorbar function, but your excel file doesn't appear to include data about error... a=r...

12日 前 | 1

回答済み
Call Function from .m file in command
@L McKeehan - perhaps the most common reason for this is that the function is not on MATLAB's search path. When you try to run a...

13日 前 | 0

| 採用済み

回答済み
What should be the distance between the two cameras?
This isn't a very MATLAB-y answer, but the lenses in stereo cameras typically try to replicate the distance between the eyes (ac...

13日 前 | 0

回答済み
Trying to change columns in a Matrix
Specifying rows and columns makes MATLAB point to rectangles: a(1:2,1:4) refers to rows 1 and 2, columns 1 through 4, i.e. MATLA...

13日 前 | 1

| 採用済み

回答済み
Showing the equation of the best fit lines per graph
Are you struggling with how to get the text? or how to display it on the chart? Here I put them in the legend, and also added...

13日 前 | 0

| 採用済み

回答済み
Get ticks to lay across colorbar
The unit for TickLength is peculiar. If you check out how it's documented on the colorbar page it says: Tick mark length, speci...

13日 前 | 0

| 採用済み

回答済み
Index of value when you want to check multiple elements at the same time between 2 cell arrays
If I understand the quesiton, you want to find indices in A where the values in B are found when they are in A. You can use ...

13日 前 | 0

| 採用済み

回答済み
How can I generate random varaible from 0 to 1 without including 0?
The rand function generates randum numbers between 0 and 1, not including 0 or 1: https://www.mathworks.com/help/matlab/ref/ran...

13日 前 | 0

| 採用済み

回答済み
Can I Use the matlab in the mobile phone or tablet rather than laptop?
Yes there's information about MATLAB mobile here: https://www.mathworks.com/products/matlab-mobile.html It's pretty difficult t...

13日 前 | 0

回答済み
semilogy, loglog do not work in order to set the y axis on a logarithmic scale
When you use the log plotting functions they don't change the axis scale if hold is on. There's a note all the way at the bottom...

13日 前 | 1

回答済み
How to plot a matrix containing NaN?
pcolor specifies color at the vertex, which (confusingly) means that you have one less row and column. It does great with NaN th...

13日 前 | 1

| 採用済み

回答済み
How do I combine my function's output matrices into a single matrix?
Your function loops over some values and for each one computes a row vector. To store the row vector in a matrix, specify an i...

13日 前 | 0

| 採用済み

回答済み
How to compute a vector
Here's how I'd break this down. First, let's have a look at what the syntax produced for X: X=[1,2,3;4,5,6] So X is a matrix...

14日 前 | 1

回答済み
Stacked plot /waterfall plots to visulaise figures
If you want to put these data into a waterfall, you can do waterfall(e') but that won't get your time axis correct. Using meshgr...

15日 前 | 0

| 採用済み

回答済み
How to plot readed audio files in multiple plots or subplots by MATLAB
It looks like you're as far as getting the filenames, but need to read the data and make the plots. audioread works well for ...

15日 前 | 0

| 採用済み

回答済み
Array indices must be positive integers or logical values.
It looks like when you gave findpeaks a sampling rate it converted the units to time: From the findpeaks documentation page: [...

16日 前 | 0

| 採用済み

回答済み
How can I specifiy the colors when using the group by color option in boxchart?
BoxChart will use the colors in the active 'colororder', you can change which index they use with SeriesIndex but I'd recommend ...

16日 前 | 0

もっと読み込む