Answered

efficient ways to read and write complex valued data

Well, dunno how much faster/slower it might be; didn't try to time it, but trying something different-- Iffen by "interleaved" ...

efficient ways to read and write complex valued data

Well, dunno how much faster/slower it might be; didn't try to time it, but trying something different-- Iffen by "interleaved" ...

8 jours ago | 0

Answered

Change axes x in stackedplot

See yesterday's news...<how-can-i-change-the-pspectrum-time-units> and, while it doesn't look related from the title, it's got t...

Change axes x in stackedplot

See yesterday's news...<how-can-i-change-the-pspectrum-time-units> and, while it doesn't look related from the title, it's got t...

8 jours ago | 0

| accepted

Answered

What frustrates you about MATLAB? #2

Stuff like <heatmap-axis-labels-printing-vertically> and <how-can-i-change-the-pspectrum-time-units>. Introducing all these mos...

What frustrates you about MATLAB? #2

Stuff like <heatmap-axis-labels-printing-vertically> and <how-can-i-change-the-pspectrum-time-units>. Introducing all these mos...

8 jours ago | 1

Answered

How to change strange cell array within a table to double or categorical array

Well, it'd be easier to be sure if could actually know for sure what the data storage is, but guessing on account of the " surro...

How to change strange cell array within a table to double or categorical array

Well, it'd be easier to be sure if could actually know for sure what the data storage is, but guessing on account of the " surro...

9 jours ago | 0

| accepted

Answered

Locating characters in a string array

As the other respondent says, you don't need a corollary array unless the lookup isn't 1:1 with position (which your description...

Locating characters in a string array

As the other respondent says, you don't need a corollary array unless the lookup isn't 1:1 with position (which your description...

9 jours ago | 1

Answered

Extrapolate using half the slope than in original data

You've got to match the two at the breakpoint...w/o data so didn't use but the endpoints to roughly match your figure... x=[1 2...

Extrapolate using half the slope than in original data

You've got to match the two at the breakpoint...w/o data so didn't use but the endpoints to roughly match your figure... x=[1 2...

10 jours ago | 1

| accepted

Answered

How to change strange cell array within a table to double or categorical array

Use the optional valueset, and perhaps catnames inputs to categorical to define as desired.

How to change strange cell array within a table to double or categorical array

Use the optional valueset, and perhaps catnames inputs to categorical to define as desired.

10 jours ago | 0

Answered

What exactly does tStat of fitlm function refer to?

Well, it's the basic linear model hypothesis test statistic that each coefficient in the model is significantly different from t...

What exactly does tStat of fitlm function refer to?

Well, it's the basic linear model hypothesis test statistic that each coefficient in the model is significantly different from t...

11 jours ago | 0

| accepted

Answered

How can I change the pspectrum time units?

t = seconds(0:length(x)-1)/fs; will fix it.

How can I change the pspectrum time units?

t = seconds(0:length(x)-1)/fs; will fix it.

11 jours ago | 0

| accepted

Answered

Heatmap Axis Labels Printing Vertically?

Oh, TMW has done it again -- they've buried stuff inside opaque (to the user) objects that should be visible. I wish they would...

Heatmap Axis Labels Printing Vertically?

Oh, TMW has done it again -- they've buried stuff inside opaque (to the user) objects that should be visible. I wish they would...

11 jours ago | 0

Answered

Issue with finding intersection between randomly generated matrices

The results for intersect are correct .. >> (A(16,:)-A_new(3,:)) ans = 1.0e-13 * 0 0 0.1421 >> The ...

Issue with finding intersection between randomly generated matrices

The results for intersect are correct .. >> (A(16,:)-A_new(3,:)) ans = 1.0e-13 * 0 0 0.1421 >> The ...

12 jours ago | 0

| accepted

Answered

How to check each number in a user given vector

if nargin<3 GNSSflag = [0 0 0 0]; GNSS = {'GPS','GALILEO','GLONASS','BEIDOU'}; [indx,tf] = listdlg('ListString',G...

How to check each number in a user given vector

if nargin<3 GNSSflag = [0 0 0 0]; GNSS = {'GPS','GALILEO','GLONASS','BEIDOU'}; [indx,tf] = listdlg('ListString',G...

12 jours ago | 0

Answered

Remove the legends for some lines in a plot

If you only want the scatter points in legend, set the 'Annotation' property to not show the lines... plot(fittedX, fittedY...

Remove the legends for some lines in a plot

If you only want the scatter points in legend, set the 'Annotation' property to not show the lines... plot(fittedX, fittedY...

12 jours ago | 0

Answered

Matlab command for plotting complex number?

See https://www.mathworks.com/help/matlab/creating_plots/plot-imaginary-and-complex-data.html

Matlab command for plotting complex number?

See https://www.mathworks.com/help/matlab/creating_plots/plot-imaginary-and-complex-data.html

12 jours ago | 0

Answered

Merge datetime with another cell for export

Sure... >> c={datetime(now,'ConvertFrom','datenum'),pi} c = 1×2 cell array {[25-Jun-2020 08:22:52]} {[3.14]} >> wr...

Merge datetime with another cell for export

Sure... >> c={datetime(now,'ConvertFrom','datenum'),pi} c = 1×2 cell array {[25-Jun-2020 08:22:52]} {[3.14]} >> wr...

12 jours ago | 0

| accepted

Answered

How to combine 2 Fits done with cftool

%% Fit: 'untitled fit 1'. [xData1, tmp] = prepareCurveData( Fqr, Prem ); yData1 = tmp+pi/2; % Set up fittype and options. ...

How to combine 2 Fits done with cftool

%% Fit: 'untitled fit 1'. [xData1, tmp] = prepareCurveData( Fqr, Prem ); yData1 = tmp+pi/2; % Set up fittype and options. ...

13 jours ago | 0

| accepted

Answered

How to compare the colums ( 2nd and 3rd) of 2 .csv files based on a condition

Has to be a more direct way, but following works if I understand the request -- tF1=readtable('file1.csv'); tF1.condition=categ...

How to compare the colums ( 2nd and 3rd) of 2 .csv files based on a condition

Has to be a more direct way, but following works if I understand the request -- tF1=readtable('file1.csv'); tF1.condition=categ...

13 jours ago | 0

Answered

How to add the year to the stairs plot

Use a datetime for your time variable and you'll get time plots automagically along the x axis and can set xlim() values with da...

How to add the year to the stairs plot

Use a datetime for your time variable and you'll get time plots automagically along the x axis and can set xlim() values with da...

15 jours ago | 0

Answered

I want to plot Linear Equations but dont know how to do it on matlab

Since you're still new, let me make some suggestions on coding -- First, use newer features -- if you'll read the doc for xlsre...

I want to plot Linear Equations but dont know how to do it on matlab

Since you're still new, let me make some suggestions on coding -- First, use newer features -- if you'll read the doc for xlsre...

15 jours ago | 0

Answered

Speed up FFT calculation

"The signal matrix is 36350x2048, 36350 being the number of signals and 2048 being the zero padded length of each signal. " Use...

Speed up FFT calculation

"The signal matrix is 36350x2048, 36350 being the number of signals and 2048 being the zero padded length of each signal. " Use...

16 jours ago | 0

| accepted

Answered

Error when trying to plot multiple box plot's in the same graph.

Your orientation for kcnt1Table is wrong -- as is you'll have 13 boxes, not six; boxplot treats each column as variable. You do...

Error when trying to plot multiple box plot's in the same graph.

Your orientation for kcnt1Table is wrong -- as is you'll have 13 boxes, not six; boxplot treats each column as variable. You do...

16 jours ago | 0

| accepted

Answered

Calculate average for each hour in day

IIUC, retime is not the tool for this; it bins data into desired time segments such as hourly but averages within those bins. T...

Calculate average for each hour in day

IIUC, retime is not the tool for this; it bins data into desired time segments such as hourly but averages within those bins. T...

18 jours ago | 0

| accepted

Answered

How to simplify the for loops and if statement in this code

Straightahead w/o trying to save some recomputations that could be done by complements-- k=[sum(A==B & A==0,'all') sum(A==B & A...

How to simplify the for loops and if statement in this code

Straightahead w/o trying to save some recomputations that could be done by complements-- k=[sum(A==B & A==0,'all') sum(A==B & A...

18 jours ago | 0

| accepted

Answered

Creating a mesh plot with data in a timetable

OK, the above conversation branched another route -- time=datenum(Time); % convert to datenum since they're doubles...

Creating a mesh plot with data in a timetable

OK, the above conversation branched another route -- time=datenum(Time); % convert to datenum since they're doubles...

19 jours ago | 0

| accepted

Answered

Using bar3 and color coordinating the height depending on the value

They're all the faces color vertices data -- it's a convolved mess to fiddle with manually, fer shure, good buddy! :( Your cod...

Using bar3 and color coordinating the height depending on the value

They're all the faces color vertices data -- it's a convolved mess to fiddle with manually, fer shure, good buddy! :( Your cod...

19 jours ago | 1

Answered

Creating a mesh plot with data in a timetable

That form for meshz doesn't use any x-,y-coordinates at all -- it just plots against the ordinal position numbers of the Z array...

Creating a mesh plot with data in a timetable

That form for meshz doesn't use any x-,y-coordinates at all -- it just plots against the ordinal position numbers of the Z array...

19 jours ago | 0

Answered

extract year from date and add to a table

Nothing, really. It's an undocumented edge case of incorrect input to the function datenum that for some reason instead of thro...

extract year from date and add to a table

Nothing, really. It's an undocumented edge case of incorrect input to the function datenum that for some reason instead of thro...

20 jours ago | 0

| accepted

Answered

How i accumulate multiple variables?

out=out(:); % just reshape to column vector Use k=2*(i-1)+j; % for index vector where i,j ==> a(:,1), a(:,2), resp...

How i accumulate multiple variables?

out=out(:); % just reshape to column vector Use k=2*(i-1)+j; % for index vector where i,j ==> a(:,1), a(:,2), resp...

22 jours ago | 0

| accepted

Answered

percentage of up days every 12 days

However, the neatest solution is probably nD=12; % number days for moving percentage dCP...

percentage of up days every 12 days

However, the neatest solution is probably nD=12; % number days for moving percentage dCP...

22 jours ago | 0