Answered
How Can I nest multiple tables?
Starting in MATLAB R2018b, tables can be nested as subtables by adding a table as a table variable. Lancaster = table(rand(5,1...

3 years ago | 3

Answered
Can you have a multilevel table?
An alternative to @Voss's execellent answer is to create the nested table(s) and then add the nested table(s) as a table variabl...

3 years ago | 1

Answered
Sub heading in matlab table
There isn't an option to arrange subheadings as described in your attached image. However, there are several ways to rearran...

3 years ago | 1

| accepted

Answered
Get output values from addlistener
> The new ROI data would be used as "coordinates" to calculate other parameters of my code There's no need for a listener to a...

3 years ago | 0

| accepted

Answered
How do I rotate a square /rectangle using line as the reference point? Thank you
I believe you're asking how to rotate the polyshape about its centerpoint. If so, specify the reference point of rotation using ...

3 years ago | 1

Answered
Running a timer inside another timer
The problem seems to be that the line that starts deprivTimer uses "app.deprivTimer" but "app" is not one of the input arguments...

3 years ago | 0

Answered
How to generate a polar plot in a for loop
It looks like you are plotting single points. The default marker is 'none' such that the function produces lines without marker...

3 years ago | 0

| accepted

Answered
Convert 3DPointCloud into a plot XY (2D)
If the goal is to view the pointcloud from the top to see the XY plane, there's no need to replot the data. To view a 3D axes...

3 years ago | 0

Answered
How do I plot Gantt Chart for scheduling?
There are several Gantt Chart functions on the File Exchange. You could create your own Gantt chart by building on this quick...

3 years ago | 1

| accepted

Answered
How to automatically adjust the y-axis of a boxchart so that outliers are not considered?
> How can I automatically adjust the y-axis of those plots so that only the boxplots and the whiskery but not the outliers are c...

3 years ago | 2

| accepted

Answered
How to get scale and coordinates from quiver function?
> the particles have new locations [X1, Y1]. Is there a way to get this new location data? If you already have the X, Y, U and...

3 years ago | 1

| accepted

Answered
My function won't accept the vector
Perhaps you're looking for x = 0:1:10; f = x.^2-x-1;

3 years ago | 1

Answered
Detect when UIfigure is open
MATLAB currently does not return an indication that rendering is complete but you could use a MATLAB function that requires rend...

3 years ago | 0

Answered
Value of cross correlation in matlab?
You could compute the cross correlation at 0 lag using r = xcorr(___,scaleopt) where scaleopt can be set to a normalization opti...

3 years ago | 1

| accepted

Answered
Export figure using print with variable as the file name
Use exportgraphics (or another function export function, if needed) and define the filename using sprintf. Example: fig = fi...

3 years ago | 2

| accepted

Answered
Error converting string into cell array
> Sources is an image, however I just need the name of it stored in the matrix Assuming sources is a string or character vecto...

3 years ago | 0

| accepted

Answered
How to create a matrix whose elements are a function of previous elements
This solution has two "inputs", initialMatrix and nRows and produces the output matrix out which has the same number of rows spe...

3 years ago | 0

| accepted

Answered
How do I change a string object into a variable name that heatmap accepts
If nchoosek returns a cell array of strings, you can index them using { } try this. heatmap(engine_config, group_perms{i,1}, g...

3 years ago | 0

| accepted

Answered
Overlay some line plots selectively from different .fig files in Matlab?
> Is there a better way to merge plots systematically? The color of the lines and markers in your plots were intentionally set ...

3 years ago | 2

| accepted

Answered
How to set the number of digits in a .txt file?
If you're using these values as numeric values, then you don't need the leading 0 since 056 is the same as 56. If you're usin...

3 years ago | 0

| accepted

Answered
Find the percentage of area occupied by an object
Assuming that this is an image and that the pink color is a single RGB color value, you could compute the number of pixels with ...

3 years ago | 1

Answered
block plotting a figure
This is a common problem which often arises from functions that produce sanity-check visualizations or other windows to underlyi...

3 years ago | 1

Answered
Shutdown at specific time
This solution displays a confirmation dialog that indicates to users that MATLAB will close unless they decide to cancel the aut...

3 years ago | 0

Answered
Change the position of a pie chart
The solution below rotates the set of objects that create a pie chart by using an hgtransform. The text label alignment needs...

3 years ago | 0

Answered
Undefined function 'imsegkmeans' for input arguments of type 'uint8'.
imsegkmeans accepts uint8 values which means either You don't have the image processing Toolbox, or You are using a MATLAB re...

3 years ago | 0

| accepted

Answered
Cell entries as the third dimension of the cell2mat matrix.
Compute B outside of the loop for k=1:N for j=1:N A{k,j}=S(:,j).*D(k,:).'; end end B = permute(reshape(hor...

3 years ago | 0

| accepted

Answered
Disable help tips in app designer
Setting preferences to control suggestions and completions From the MATLAB Environment, go to the Home tab, and open Preferen...

3 years ago | 0

| accepted

Answered
Pop-ups don't appear when starting from AppDesigner
After reducing your startup function to the following, I could not reproduce the results in MATLAB R2022a. function startup(a...

3 years ago | 0

Answered
Histogram (with sum of variables on y-axis)
Hello Vlatko, I'm not sure if you want to sum the two vectors and then compute the binned sum or if you want to compute the bi...

3 years ago | 0

| accepted

Answered
How can convert line plot to bar plot
It appears you're looking for bar(x) or bar(x.') depending on how you'd like to group the bars.

3 years ago | 0

Load more