How do I get rid of the dotted lines when using multcompare?
[results,~,h] = multcompare(stats,'Dimension',[1 2]); %return 'h', the figure handle axh = gca(h); % get the ...

7 Tage ago | 0

| accepted

How to creat autoumaticly a file .mat without removing the last one
Here are some suggestions. Input filename or file number One of the function inputs can be the filename of the mat file. fu...

7 Tage ago | 0

How do I put vertical and horizonal error bars on a curve fit?
"I'm looking to have scattered points (with errorbars through them) on a plot with a line of best fit. I do not want all my poin...

7 Tage ago | 1

How to stop a plot window to open in app designer?
This line is opening a new plot; remove it. ax = gca; To understand the gca() function, https://www.mathworks.com/help/matlab/...

7 Tage ago | 0

| accepted

"Is there anyway I can keep the same values on the second menu as the first menu after one option is removed?" Instead of using...

7 Tage ago | 0

grpstats for several variables
Have a look at the list of statistics that are accepted as character vectors. Note that 'median' is not one of the options. h...

7 Tage ago | 1

| accepted

Replacing multiple values at specific indices in a matrix with a single value
ismember() will return a logical array the same size as 'd'. If you need ones and zeros rather than true and false, you can con...

8 Tage ago | 0

Link specific coordinates to a color when plotting them
When you use plot(x,y) it returns 1 handles and you cannot specify different colors to objects within the same handle. You ca...

8 Tage ago | 0

Sorting points based on comparing distances.
Use the 2nd output to min() to pair the points in B to the nearest points in A. Then use splitapply to segment the points in B ...

8 Tage ago | 0

| accepted

I wish to open a saved figure in the figure number of my choice.
When you open a figure it takes the next available figure number and the figure number property is read-only and cannot be reass...

8 Tage ago | 0

Resample with replacement - bootstrap Kolmogorovâ€“Smirnov test
"How can I resample n observations with replacement without using this kind of built in functions?" Those function can be usefu...

8 Tage ago | 0

| accepted

How to separate a portion of filename from a file
[~, fname] = fileparts('scrubbed.MOD_D3_AOD_550.20020112.nc'); [~,tok] = regexp(fname,'.(\d+)\$','match','tokens'); str = tok...

8 Tage ago | 0

| accepted

GUI wait for uitable callback to write data to variable
Fixing the callback definition and function To start, the callback function cannot have an output. Although character vector d...

10 Tage ago | 0

convert celsius to fahrenheit with a popupmenu
The callback function to the "calculate" button should do the following, Get the string property in "temperature" field and co...

10 Tage ago | 0

How to do matrix or table multiplication?
resultTable = repmat(ExhaustTable,1,3) + repelem(IntakeTable,1,3) Or, if the number of columns vary, resultTable = repmat(Exh...

10 Tage ago | 1

how can i move the object along a path?
"errors are occuring.could anyone help me to edit my code" The code you provided runs without errors. However, the animated ob...

10 Tage ago | 0

Combine arrays of different dimensions
You cannot have a matrix with varying row lenght. One alternative is to create a padded array where NaN values fill the ends o...

10 Tage ago | 0

| accepted

Weighted average between NaNs with movmean, determing window length?
This approach breaks up the vector x into a cell array of non-nan segments and then calculates the mean of each segment. xMeans...

10 Tage ago | 0

anyway to get list of linestyle in uiaxes of app
For an axis or uiaxis, the LineStyleOrder default value is '-' no matter what you've plotted unless that property was changed fo...

11 Tage ago | 0

| accepted

Tell me how isoutlier function works
The algorithm is explained in the documentation. "By default, an outlier is a value that is more than three scaled median absol...

11 Tage ago | 0

How can I work around the fact that app designer does not support output arguments?
"I have various functions that are GUIs that are called by other functions (or even other GUIs) and I need to be able to pass da...

11 Tage ago | 0

cut out section of x axis
This solution identifies all data with dates past 7/18 and shifts them down by 5 days. Then it overrides the x ticks with custom...

12 Tage ago | 0

| accepted

Write cell array defined by a variable to a excel file
If you're using r2019a or later, use writecell() to write to an excel file. If you're using an earlier release, xlswrite(). Se...

12 Tage ago | 0

How to set a range for a random 4x3 Matrix
bounds = [-10,10]; x = rand(4,3) * range(bounds) + bounds(1); % for decimals x = randi(bounds,4,3); % for integers T...

12 Tage ago | 1

How can I solve this problem?
It looks like you're working with a GUI created in GUIDE. The GUI expects there to be a function named "popupmenu1_CreateFcn" b...

12 Tage ago | 0

How to create 2d plots
There are several major bottlenecks in your code that are slowing down the animation. on each iteration you are destroying t...

12 Tage ago | 1

I can't erase non-numerical data from an editable text
isstrprop() can be used to identify which characters are digits within a string. Then you can removed anything that isn't a dig...

13 Tage ago | 0

For many vectors of data of different length, how do I interpolate to set them all to have the same length?
Use interp1() Demo: xdata = 1:280; ydata = 10:150; xdataResamp = linspace(xdata(1),xdata(end),numel(ydata)); ydataInte...

13 Tage ago | 0

| accepted