Answered
FFT - How is the signal distributed between different frequency bins?
The frequency bins are fixed by the sampling rate; the magnitude of each bin is determined by the computation of the fourier coe...

7 years ago | 1

| accepted

Answered
Plot function into subplots
for i=1:3 hAx(i)=subplot(3,1,i); plot(x(:,i),y(:,i)); end presuming all x,y are same length. If they're not, then savin...

7 years ago | 0

| accepted

Answered
Set Properties.VariableContinuity to a single column in a timetable?
Per the documentation, ". This property can be an empty array, which is the default. If the array is not empty, then the number ...

7 years ago | 0

| accepted

Answered
Colormap utility - two axes in colorbar
Yeah, it's doable...refinements needed, but general idea works. Z = peaks(20); [~,hCF]=contourf(Z,10); hAx=gca; ...

7 years ago | 1

| accepted

Answered
download excel from web, webread doesn't work
Ah! That's actually a link to an Excel spreadsheet file, not web service data. Use websave('UMichSurvey.xls',url) ...

7 years ago | 0

| accepted

Answered
functions suddenly connected after restart
Apparently focus was in the editor and some of your keystrokes CTRL^C got interpreted to paste and some extra end statements wer...

7 years ago | 0

| accepted

Answered
How to set mmmm dd, yyyy as per our choice in the datestr command?
datestr(datetime(2017,9,2,2,0,0))

7 years ago | 0

Answered
Avoiding automatic sorting of eigenvalues
EIG() does NOT return sorted values; it returns them to the user in the order in which the underlying LAPACK routine calculates ...

7 years ago | 1

| accepted

Answered
How to display a vector in edit text in MATLAB?
By default it appears the Edit control converts an array to a column array of values and you can't display that in one row...if ...

7 years ago | 0

Answered
remove first element in cell and do not change index of other element
You're overthinking the problem...the first index is always 1... >> cellfun(@(a) 2:numel(a),A,'uni',0) ans = 1×3 cell array...

7 years ago | 0

| accepted

Answered
a big cell array
Follow the documentation--for xlswrite, every cell element has to be a single value. So, if your array has cells (or any single...

7 years ago | 0

Answered
List combinations and count how many it appears
y=Y(W~=0,:); z=unique(sort(cell2mat(arrayfun(@(i) nchoosek(y(i,y(i,:)~=0),2),1:size(y,1),'uni',0).'),2),'rows'); nZ=arrayfun(@...

7 years ago | 1

Answered
How to replace all 1x1 cells containing 'NAN' with 'NaN'?
opt=detectImportOptions('Equinor.txt'); t=readtable('Equinor.txt',opt); >> t.TIMESTAMP=datetime(t.TIMESTAMP,'InputFormat','uuu...

7 years ago | 0

| accepted

Answered
How to obtain the unique combinations of two columns in a table
year = [1994, 1994, 1994, 1995, 1995, 1995, 1996, 1996, 1996].'; type = {'AA', 'BB', 'CC', 'BB', 'BB', 'BB', 'AA', 'CC', 'CC'}....

7 years ago | 0

| accepted

Answered
Relative frequency y-axis using the histfit function
IIUC, N1=sum(h1(1).YData); N2=sum(h2(1).YData); h1(1).YData=h1(1).YData/N1; h1(2).YData=h1(2).YData/N1; h2(1).YData=h2(1).Y...

7 years ago | 0

| accepted

Answered
Total Hour Conversion to Date and Time
t=readtable('hc07.xlsx'); leaves me with >> t(1:5,:) ans = 5×21 table RECORDED CH04_HC07_CZ_SD_Cor...

7 years ago | 1

Answered
How to replace all 1x1 cells containing 'NAN' with 'NaN'?
>> load bin1 >> whos bin1 Name Size Bytes Class Attributes bin1 8396x1 112268...

7 years ago | 1

Answered
thresholding for multiple values
t1=meadian(Gbird(:)); median is misspelled... What do you want/expect as a result? Logicals don't work that way; you'll have ...

7 years ago | 0

Answered
How to convert a string to number in gui
Aha! OK, now I see the problem...indeed, '10' is a 1x2 char array and so it is a vector and the short-circuit logical operators...

7 years ago | 0

| accepted

Answered
FOR Loop _ Sum columns in Excel
As one alternative solution to S S, there's the readtable route... t=readtable('BPAQ.xlsx'); ...

7 years ago | 1

Answered
datetick gives me errors
You don't show definition of X, but datetick works only for axes drawn with datenum which is a double. But, datenum is old and...

7 years ago | 0

Answered
error bars plotting only on one side of the data points on a semi log plot
Check and you'll find the lower limit for those not plotted is <0 which can't be represented on log axis.

7 years ago | 1

| accepted

Answered
Can I plot a cfit object and specify the LineSpec using name/value pairs?
No, TMW didn't implement the named parameter interface in the cfit class plot() method. Another example of not following the ge...

7 years ago | 0

| accepted

Answered
is this is a bug for fft program?
See the documentation for doc transpose % .' doc ctranspose % ' You're transposing the output of the fft() which is complex;...

7 years ago | 1

| accepted

Answered
How to extract certain column of date-time data from a text file?
And, w/ all you considered, you neglected probably the easiest... :) Putting your first sample data into a file I named 'jie.da...

7 years ago | 0

| accepted

Answered
Why are spaces ignored when a character string is scanned?
WAD (Working As Documented). From the documentation-- .... This table lists available conversion specifiers for character inp...

7 years ago | 0

Answered
How can I rename a colum? How can I show several matrices/vectors within one Boxplot?
use optional named labels parameter--boxplot(z,'labels',{'A','B','C','D'}) boxplot([base testing resting]) % each is assumed to...

7 years ago | 0

Answered
How can I include Tukey (HSD) result in my boxlpot as "a" and/or "b" indicating whether there is a significant difference or not between the groups?
Kinda' a fun one... :) First, make sure your boxplot is gca, then the following seems to be pretty robust...the one probably un...

7 years ago | 1

| accepted

Answered
How to define the variable which contain multiple double data?
You were almost there...since each element in the struct array has just 2 columns, they can be catenated vertically--so convert ...

7 years ago | 0

| accepted

Answered
How to create new .txt files named like the saved models in a folder and show Diag. View. information of each model in these files seperately?
Oh, probably more nearly what you're looking for would be something otoo-- PATH = 'C:\Users\xxx\Documents\Saved_Models'; dSlx ...

7 years ago | 0

| accepted

Load more