Respondida
How to draw an histogram?
> How do I draw an histogram knowing the number of times all elements in a 150x150 matrix appears using matlab? Both histogram ...

más de 2 años hace | 0

| aceptada

Respondida
Given a contour plot is there a function which returns a matrix corresponding to the density of lines at a given (x,y) coordinate?
No, there is not a function that computes the density of contour lines. However, you could build such a function. First, you...

más de 2 años hace | 1

| aceptada

Publicado


R2024a release: What’s new in Graphics and App Building?
There are dozens of new graphics and app building features in the MATLAB R2024a release. Here are some highlights to keep...

más de 2 años hace

Thumbnail

Respondida
How to update vehicle's state variable in simulator?
I think the choice between the two options depends on a few factors. Relying on the state space equation (x'=Ax+Bu) involves c...

más de 2 años hace | 0

Respondida
Plotted patch changes size
Cause of the problem Indeed you are setting the patch location based on the ylimits but you are not setting the ylimits. After...

más de 2 años hace | 1

| aceptada

Respondida
Create mean y values by multiple groups in one graph
Use groupsummary to compute the means of each group. Then plot the results using bar() with categorical x values. This assumes...

más de 2 años hace | 0

Respondida
Plot a time series plot in customized rectangle
Previous answers suggest changing the size of the figure window which is one solution. Another solution is to set the size of...

más de 2 años hace | 1

| aceptada

Respondida
Generate 3D histogram while capping the height of bars
How to cap the height of a 2D histogram without affecting the max color for each bar This is tricky because hist3 does not retu...

más de 2 años hace | 0

Respondida
Change Colors of Multiple Objects Efficiently in AppDesigner with Switch
Looks like you're creating an exciting custom theme for your app @Brianna Billingsley! Here are some strategies to reduce the ...

más de 2 años hace | 1

| aceptada

Respondida
How to unfade legend placed on an empty (invisible) plot?
It's much better to use tiledlayout than subplot. With tiledlayout, the placement of the legend and the global title can be par...

más de 2 años hace | 0

Discussion


Look at this graph......
Me at the beginning of every meeting https://www.youtube.com/watch?v=9NkkZJHova4

más de 2 años hace | 4

Respondida
Data not aligned after zooming into figure using plotyy
plotyy is not recommended. Instead, use yyaxis which replaces plotyy. I've converted your code below. yyaxis does not have th...

más de 2 años hace | 2

| aceptada

Respondida
"The MathWorks" or simply "MathWorks"?
According to this MathWorks Brand Guidelines page, use MathWorks to refer to the company. The legal name of the company is The ...

más de 2 años hace | 1

Respondida
Graph lines not showing
max_value_refA = max(out2.Q_i_ref); avg_value_refA = mean(out2.Q_i_ref); yline(max_value_refA, '--k') yline(avg_value_refAm...

más de 2 años hace | 0

Respondida
How to show multi data probability densities in one axes?
Plotting two binscatters in one axes This solution does the following: overlay two axes in tiledlayout link the axes limits ...

más de 2 años hace | 0

Respondida
Get quiver plot arrows to connect up contour lines
Let's break this down into steps. This solution doesn't address all of the requirements in the question. Get the arrows to s...

más de 2 años hace | 0

Respondida
How do I add transparency to a plot in the Live Editor?
When using RGBA values, the alpha value is not saved so when the figure loads, the color will lack transparency. Due to how fig...

más de 2 años hace | 0

| aceptada

Respondida
Plotting lines with quadruplets R-G-B-Alpha ?
> Is this documented anywhere? No, the 1x4 RGBA alpha-color option is not documented at this time. One reason is that the alp...

más de 2 años hace | 0

| aceptada

Respondida
Stacked Plots - Changing the Location and Oreintation of the Display Labels (Y Labels)
Y-axis label rotation in stackedplot is addressed here. You could use the same approach to change the YAxisLocation to the righ...

más de 2 años hace | 0

Respondida
Rotating text to 90 degrees
It looks like you're working with embedded text. You may find this resource helpful: https://peterscarfe.com/rotatingText.htm...

más de 2 años hace | 0

Respondida
A 2D circle divided into 10 sectors in the 3D plot.
Creating a polar heatmap within Cartesian coordinates The basic idea is to create a polar grid centered under the data, plotted...

más de 2 años hace | 0

Respondida
Put Y-Ticks above bars in stacked horizontal bar chart
Annotations are tricky because they rely on coordinates that are normalized to the figure area rather than using data units. I...

más de 2 años hace | 0

Discussion


Create hyperlinks in the command window
The MATLAB command window isn't just for commands and outputs—it can also host interactive hyperlinks. These can serve as powerf...

más de 2 años hace | 5

Respondida
Disable figure generated code in Matlab R2023b
The subwindow you are describing only appears in the R2023b beta release found on the File Exchange. If you turn off the new de...

más de 2 años hace | 1

| aceptada

Respondida
Count percentage of certain number in struct
Looks like @Voss hit the nail on the head. Another approach is to use groupcounts to tally the counts between the two groups....

más de 2 años hace | 1

Respondida
Save matrix in matlab and call for operations
Two common approaches to storing a set of matrices are to store them in a cell array or, if the matrices are the same size, to s...

más de 2 años hace | 0

| aceptada

Respondida
How do I plot a timeseries?
Use readtimetable to create a timetable from your data file. If you're having problems with this step, provide a sample of your...

más de 2 años hace | 0

Respondida
How to include dependency in standalone app?
The MATLAB and Simulink compiler support page indicates that some functionality in the Audio Toolbox is not supported including ...

más de 2 años hace | 0

| aceptada

Respondida
Data Tips in parallelplot
The only way to add content to the datatip in parallelplot is to do so interactively by right-clicking the datatip in parallelpl...

más de 2 años hace | 1

Respondida
Dark Mode not working : R2023b Update 6 win64 on Windows 10 1903
After installing the update, you need to press the "Try the New Desktop" button at the top of the MATLAB desktop window.

más de 2 años hace | 0

Cargar más