Answered

Label 0 in a semilog plot

You can fake the tick labels, but setting the TickLabels property, but another way to do this is to use 2 axes. I like doing thi...

Label 0 in a semilog plot

You can fake the tick labels, but setting the TickLabels property, but another way to do this is to use 2 axes. I like doing thi...

8 meses ago | 1

| accepted

Answered

I can't read UIAxis Exponent value

This actually isn't quite the bug you've identified, although I'm surprised by the behavior: The (automatically calculated, not...

I can't read UIAxis Exponent value

This actually isn't quite the bug you've identified, although I'm surprised by the behavior: The (automatically calculated, not...

8 meses ago | 1

| accepted

Answered

MATLAB Programming Techniques Course quiz problem

You've marked the second and third lines as being 8e4 and 8e5 bytes, but this is incorrect. Hint: how many elements are in a ...

MATLAB Programming Techniques Course quiz problem

You've marked the second and third lines as being 8e4 and 8e5 bytes, but this is incorrect. Hint: how many elements are in a ...

8 meses ago | 0

| accepted

Answered

Plot a for-loop with if-statements inside

You're not seeing anything because you're plotting 1001 lines, each of which has only one point. You can fix this by plotting th...

Plot a for-loop with if-statements inside

You're not seeing anything because you're plotting 1001 lines, each of which has only one point. You can fix this by plotting th...

8 meses ago | 0

| accepted

Answered

Plotting 3 dimensional plot using two vectors and a matrix, and also creating a fit - image processing

The plotting question is pretty easy, you just need to arrange your xT and yExp values so that they correspond to the shape of p...

Plotting 3 dimensional plot using two vectors and a matrix, and also creating a fit - image processing

The plotting question is pretty easy, you just need to arrange your xT and yExp values so that they correspond to the shape of p...

8 meses ago | 1

| accepted

Answered

Fit UIAxes to image dimensions automatically

How about adding the line: axis(app.ImageAxes, 'tight'); in the LoadimageButtonPushed method after the imshow line? Also n...

Fit UIAxes to image dimensions automatically

How about adding the line: axis(app.ImageAxes, 'tight'); in the LoadimageButtonPushed method after the imshow line? Also n...

8 meses ago | 1

Answered

How to extract data points from a plot

To interactively select points to export data to the workspace, there are a couple of options - using datatips is great for sing...

How to extract data points from a plot

To interactively select points to export data to the workspace, there are a couple of options - using datatips is great for sing...

8 meses ago | 0

Answered

Why does ycolor also color the xaxis?

With plotyy, you can use the output arguments to get access to the 'right' axes. Setting the property on gca would just affect t...

Why does ycolor also color the xaxis?

With plotyy, you can use the output arguments to get access to the 'right' axes. Setting the property on gca would just affect t...

8 meses ago | 0

| accepted

Answered

Unable to set ticks on a colorbar

If you want your color to range from 1002 to 1018: caxis([1002 1018]) % or set(gca,'CLim',[1002 1018]) This will let you la...

Unable to set ticks on a colorbar

If you want your color to range from 1002 to 1018: caxis([1002 1018]) % or set(gca,'CLim',[1002 1018]) This will let you la...

9 meses ago | 0

| accepted

Answered

How to prevent contour plot from setting axis limits?

contour doesn't reset the limits, perhaps you didn't set hold to on? or didn't specify x and y for your contour? If you're still...

How to prevent contour plot from setting axis limits?

contour doesn't reset the limits, perhaps you didn't set hold to on? or didn't specify x and y for your contour? If you're still...

9 meses ago | 0

| accepted

Answered

MATLAB: combine two cell arrays of string at a specific position

If I understand the question correctly, you can just specify the indices where you want your strings to go. A={'Moose';'Goos...

MATLAB: combine two cell arrays of string at a specific position

If I understand the question correctly, you can just specify the indices where you want your strings to go. A={'Moose';'Goos...

9 meses ago | 0

Answered

Autoregressive model for EEG feature extaction

ARfit is a collection of tools for AR models: https://www.mathworks.com/matlabcentral/fileexchange/174-arfit SIFT is a set of E...

Autoregressive model for EEG feature extaction

ARfit is a collection of tools for AR models: https://www.mathworks.com/matlabcentral/fileexchange/174-arfit SIFT is a set of E...

9 meses ago | 0

Answered

Make Equal tick spacing in a loglog plot

If you want n logarithmically spaced ticks (which would appear linearly spaced on a log plot, you should just set the ticks to b...

Make Equal tick spacing in a loglog plot

If you want n logarithmically spaced ticks (which would appear linearly spaced on a log plot, you should just set the ticks to b...

9 meses ago | 0

| accepted

Answered

Axis scale on a subplot log graphics

When you want to match the axis limits, a helpful trick is to store the handles to each axes so that you can later query/set the...

Axis scale on a subplot log graphics

When you want to match the axis limits, a helpful trick is to store the handles to each axes so that you can later query/set the...

9 meses ago | 1

| accepted

Answered

How to find number of pixels (or matrix count) in a group in a given imagesc or data

There are a few functions for finding little regions like this, but if you have the Image Processing Toolbox you might consider ...

How to find number of pixels (or matrix count) in a group in a given imagesc or data

There are a few functions for finding little regions like this, but if you have the Image Processing Toolbox you might consider ...

10 meses ago | 1

| accepted

Answered

Receive Error using / Arguments must be numeric, char, or logical when I am using histogram

histogram returns a graphics object, so when you try to divide that by n you'll get an error. If you're looking for the values ...

Receive Error using / Arguments must be numeric, char, or logical when I am using histogram

histogram returns a graphics object, so when you try to divide that by n you'll get an error. If you're looking for the values ...

10 meses ago | 0

| accepted

Answered

problem in sorting an array with "sortrows" command

A good way to sort one array using the order of another is with the second output argument of sort: timeorder=[3.4,7,1,8,5.1,9]...

problem in sorting an array with "sortrows" command

A good way to sort one array using the order of another is with the second output argument of sort: timeorder=[3.4,7,1,8,5.1,9]...

10 meses ago | 0

| accepted

Submitted

densityScatterChart

A scatter where the color (and/or transparency) of the markers indicates the density of points.

10 meses ago | 15 downloads |

Answered

A question about adjustment the Histogram2 Properties

For the first bit, you can set the EdgeColor to 'none'. For the second bit, getting 'squares' depends on both the fact that bin...

A question about adjustment the Histogram2 Properties

For the first bit, you can set the EdgeColor to 'none'. For the second bit, getting 'squares' depends on both the fact that bin...

10 meses ago | 1

| accepted

Answered

How to use a for-end loop to load in 6 xlsx files and plot all the data within them on one plot?

I guess you have two options about how you're going to tell MATLAB about all those xlsx files - either you're going to construct...

How to use a for-end loop to load in 6 xlsx files and plot all the data within them on one plot?

I guess you have two options about how you're going to tell MATLAB about all those xlsx files - either you're going to construct...

10 meses ago | 0

Answered

setting the "hold" property for axes

The hold function corresponds to the NextPlot property on the Axes. I realize that's a little confusing - hold has only two st...

setting the "hold" property for axes

The hold function corresponds to the NextPlot property on the Axes. I realize that's a little confusing - hold has only two st...

10 meses ago | 1

| accepted

Answered

Bar graph grouped with two y axis

bar graphs don't collaborate between sides of a yyaxis very well, but you can fake it by padding with zeros: x = categorical({'...

Bar graph grouped with two y axis

bar graphs don't collaborate between sides of a yyaxis very well, but you can fake it by padding with zeros: x = categorical({'...

10 meses ago | 1

| accepted

Answered

Please help, i have the idea of what I'm wanting to find but do not know how to actually code this!

How about something like this: % You might consider readmatrix or readtable instead of load... % But load works for such simpl...

Please help, i have the idea of what I'm wanting to find but do not know how to actually code this!

How about something like this: % You might consider readmatrix or readtable instead of load... % But load works for such simpl...

10 meses ago | 1

Answered

Help creating xbar control chart

You specified x as a vector, but controlchart doesn't accept x as a vector. controlchart is going to use means and limits, and i...

Help creating xbar control chart

You specified x as a vector, but controlchart doesn't accept x as a vector. controlchart is going to use means and limits, and i...

10 meses ago | 0

Answered

Plot multiple tables from workspace using for loop

If you want to reference the tables as you describe, you'd need them in an array (in C, or in MATLAB): t1=table((1:10)',rand(10...

Plot multiple tables from workspace using for loop

If you want to reference the tables as you describe, you'd need them in an array (in C, or in MATLAB): t1=table((1:10)',rand(10...

10 meses ago | 1

| accepted

Answered

Parse error at "t"

When you multiply in MATLAB you need a * symbol r = -10*e-1.8t; should be r = -10*e-1.8*t;

Parse error at "t"

When you multiply in MATLAB you need a * symbol r = -10*e-1.8t; should be r = -10*e-1.8*t;

10 meses ago | 1

| accepted

Answered

How to do the check box in GUI app designer ??

You should not use global, roi should probably be a property on your app. But I think to prevent it from being deleted, you nee...

How to do the check box in GUI app designer ??

You should not use global, roi should probably be a property on your app. But I think to prevent it from being deleted, you nee...

10 meses ago | 0

| accepted

Answered

How can I insert a bunch of 6x6 matrices into a larger 30x30 matrix?

I think you're saying: you have an existing 30x30 matrix and some existing 6x6 matrices, and you want to put the values from one...

How can I insert a bunch of 6x6 matrices into a larger 30x30 matrix?

I think you're saying: you have an existing 30x30 matrix and some existing 6x6 matrices, and you want to put the values from one...

10 meses ago | 0

Answered

Plotting polarplot with 2 months in each from a 12 month dataset

You didn't say much about what's going wrong, but one thing I noticed is that your hold on statements are in the wrong spot. You...

Plotting polarplot with 2 months in each from a 12 month dataset

You didn't say much about what's going wrong, but one thing I noticed is that your hold on statements are in the wrong spot. You...

10 meses ago | 2

| accepted