回答済み
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...

3年弱 前 | 1

回答済み
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...

3年弱 前 | 0

回答済み
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 ...

3年弱 前 | 1

回答済み
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...

3年弱 前 | 1

回答済み
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...

3年弱 前 | 0

回答済み
Labels in Stackedplot generated from Arrays
You mean something like hS=stackedplot([1:100]',randn(100,2)); hS.DisplayLabels={'Mag','Phase'}; hS.XLabel='Frequency';

3年弱 前 | 0

| 採用済み

回答済み
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 ...

3年弱 前 | 0

回答済み
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...

3年弱 前 | 0

| 採用済み

回答済み
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...

3年弱 前 | 0

回答済み
Add commas between number columns from text file
fn='https://www.mathworks.com/matlabcentral/answers/uploaded_files/1367139/ReactionsPortic5Combination4.txt'; opt=detectImportO...

3年弱 前 | 0

| 採用済み

回答済み
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...

3年弱 前 | 1

| 採用済み

回答済み
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...

3年弱 前 | 1

| 採用済み

回答済み
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...

3年弱 前 | 0

回答済み
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...

3年弱 前 | 1

回答済み
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...

3年弱 前 | 0

| 採用済み

回答済み
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...

3年弱 前 | 1

回答済み
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...

3年弱 前 | 0

回答済み
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 ... ...

3年弱 前 | 0

回答済み
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...

3年弱 前 | 0

回答済み
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...

3年弱 前 | 0

回答済み
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); ...

約3年 前 | 0

| 採用済み

回答済み
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...

約3年 前 | 0

| 採用済み

回答済み
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...

約3年 前 | 1

| 採用済み

回答済み
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)...

約3年 前 | 2

| 採用済み

回答済み
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...

約3年 前 | 0

| 採用済み

回答済み
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...

約3年 前 | 0

| 採用済み

回答済み
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...

約3年 前 | 0

| 採用済み

回答済み
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=...

約3年 前 | 0

回答済み
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...

約3年 前 | 2

| 採用済み

回答済み
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...

約3年 前 | 1

| 採用済み

さらに読み込む