Answered
date to string conversion
Assuming you want the date formatted as ddmmm ( see additional format options ), aa = datetime('now') % or aa = now() for doub...

5 years ago | 1

Answered
How can I modify tooltip delays in my application designed in Application Designer?
Java methods are not supported by uifigures. See a similar thread: https://www.mathworks.com/matlabcentral/answers/396625-how...

5 years ago | 0

| accepted

Answered
how can I use the function "table" in a loop when the number of input variables changes ?
array2table T = array2table(A); if you want to specify variable names "col#", T = array2table(A), 'VariableNames', compose('...

5 years ago | 0

| accepted

Answered
Please why does this code give an error "Index in position 2 exceeds array bounds. Index must not exceed 6"
According to the error, the variable "strain" only contains 6 columns but you're indexing a 7th column that doesn't exist. Eithe...

5 years ago | 0

| accepted

Answered
How to modify scatter3 default 'mouseover' display
Note that this demo assigns axis labels according your desciption of the desired datatip labels (L,a,b) whereas in your image, t...

5 years ago | 0

Answered
Acquire annual data from table
Convert your table to a timetable, T = readtable('https://www.mathworks.com/matlabcentral/answers/uploaded_files/836120/RaaheN...

5 years ago | 0

| accepted

Answered
How to plot an array with an hourly time stamp without starting at 00:00:00?
It sounds like you just need to set the datetime format of the x-tick labels and the x-axis limit. Use datetime-values for x...

5 years ago | 0

Answered
App designer Key-press callback
Attached is a simple demo app that contains a KeyPressFcn assigned to the uifigure and a button. The KeyPressFcn merely prints t...

5 years ago | 2

Answered
How can I see for a function from which version was change functionality!
The subtitle option was added in Matlab R2020b so your colleagues who are using 20b should not have a problem. R2020b Release...

5 years ago | 2

Answered
How to use stackedplot such that each graph has multiple lines AND x-axes is unevenly spaced continuous variable?
> I wish to include two lines on the first plot. It's easiest to work with tables or timetables when using stackedplot. If you...

5 years ago | 0

Answered
Plot not displaying lines
A line requires at least two points. Your x, x1, y, y1 values are scalars (single points). If you want to plot a marker instea...

5 years ago | 0

Answered
How to get a complement of a cell array in matlab?
This solution works if all elements of the 1D cell arrays 1x2 row vectors. V = {[1,2], [3,5], [5,6], [2,4],[3,7], [3,9], [8,9...

5 years ago | 0

| accepted

Answered
Clicking a button in a UIFigure that is not in focus only brings it the figure into focus, clicking it again causes the button action to happen twice.
> I have two interacting UIFigures. When the user clicks on a button in the figure that is not in focus, nothing happens other ...

5 years ago | 0

Answered
How to make the contour smooth other way(spline) and want to color a specific part
> 'cubicinterp' is 3rd interpolation by each point? Matlab documentation describes cubicinterp as Piecewise cubic interpolatio...

5 years ago | 0

| accepted

Answered
Why can't I open this saved .fig file in MATLAB live script?
Open the figure in Matlab, set visible = 'on', then save it. Use openfig(filename) in live editor. Note that the second inpu...

5 years ago | 0

Answered
get rid of series that contain useless values
Load the data use varfun to determine which columns of the table are cell-strings or strings use ismember find a list of key w...

5 years ago | 0

| accepted

Answered
Problem with running anova
It looks like you've shadowed matlab's gather function with a function or script of the same name. To see a list of functions...

5 years ago | 0

| accepted

Answered
Convert the cell array to matrix using for loop
Since you're dealing with scalars, instead of this line Data_of_collecting_fibers(i,j) = cell2mat(Dataofcollectingfibers(i,j)) ...

5 years ago | 0

Answered
How Does the Size of a Plot Annotation Text Box Matter?
Welcome to the convoluted world of annotation panes. You need to set the VerticalAlignment property to Bottom. figure plot...

5 years ago | 0

| accepted

Answered
Find all possible combinations of string array
Here are two options. Use combvec() from the Deep Learning Toolbox a = {'a','b','c','d'}; b = {'qq','rrr','ss'}; c = {'tuv',...

5 years ago | 1

| accepted

Answered
How can I animate the plot in the app designer UIAxes?
>How can I animate the plot in the app designer UIAxes? Animation in UIAxes is no different than animation in regular axes othe...

5 years ago | 1

| accepted

Answered
how to change the order of plots?
As of the current Matlab release (R2021b), it is not possible to control the uistack of objects on different sides of a yyaxis. ...

5 years ago | 0

| accepted

Answered
Splitting a table using varagin
The function definition in splitapply can also be an anonymous function in the form @(vars)func(vars) where vars can be a single...

5 years ago | 0

Answered
Reading an Excel table with both numbers and text
Use readtable which will read the data in as a table which is 2 dimentional but not a matrix. If you haven't used tables, you m...

5 years ago | 0

| accepted

Answered
How do I recommend fixes concerning typos in the "MATLAB Onramp" course?
Good question. You can click contact support > Report a bug > Tech Support > Product help, suggestions or documentation errors...

5 years ago | 0

Answered
Appdesigner get dropdown closing workaround
If you're closing the dropdown menu by selecting an option, you should include the reset actions in the DropDownValueChanged cal...

5 years ago | 1

| accepted

Answered
Setting array names from a table column name
Keep the data in a table The table already contains the data in a tidy format. Deconstructing the table into separate variable...

5 years ago | 0

Answered
How to adjust the size of components in appDesigner?
Sounds like you need to de-select the auto-resize option. https://www.mathworks.com/matlabcentral/answers/821460-deactive-auto...

5 years ago | 0

| accepted

Answered
Can't Get ThetaZeroLocation to Work Properly Using polarplot
You have to either hold the axes after setting ThetaZeroLocation or set ThetaZeroLocation after plotting. Otherwise, when you p...

5 years ago | 0

| accepted

Answered
How can I change the color of specific boxcharts?
It looks like you're either using "subplot" as a variable name of erroneously assigning boxchart handles to the subplot function...

5 years ago | 0

Load more