Answered
How to fit nonlinear data in a curve using the below equation?
The error message is quite clear, Exiting due to infeasibility: at least one lower bound exceeds the corresponding upper bound...

5 years ago | 0

| accepted

Answered
Plotting over a histogram
You're plotting a normal probability density function which are probabilities between 0 and 1 that sum to 1 (depending on sampli...

5 years ago | 2

| accepted

Answered
Delete axes interactions not working?
Difference between toolbar and interactions Interactions are the actions available by using the mouse to zoom/pan/rotate etc th...

5 years ago | 2

| accepted

Answered
Using data cursor with pcolor
@Mark Brandon, For 3D patches the color data does not have to correspond to the zdata. For example, You could have a 4D array w...

5 years ago | 5

Answered
Difference between switch and if
if/elseif/else is quite similar to switch/case/otherwise. Both provide a default action when no conditions are met (else & other...

5 years ago | 6

| accepted

Answered
Axis limits not working
xlim, ylim, zlim should have worked. You need to set them after you plot the scatterbar3.

5 years ago | 1

| accepted

Answered
removing the text data by only keeping the numerical values
Use readtable or readmatrix. Both functions allow you to specify the starting line of the data.

5 years ago | 0

Answered
How to change axis of figure and shift matrix?
Specify the x and y coordinates using the syntax imagesc(x,y,C) x and y are merely 1x2 vectors of axis limits so it should be q...

5 years ago | 1

| accepted

Answered
removing trailing zeros at the end of floating number
format long x = -3.265000000000; str = sprintf('%g\n',x) x = -3.2650000000001; str = sprintf('%g\n',x)

5 years ago | 0

Answered
Average Optical Flow vectors and plot over multiple frames
Here's a demo that shows how to Store the flow structure within a loop (assumes all flow arrays are the same size) Average a ...

5 years ago | 0

| accepted

Answered
How to extract a slider value?
See the value property in the slider documentation.

5 years ago | 0

Answered
How to delete/remove last row from .txt file in a for loop?
The description is vague for reasons outlined in Jan's comment. List path to all text files. See dir. Read in the text file. ...

5 years ago | 0

| accepted

Answered
Cernter of gravity.
Learn about Center of Mass equations here khanacademy hyper physics

5 years ago | 0

| accepted

Answered
How to check if handle is to a deleted axes?
How to check if graphics handle is to a deleted object? Let's look at some options and decide which is best. Deleted handles...

5 years ago | 0

Answered
Multiple legends on Axes in App Designer?
Only one legend can be associated with a pair of axes. When a second legend is assigned to axes, it replaces the first one. I...

5 years ago | 1

Answered
Bivariate colormap (let the colors indicate the average of third vector for each bins)
> I want to create a bivariate colormap using X and Y. However, instead of making the colors indicate the frequency or bin count...

5 years ago | 1

| accepted

Answered
changing interactionplot font size
Assuming no other text objects exist in the figure, figHandle = interactionplot(___) txtHandles = findobj(figHandle,'type','t...

5 years ago | 1

| accepted

Answered
How can I put a symbol (~) above a letter?
An alternative to using LaTeX to represent a diacritical character in a text object is to use a combining character to join a gl...

5 years ago | 1

Answered
Scatterhist: width of Boxplot
> I'd like the width of the left boxplot to be the same as the height boxplot below the scatter plot [in scatterhist] Key point...

5 years ago | 0

| accepted

Answered
Tiled layout with boxplot and 'Padding', 'none'
Why this is happening The boxplot function uses a local function setLabelappdata() to adjust the axes' OuterPosition, PositionC...

5 years ago | 1

| accepted

Answered
Is it possible to have larger (than 16-by-16) pointer size?
> Is there anyway that I can make the pointer larger than 16-by-16? Update: Starting in r2016b PointerShapeCData can be 16x16 o...

5 years ago | 1

Answered
How do I find built in sounds?
See Example Audio Data toward the bottom of this list. help audiovideo To find the location of a file, which chirp.mat

5 years ago | 1

| accepted

Answered
Is it possible to Plot a Music Visualizer?
If you search the internet for "matlab audio analysis" you'll see very many relevant hits across many platforms. Plus, there's ...

5 years ago | 0

| accepted

Answered
Binning a 3D scatter plot
3D density plot demos Here's an assortment of 3D density visualizations though there are many other ways to visualize 3D densit...

5 years ago | 4

| accepted

Answered
change color in uilable
The FontColor property of uilabel affects the entire label. There is no built-in method of coloring parts of labels. As a wo...

5 years ago | 0

| accepted

Answered
Order of legends in stacked bar plot
Stacked bars are stacked upward. That means the bottom layer of bars show column 1 of the input matrix and the top later of bar...

5 years ago | 7

Answered
xlim listener for zoom reset and linkaxes strange behavior
Starting in r2021a, you can supply a LimitsChangedFcn function the x-axes (or any of the x/y/z axes). This callback function ov...

5 years ago | 1

Answered
readjusting Y limits on subplots
Another approach is to use linkaxes to link the y-axis limits of all subplots. When combined with axis tight, that y-axis range...

5 years ago | 0

Discussion


New in R2021a: LimitsChangedFcn
*New in R2021a, |<https://www.mathworks.com/help/matlab/ref/matlab.graphics.axis.decorator.numericruler-properties.html#bun6izd-...

5 years ago | 6

Answered
How to apply a colormap to rgb image ?
As the error message indicates, for the syntax colormap(target,map), target is an axis handle but you're not supplying an axis h...

5 years ago | 1

| accepted

Load more