Answered
Have legend reflect multiple marker sizes
The legend has been made mostly opaque in recent versions; it used to be you could get your hands on the axes upon which it was ...

3 years ago | 0

| accepted

Answered
close figure: return value
Use isvalid hF=figure; isvalid(hF) delete(hF) isvalid(hF) exist('hF','var') clear hF exist('hF','var') Or, put the refer...

3 years ago | 3

Answered
Problem with Anderson-darling test
The function definiton is function [AnDarksamtest] = AnDarksamtest(X,alpha) which doesn't have but one return variable and you...

3 years ago | 1

| accepted

Answered
create separate cells based on the (numbered) files contained in a folder
Hint: fnames={'378','933','934','935'}; % simulate array of filenames nums=str2double(fnames) % convert t...

3 years ago | 0

| accepted

Answered
Semilog plotting in loop
Well, let's try a little different tack, using some other MATLAB features... opt=detectImportOptions('wells.xlsx'); opt.DataRa...

3 years ago | 0

| accepted

Answered
uitable in app designer: format scalar and size cell table
Well, without code to look at, it's hard to point out what may have done wrong -- a simple test here worked just fine... p=[20 ...

3 years ago | 1

Answered
In the chi-square test, how to calculate (the correct number of parameters and consequently) the correct number of degrees of freedom, without using the chi2gof function?
Although you specified 'Ctrs', bins, chi2gof created only 5 bins because the obsCounts values for the last two bins in the 'Freq...

3 years ago | 1

Answered
Code to obtain average pixel intensities of all frames of a video with help of a single code
VideoReader supports reading all frames at once (or any number if can't hold all in memory at once); use the vectorized function...

3 years ago | 0

| accepted

Answered
Calculate power density function of a topographic height map (csv file) containing periodic structures
unzip https://www.mathworks.com/matlabcentral/answers/uploaded_files/1416309/Cu-Folie_Paper_8um_AR0.30_2min_230515_8xZoom_1.csv....

3 years ago | 0

Answered
part txt file combine first two line into one line and repeat for the following next two lines.
txt=[ "2223343 MATERIAL: UNKNOWN " "1.22222e-06 1.33333e+02 1.44444e+03 5.55555e+0...

3 years ago | 0

Answered
How to plot discrete array with colors
I looked at the vectorized version issue a little -- it doesn't work easily for the purpose because even if you create multiple ...

3 years ago | 0

Answered
fix content .txt file (organize the inside of the .txt file)
As noted before, don't try to fix a malformed text file; create the file correctly in the first place...we'll start from the ori...

3 years ago | 0

Answered
how use uigetfile to get file or new file
Well, there is no file of that name in the displayed directory; uigetfile does not return a file that does not already exist; th...

3 years ago | 1

| accepted

Answered
How do you get rid of the VariableNamingRule warning when you do want it set to modify ?
It's annoying to be constantly nagged, agreed. But, setting it explicitly doesn't affect whether it is generated or not as you'...

3 years ago | 1

| accepted

Answered
fix content .txt file (organize the inside of the .txt file)
You can try tYourTable=renamevars(tYourTable,{'Parameters1','Parameters2'},{'Parameters:','Values'}); writetable(tYourTable,'Y...

3 years ago | 0

Answered
center text in app designer
Well, it CAN be done; don't know that I would recommend it still, but... hUIF=uifigure; pLbl=[200 200 50 100]; % label positi...

3 years ago | 0

Answered
Multi column legend in matlab plot
Try FEX submission

3 years ago | 0

| accepted

Answered
How can I delete an xline/plot from a plot without deleting the other ones on the graph? (I am using checkbox)
You need to keep each line handle when it is plotted as a global app data variable for each CB that plots each line. Then the c...

3 years ago | 0

Answered
displays a text by moving the mouse over it
See <prior Answer>. The specific solution that is most elegant requires the iptPointerManager which is only in the Image Proces...

3 years ago | 2

Answered
How to plot a spectral analysis of a displacement signal
data=readmatrix('MTACT.xlsx'); t=data(:,1);y=data(:,2); subplot(2,1,1) plot(t,y) dt=mean(diff(t)); Fs=1/dt; L=numel(t); y...

3 years ago | 1

| accepted

Answered
grouping/binning by time
data={ '14:49:56.421875000' 'ccccd9' '14:49:56.421875000' 'cccccb' '14:49:56.429687500' 'cccce0' '14:49:56.421875000' ...

3 years ago | 0

| accepted

Answered
How to extract string/numbers after a keyword in a text
"How to extract the corresponding value after a given keyword?" data=readlines('Example.txt'); % bring the file into memory fo...

3 years ago | 2

| accepted

Answered
how to plot two-column text file of the energy spectra
uzip = unzip('point.zip') spec=readmatrix('point/point1.prn','filetype','text'); whos spec figure plot(spec, 'x-') Doesn't ...

3 years ago | 0

| accepted

Answered
Error with OPTIMOPTIONS and lsqcurvefit
Have you checked the documentation for the installed version (R2022a) for allowable syntax? I have R2020b and R2023a and the eq...

3 years ago | 1

Answered
How to plot a very large number of individual points
It's not the wrong function, but applying it very inefficiently. Each call to plot() produces another line object so you're cre...

3 years ago | 0

| accepted

Answered
Cannot write netcdf file
filename = "/Users/gulfcarbon2/Desktop/AD-ATCOR/output/AQUA_MODIS.20190816T194000.L2._Rrs.nc" nc_filename = [filename(1:end-6),...

3 years ago | 0

Answered
What are Your Thoughts on TMW Using Answers as Source of Documentation?
My thought is it's abadideaâ„¢ and particularly why illustrated by the subject of the given question -- it's a Catch22 situation f...

3 years ago | 1

| accepted

Answered
how could i stack multiple satellite data of soil moisture in to one and find out the nanmean of all files? The size of files is 1440*720. The file is in '.nc' format.
% read the all nc file d= dir('*.nc'); % dir() returns a struct, not a file or even a file name... ...

3 years ago | 0

Answered
Skipping part of code
The other way that fools the code analyzer is to insert one level of indirection...the following doesn't generate the warning wh...

3 years ago | 2

Answered
How to gather data from a table with variables?
Have the button callback set an application variable when the user selects it; then use that value in the calculate callback fun...

3 years ago | 1

| accepted

Load more