Answered

How to avoid unnecessary legends in the graph?

Yet another solution (and the one I think most appropriate, of course!).... plot(t,TGN,t,T1N,t,ML1N,t,ML2N,t,ACN,t,EMSB1N,t,MFN...

How to avoid unnecessary legends in the graph?

Yet another solution (and the one I think most appropriate, of course!).... plot(t,TGN,t,T1N,t,ML1N,t,ML2N,t,ACN,t,EMSB1N,t,MFN...

9 månader ago | 2

Answered

How to Fix the “Dot indexing not supported for variables of this type” Error in MATLAB

That's just a plain text file; use readmatrix to bring it in as an array... % first read as text to be certain of file structur...

How to Fix the “Dot indexing not supported for variables of this type” Error in MATLAB

That's just a plain text file; use readmatrix to bring it in as an array... % first read as text to be certain of file structur...

9 månader ago | 0

| accepted

Answered

Order of files pulled from Datastore

"...around 1000 csv files, labeled filename_1, filename_2,...filename_1000" It's sorted in ASCII order; hence filenames begin...

Order of files pulled from Datastore

"...around 1000 csv files, labeled filename_1, filename_2,...filename_1000" It's sorted in ASCII order; hence filenames begin...

9 månader ago | 0

Answered

How to Avoid 1.0e+03 when read the readexcel data in matlab app designer ?

Formatting numeric values in the uitable is limited -- the only way you will be able to do this will be to convert to a string w...

How to Avoid 1.0e+03 when read the readexcel data in matlab app designer ?

Formatting numeric values in the uitable is limited -- the only way you will be able to do this will be to convert to a string w...

9 månader ago | 0

Answered

Why my binary mask show only 0 value?

fontSize = 16; I=imread('cropa8.png'); subplot(1, 2, 1); imshow(I, []); axis('on', 'image'); drawnow; hp = impixelinfo(); ...

Why my binary mask show only 0 value?

fontSize = 16; I=imread('cropa8.png'); subplot(1, 2, 1); imshow(I, []); axis('on', 'image'); drawnow; hp = impixelinfo(); ...

9 månader ago | 0

| accepted

Answered

Alternatives for str2num function not supported for code generation

G.Nodes.Name=cellstr(num2str([1:9].')); % make example struct N=str2double(G.Nodes.Name) % convert to ...

Alternatives for str2num function not supported for code generation

G.Nodes.Name=cellstr(num2str([1:9].')); % make example struct N=str2double(G.Nodes.Name) % convert to ...

9 månader ago | 2

Answered

How do I obtain 8760 mean hourly data points from 10.6 years data?

tt=readtimetable('XWinddata.xlsx'); head(tt,1) tt=removevars(tt,{'yearhour','DoY'}); % clean so star...

How do I obtain 8760 mean hourly data points from 10.6 years data?

tt=readtimetable('XWinddata.xlsx'); head(tt,1) tt=removevars(tt,{'yearhour','DoY'}); % clean so star...

9 månader ago | 1

| accepted

Answered

Writing a function in MATLAB

% 1. Associate coefficients with parameter array to estimate A --> b(1) q1--> b(2) q2--> b(3) beta1>b(4) beta2>b(5) lambd...

Writing a function in MATLAB

% 1. Associate coefficients with parameter array to estimate A --> b(1) q1--> b(2) q2--> b(3) beta1>b(4) beta2>b(5) lambd...

9 månader ago | 0

| accepted

Answered

I am trying to perform Short-Time Fourier Transform (STFT) on two sets of 3D data

Error using pwelch Expected x to be finite. The problem is your input data have either NaN or Inf values somewhere in it ... N...

I am trying to perform Short-Time Fourier Transform (STFT) on two sets of 3D data

Error using pwelch Expected x to be finite. The problem is your input data have either NaN or Inf values somewhere in it ... N...

9 månader ago | 0

Answered

how to mex free fortran 90 format with the last matlab release

" ... but it is very strange that fortran 90 95 ... were not recognized by default." Oh, indeed! Add your complaint to officia...

how to mex free fortran 90 format with the last matlab release

" ... but it is very strange that fortran 90 95 ... were not recognized by default." Oh, indeed! Add your complaint to officia...

9 månader ago | 1

| accepted

Answered

Does customizing colormap manipulates interpretation of a plot to a reader?

syms z r theta n m X(z)=atan(z); Y(z)=z/(z^2 + 1); Z(z)=sym(1/2) - 1/(2*(z^2 + 1)); X(r,theta)=subs(X,z,r*exp(1i*theta)); Y...

Does customizing colormap manipulates interpretation of a plot to a reader?

syms z r theta n m X(z)=atan(z); Y(z)=z/(z^2 + 1); Z(z)=sym(1/2) - 1/(2*(z^2 + 1)); X(r,theta)=subs(X,z,r*exp(1i*theta)); Y...

9 månader ago | 0

| accepted

Answered

Add numbers to the matrix

log=readtable('logfile (8).xlsx') examp=readtable('logfile_example.xlsx') Why is the example 25K where the other is 28K record...

Add numbers to the matrix

log=readtable('logfile (8).xlsx') examp=readtable('logfile_example.xlsx') Why is the example 25K where the other is 28K record...

9 månader ago | 0

Answered

applying a function to a datatable using rowfun

Seems as though you could have given the actual problem in the beginning when we did this last... tT=readtable("data1.csv", "Va...

applying a function to a datatable using rowfun

Seems as though you could have given the actual problem in the beginning when we did this last... tT=readtable("data1.csv", "Va...

9 månader ago | 0

| accepted

Answered

Why doesn't the standard deviation show on boxplot?

Read the "More About" section of the boxplot doc that explains the output plot -- in particular, observation within the whisker...

Why doesn't the standard deviation show on boxplot?

Read the "More About" section of the boxplot doc that explains the output plot -- in particular, observation within the whisker...

9 månader ago | 1

| accepted

Answered

Use splittapply with division

@Mario Malic fixed the problem w/ splitapply; you only wanted to divide by the first element of the group (which is a scalar so ...

Use splittapply with division

@Mario Malic fixed the problem w/ splitapply; you only wanted to divide by the first element of the group (which is a scalar so ...

9 månader ago | 0

Answered

Read text without converting to date

writematrix(["7DEC","FEB6","FFFE","ABCD"],'test.csv') type test.csv data=readcell('test.csv') fid=fopen('test.csv','r'); dat...

Read text without converting to date

writematrix(["7DEC","FEB6","FFFE","ABCD"],'test.csv') type test.csv data=readcell('test.csv') fid=fopen('test.csv','r'); dat...

9 månader ago | 0

Answered

Passing value of Edit Field box in app designer to external function/.m file

The above comment would be the klunky way to fix what you have presently by making the two callbacks work to do the same thing. ...

Passing value of Edit Field box in app designer to external function/.m file

The above comment would be the klunky way to fix what you have presently by making the two callbacks work to do the same thing. ...

9 månader ago | 0

Answered

transfer Matlab Workspace to Excel

Easiest would be to use arrays instead of a zillion sequentially named individual variables; associate a string array of names w...

transfer Matlab Workspace to Excel

Easiest would be to use arrays instead of a zillion sequentially named individual variables; associate a string array of names w...

9 månader ago | 1

| accepted

Answered

Escape characters in compose with array input and minus sign *edit* with "empty" string ""

q = compose("%s%d\\gamma/%s",[" ";"-";"-";" "],transpose(1:4),compose("%d",transpose(5:8))) You are passing an empty string to ...

Escape characters in compose with array input and minus sign *edit* with "empty" string ""

q = compose("%s%d\\gamma/%s",[" ";"-";"-";" "],transpose(1:4),compose("%d",transpose(5:8))) You are passing an empty string to ...

9 månader ago | 1

Answered

Passing value of Edit Field box in app designer to external function/.m file

"...pass the value from the EditField box to a variable inside a .m file, upon the press of a button" Simply call the function ...

Passing value of Edit Field box in app designer to external function/.m file

"...pass the value from the EditField box to a variable inside a .m file, upon the press of a button" Simply call the function ...

9 månader ago | 0

Answered

zero lag when using xcorr on 2 near-similar, shifted timeseries

load A, load B whos subplot(2,1,1) plot(ADV_sampled) hold on plot(PIV_mag_test) xlim([300 inf]) subplot(2,1,2) plot(ADV_...

zero lag when using xcorr on 2 near-similar, shifted timeseries

load A, load B whos subplot(2,1,1) plot(ADV_sampled) hold on plot(PIV_mag_test) xlim([300 inf]) subplot(2,1,2) plot(ADV_...

9 månader ago | 0

Answered

search last day calendar in several year

"...only changing to two-week difference won't be reliable; it would produce Saturdays two weeks apart, yes, but not only the fi...

search last day calendar in several year

"...only changing to two-week difference won't be reliable; it would produce Saturdays two weeks apart, yes, but not only the fi...

9 månader ago | 1

Answered

Using accumarray to organize large CSV

tT=readtable("data1.csv"); tT.Properties.VariableNames(2)={'Site'}; % shorten to be more convenient to use head(tT) G=grps...

Using accumarray to organize large CSV

tT=readtable("data1.csv"); tT.Properties.VariableNames(2)={'Site'}; % shorten to be more convenient to use head(tT) G=grps...

9 månader ago | 0

| accepted

Answered

search last day calendar in several year

Iffen I interpret the request correctly, you want the Saturdays from 2015 thru 2023... dt=[datetime(2015,1,1):days(7):datetime(...

search last day calendar in several year

Iffen I interpret the request correctly, you want the Saturdays from 2015 thru 2023... dt=[datetime(2015,1,1):days(7):datetime(...

9 månader ago | 1

| accepted

Answered

How to merge two characters into one in Matlab Simulink

function RC_ROLL = fcn(R) RC_ROLL=double(256*uint16(R(26))+uint16(R(25))); end Of course, that's what your m-file version ...

How to merge two characters into one in Matlab Simulink

function RC_ROLL = fcn(R) RC_ROLL=double(256*uint16(R(26))+uint16(R(25))); end Of course, that's what your m-file version ...

9 månader ago | 1

| accepted

Answered

How do I open powerpoint at a specific slide from Matlab?

That will all be answered by the PowerPoint VBA documentation of methods; it's not a MATLAB Q? at all... See https://learn.micr...

How do I open powerpoint at a specific slide from Matlab?

That will all be answered by the PowerPoint VBA documentation of methods; it's not a MATLAB Q? at all... See https://learn.micr...

9 månader ago | 0

Answered

subtracting consecutive elements from arrays

num = [50 51 53 51 50 55 56 57 53 54 55 56 58 55 54 57 58 59 60 61]; Q = [10 15.8 19.5 19.5 15.8 10 4.1 0.5 0.5 4.1]; d = [dif...

subtracting consecutive elements from arrays

num = [50 51 53 51 50 55 56 57 53 54 55 56 58 55 54 57 58 59 60 61]; Q = [10 15.8 19.5 19.5 15.8 10 4.1 0.5 0.5 4.1]; d = [dif...

9 månader ago | 0

| accepted

Answered

app.UIFigure = uifigure(); creates a new UIfigure window and the original app is not accessible through app.UIFigure

If the AppDesigner app main figure were named just UIFigure in the auto-generated startup code function createComponents(app), t...

app.UIFigure = uifigure(); creates a new UIfigure window and the original app is not accessible through app.UIFigure

If the AppDesigner app main figure were named just UIFigure in the auto-generated startup code function createComponents(app), t...

9 månader ago | 0

Answered

Random number generate - Specific values

V=[7,8.5,9.625,12.25]; % the values to repeat N=5000; % total number wanted RV=repmat(V,1,N/n...

Random number generate - Specific values

V=[7,8.5,9.625,12.25]; % the values to repeat N=5000; % total number wanted RV=repmat(V,1,N/n...

9 månader ago | 0

| accepted

Answered

How to replace a line in a text file?

text files are sequential files and can't easily be written to in the middle...in MATLAB, the simplest thing to do will be to re...

How to replace a line in a text file?

text files are sequential files and can't easily be written to in the middle...in MATLAB, the simplest thing to do will be to re...

9 månader ago | 0