Réponse apportée
how to plot a bar graph using for loop?
%Read the data from positive test results %data.COVIDStatus(k)==1 %Include data which satisfies k condition for the appropriat...

presque 3 ans il y a | 1

Réponse apportée
When creating an app, how do you plot points on top of a line on a UI axis?
% We will write the following code in the button push function, % since we want the push of this button to 1.) main_axes = ap...

presque 3 ans il y a | 0

Réponse apportée
How can I use a for loop to interpolate to a certain number of points, and remove NaNs?
Like @Rik, I don't understand the desire well enough to know precisely the result you're looking for, but to find the locations ...

presque 3 ans il y a | 1

Réponse apportée
A suitable method to detect outliers from a non-normally distributed dataset?
You made it notoriously difficult to do anything to help by not attaching the data in a usable form, but... fn='https://www.mat...

presque 3 ans il y a | 1

Réponse apportée
autocorr, xcov, xcorr, which one should I choose to calculate auto-correlation function? And what's the difference among them?
Doesn't really matter although from the doc, the autocorr function in the Econ TB uses the FFT to compute and then IFFT to retur...

presque 3 ans il y a | 0

Réponse apportée
Labels in Stackedplot generated from Arrays
You mean something like hS=stackedplot([1:100]',randn(100,2)); hS.DisplayLabels={'Mag','Phase'}; hS.XLabel='Frequency';

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Saving output in different rows with subsequent runs of my program.
See the 'append' value for the 'WriteMode' named parameter in <writetable>. Far more efficient would be to wrap your code as a ...

presque 3 ans il y a | 0

Réponse apportée
how to create legend from neighboring column in 3d plot
Why folks continue to beat head against wall with deprecated xlsread is beyond ken... fn='https://www.mathworks.com/matlabcentr...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Add commas between number columns from text file
Given the fixed format nature of these files, the best thing to do is probably to just build a specific fixed-width import optio...

presque 3 ans il y a | 0

Réponse apportée
Add commas between number columns from text file
fn='https://www.mathworks.com/matlabcentral/answers/uploaded_files/1367139/ReactionsPortic5Combination4.txt'; opt=detectImportO...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
How to create string of text-objects
Holding disparate data types would be a good place to use a table as alternative to the cell array... D = [randi(100,10,1),rand...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
How do I save the output from a double for loop to a vector?
counter = 0; VectorOfValues=zeros(24,1); % preallocate for n = 0:23 for i = 1:height(Exceldata) if (duration(n,0,0...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
Graphing an array by largest row to smallest row
output_array = {[1,2,3]+0; [1,2,3,4,5]+0.1; [1,2,3,4]+0.2}; [~,ix]=sort(cellfun(@numel,output_array),'descend'); ix=num2cel...

presque 3 ans il y a | 0

Réponse apportée
How to sorting categorical array for plotting
function male=MakeMaleSample(n) male=categorical("M"+1:n,"M"+1:n); end To force a non-lexical sort order, you have to speci...

presque 3 ans il y a | 1

Réponse apportée
Place filenames with common pattern in a cell array
C = {'breakpoint_b40_f15.txt', 'breakpoint_b50_f15.txt', 'breakpoint_b40_f20.txt', 'breakpoint_b50_f20.txt', 'breakpoint_b40_f25...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
I am getting "Conversion to logical from table is not possible." error, how do you solve it?
... data1 = readtable('data1.csv'); data2 = readtable('data2.csv'); ... You read a csv file as a table; the two variables ar...

presque 3 ans il y a | 1

Réponse apportée
Subdividing column matrix based on two stored indices of different lengths
A = [0.0048;-0.001;-0.0042;0.0047;-0.00011;0.0025;0;0;0;0;0.0023;0.0004]; order =[4;5;6;7;8;9;1;2;3;10;11;12]; pull = [7;8;9...

presque 3 ans il y a | 0

Réponse apportée
ERA5-Land: error calculating hourly radiation
Seems very peculiar way to have done, but I'd just fix the date and then process by it instead... % Load the NetCDF file ... ...

presque 3 ans il y a | 0

Réponse apportée
Separating text files according to latitude and longitude
Sure. Just read the lat/lon data file, substitute the dot woth underscore and do a dir() with that string in the filename wildc...

presque 3 ans il y a | 0

Réponse apportée
I have a problem regarding an Index because it exceeds array bounds.
It would appear that the X array is 37xN instead of Nx37... BTW, you don't need a loop to compute the difference; diff() is vec...

presque 3 ans il y a | 0

Réponse apportée
How do I group data into different groups based on values of 2 columns for analysis?
fn='https://www.mathworks.com/matlabcentral/answers/uploaded_files/1361218/position_velocity%20data.xlsx'; tLC=readtable(fn); ...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Why are my line plots are coming out improperly?
Well, there's no "problem" with the nested loop other than apparently it isn't what you intended... :) It iterates through each...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
How can I properly extract individual filenames, with often times similar naming?
Putting meta-data into the file names is a large part of the issue; but if the files are something other than data files that ar...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
Matching two array elements by rounding up and down
fn='https://www.mathworks.com/matlabcentral/answers/uploaded_files/1359918/data_list.txt'; tT=readtable(fn); ix=isfinite(tT.B)...

presque 3 ans il y a | 2

| A accepté

Réponse apportée
Can I remove the date from big data set text file?
Not easily, no you can't ignore the date because the file is tab delimited and the date/time is a single string. To ignore it a...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Fastest way to search files by pattern name
As far as the original Q?, it's owing to how the underlying OS processes the dir command -- when you ask for a directory listing...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
How to identify text files with zero value
"...is any way to extract the text files[?]" What do you mean by "extract", precisely? What is the end result you're after; to...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Writing txt files accurately with a restriction on the number of columns.
Still with same idea but a little cleaner implementation... %a=randi(200,[1,25]); %fmt=['%d' repmat(',%d',1,numel(a)-1)]; %s=...

presque 3 ans il y a | 0

Réponse apportée
Writing txt files accurately with a restriction on the number of columns.
a=randi(200,[1,25]); fmt=['%d' repmat(',%d',1,numel(a)-1)]; s=sprintf(fmt,a) LL=25; L=strlength(s) O=[]; while L>0 I=st...

presque 3 ans il y a | 2

| A accepté

Réponse apportée
I have 400 columns of matrix, I want to calculate FWHM. I'm trying find codes related to find peaks, but nothing works. I cannot see the FWHM as 400 different columns.
fn='https://www.mathworks.com/matlabcentral/answers/uploaded_files/1356933/ace%20re.xlsx'; data=readmatrix(fn); whos data plo...

presque 3 ans il y a | 1

| A accepté

Charger plus