답변 있음
How to replace arrays containing consecutive repeated numbers by zero?
For some reason I'm drawn to detecting / counting consecutive numbers. I must have answered more than 5 questions similar to th...

거의 6년 전 | 2

| 수락됨

답변 있음
How to plot result from fitnlm?
Demo: plotting fitnlm results with two predictors This demo supplements Star Strider's answer by showing how to plot fitnlm() r...

거의 6년 전 | 0

답변 있음
Creating Timetable from Excel for Driving Cycle.
Create the timetable opts = detectImportOptions('GPS Cycle.xlsx'); opts.VariableTypes = {'double','datetime','double','double...

거의 6년 전 | 0

| 수락됨

답변 있음
Mean value of a subarray
The answer in this link computes segmented averages as you describe except instead of averaging 1:8, 8:15, ... , it averages 1:8...

거의 6년 전 | 0

| 수락됨

답변 있음
How to wait for a button to be pressed?
Place this in the line where you want execution to pause uiwait(handles.figure1) % use your figure handle Then, from within t...

거의 6년 전 | 0

답변 있음
Why does corr function result depend on the number of columns ?
Understanding the output of rho=corr(x) r = corr(x,x); is the same as r = corr(x); If a single value is changed in x in col...

거의 6년 전 | 0

| 수락됨

답변 있음
How to plot a histogram in a waterfall plot?
The bars will have to have a width value but you can make that value very small to appear as flat. For bar3(Z), when Z is a m...

거의 6년 전 | 1

답변 있음
how to use cells as xlabel in stackedplot
First convert your matrix to a table and use the variable names in your cell array. T = array2table(x, 'VariableNames', varNa...

거의 6년 전 | 0

| 수락됨

답변 있음
MATLAB app designer close during running
Open the problematic app in appdesigner using r2019b (or whichever release you plan on using). When an app is developed in one ...

거의 6년 전 | 0

답변 있음
Subplot Titles left justified
Prior to Matlab r2020b Set the title's units to Normalize Move the title leftward Set the title's HorizontalAlignment to Left...

거의 6년 전 | 4

| 수락됨

답변 있음
How can I draw equations I found on WolframAlpha in MatLAB?
You must convert the mathematical notation to a syntax recognized by Matlab. For example, this segment, becomes any of the...

거의 6년 전 | 0

| 수락됨

답변 있음
Give focus to an Edit Field
In MATLAB R2022a and later Using AppDesigner in MATLAB R2022a and later, control tab/focus order in AppDesigning using the new ...

거의 6년 전 | 3

답변 있음
How can I delet a point in Uiaxes thats Handlevisibility is set to 'off''
Control what appears in the legend without setting HandleVisibility to off. Use object handles to specify what belongs in the...

거의 6년 전 | 0

| 수락됨

답변 있음
Histogram won't plot decimals
The problem is likely caused by at least one of the elements in column 4 that is not numeric. The non-numeric value could be pa...

거의 6년 전 | 1

답변 있음
Why a linear model cannot be plotted in app designer?
This issue has been fixed in MATLAB R2023b Starting in MATLAB R2023b, provide the axis handle as the first input to plot the fi...

거의 6년 전 | 3

| 수락됨

답변 있음
How to set colorspace of line in special code of graph?
Change the color of all graph edges plot(G, . . ., 'r') % red plot(G, . . ., [.5 0 .5]) % purple Change the colors of...

거의 6년 전 | 0

답변 있음
GUI, make a handle disappear
"I want to achieve that when clicking both pink clickboxes I want to make all the red handles disappear. " The function you sha...

거의 6년 전 | 0

| 수락됨

답변 있음
How can I extract X and Y from gauss2 fit or any other fit (poly2, poly 3, ...)?
The fit function merely fits your pre-existing (x,y) values and returns a fitobject that contains parameter values you can use t...

거의 6년 전 | 0

| 수락됨

답변 있음
How to use impixel in UI created in App Designer
As of r2020a, impixel() is not supported with uifigures (e.g. AppDesigner; see Graphics Support in App Designer). Workaround ...

거의 6년 전 | 1

답변 있음
How to find point of intersection of lines given y value
For each line, 1) Compute the slope of the line using the standard slope forumula. m = (y(2)-y(1)) / (x(2)-x(1)); 2) Compu...

거의 6년 전 | 0

답변 있음
how can I define a global variable in app designer?
There are very few reasons, if any, to use global variables in apps and it's usually the sign of trouble. If the variable is m...

거의 6년 전 | 3

| 수락됨

답변 있음
Exporting the plot in regression learner
Doc page for exporting plots in Regression Learner app: https://www.mathworks.com/help/stats/export-plots-in-regression-learner...

거의 6년 전 | 0

| 수락됨

답변 있음
"The file has been modified outside of MATLAB Editor. Do you want to reload it?" error. How to repair that?
This is a band aid, not a solution. This is the error dialog that appears when a files stored on a mapped network drive are e...

거의 6년 전 | 1

답변 있음
A function that outputs multiple plots? Part 2
If you want to set the figure number, h = figure(); % or h = figure(5); plotoutput(__,h) % fill in your other inputs ...

거의 6년 전 | 0

답변 있음
How to enable the colorbar to only show the vertical scale with values ?
The plot below was produced using your exact code as it appears in the comment under the question plus the following two lines a...

거의 6년 전 | 0

| 수락됨

답변 있음
App Designer - Understanding the Basics
The problem, as the error message indicates, is that HeatmapChart objects cannot be a child of UIAxes. It's just not supported ...

거의 6년 전 | 0

답변 있음
upper axis title doesn't fit in the output of my plot
Reduce the height of the first axis % This reduced the height to 80% % Play around with the value to get what you want ax1.P...

거의 6년 전 | 0

| 수락됨

답변 있음
How to add a noise in my Input graph?
noise = randn(size(signal)) will return an array of random values from a standard normal distribution with mean=0 and varianc...

거의 6년 전 | 0

답변 있음
Using data from timetable to make a histogram
Use histogram(x) where x is your data TT1.stddev1. See that link of additional syntaxes that allow you to set the bins.

거의 6년 전 | 0

답변 있음
Filling in the area around an ellipse?
x = [x_frame, ellipse_x]; y = [y_frame, ellipse_y]; patch(x,y, 'r', 'EdgeColor', 'none') axis equal % optional

거의 6년 전 | 0

| 수락됨

더 보기