Réponse apportée
Im trying to find the zeroes of the two lines on the graphs I've made
I lack symbolic TB, but it's easy enough to just find the crossing point from linear interpolation. MATLAB interp1 requires a u...

plus de 4 ans il y a | 0

Réponse apportée
creating a string multiple string filter on multiple columns
Without knowing the real application and how the data are obtained so it is presumed to already be character type, >> n=16;m=2;...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
What is this Number? 31.006276680299820175476315067101
1) >> format long,format compact >> pi^3 ans = 31.006276680299816 >> 31.006276680299816==pi^3 ans = logical 1 >...

plus de 4 ans il y a | 2

Réponse apportée
save loop data only if 'if statement' is true
As @Benjamin pointed out, for starters fix the loop construct and indexing... ... for i=1:numel(fileList) fullFileName = f...

plus de 4 ans il y a | 0

Réponse apportée
using external matlab file variables in app desighner
"is there some example i could follow?" -- @fima v function UpdateButtonPushed(app, event) app.UpdateButton.Enable='off'; ap...

plus de 4 ans il y a | 0

Réponse apportée
Changing names and removing quotes in row2vars output table
As always, if you would show the code you used to create the table, it would make our job much easier... The table command and ...

plus de 4 ans il y a | 0

| A accepté

Question


Using Cells() in VBA with Excel via ActiveX
While off topic, there are enough using Excel and ActiveX that it is a pretty active subject area, so I'll add one more I couldn...

plus de 4 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
Plot 3 lines using plotyy with Different X-axis
plotyy creates two overlaying axes; you've created two sets of those and there's no way to not occlude one axis with the other, ...

plus de 4 ans il y a | 0

Réponse apportée
How do I overlap boxplots on top of each other for the same x-axis?
Use boxchart and the grouping by color option probably best builtin solution...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
What is this fft code doing?
See the documentation of FFT and read the example for a one-sided PSD from the FFT carefully... Basically, the reason for the a...

plus de 4 ans il y a | 0

Réponse apportée
Find and compare rows in table by column value
groupsummary(table,{'Year','Ed_level'},@(x)mean(x(randperm(numel(x),50)),'Income')

plus de 4 ans il y a | 0

Réponse apportée
How do I select several rows in Excel?
I'll throw the last example code out as an Answer as well as Comment just for visibility -- and it may turn out useful for other...

plus de 4 ans il y a | 2

Réponse apportée
How do I select several rows in Excel?
You can use any valid range expression to address any range you can code the logic to compute addresses of. You must then use e...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
Save a matrix .mat in a specific folder with a variable name
save(filepath,'variablename') The functional form of save needs the file name to be the variable containing the (hopefully full...

plus de 4 ans il y a | 0

Réponse apportée
is there any way to pause the code if there exist an imaginary variable?
While I've not tried it, the following should work if you can arrange the conditions needed. The first one may be the kicker in...

plus de 4 ans il y a | 1

Réponse apportée
Adding text programmatically to a figure
text() is exclusively a child of an axes, not a figure. To write text outside the boundaries of an axis, use the annotation obj...

plus de 4 ans il y a | 0

Réponse apportée
How to scan directories and find a specific file in each folder and their respective subfolders
Of course. However, with base MATLAB syntax you have to traverse the folder tree manually/explicitly in code; there are a numbe...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Adding latex equation to a Matlab Live Script and Plot the equation
LaTeX is simply a display feature, at least so far it isn't tied to the actual code...

plus de 4 ans il y a | 0

Réponse apportée
enumeration Fails with get(), set() arguments
OK, I (finally!) figured out how to code the above to use a named constant with external interface -- don't use MATLAB enumerati...

plus de 4 ans il y a | 0

Réponse apportée
How to lookup and return a corresponding value from table?
I'd start by turning 'obs' into a categorical variable... cmnt0 = categorical({'obs1';'obs2';'obs3';'obs4'}); curve=[1;2;3;2];...

plus de 4 ans il y a | 0

Réponse apportée
I like to save a cell array into text file
>> c={'Al','Mg';'Na','K'} c = 2×2 cell array {'Al'} {'Mg'} {'Na'} {'K' } >> join(c,'') ans = 2×1 cell a...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How to Interpolate scalar on new grid
Error using griddedInterpolant Sample points must be unique. comes from x = Results(:,1); y = Results(:,2); ... [X,Y]=mesh...

plus de 4 ans il y a | 0

Réponse apportée
How to save this matrix?
If there's just one array/matrix M, then fid=fopen('test.txt','w'); fmt=[repmat('%.4f',1,size(M,2)) '\n']; % build ...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
how can i get data sampling rate and FFT bin width?
"What is the default value of the parameters fft?" None...the fft doesn't care, the sample rate is set solely by the data colle...

plus de 4 ans il y a | 0

Réponse apportée
How to plot an array with an hourly time stamp without starting at 00:00:00?
You can build complete datetime variables from the input by something like-- dt1=datetime("yesterday")+duration(T(1)); % ...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
How can I convert file txt into matrix?
Simply put, you can't. An array of anything (even a cell array) has to be regular (your cell array above is Nx1; it is only the...

plus de 4 ans il y a | 0

Réponse apportée
Box plot with categorical axis - without LaTex interpreter
Much easier now... :) optFV=detectImportOptions('fruitvegprices.csv') % lets you then set the input...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
calculate kurtosis in matlab and minitab but not same answer
Looks like Minitab uses the bias-corrected estimator with the "-3" convention applied -- K>> kurtosis(x(:,2),0) ans = ...

plus de 4 ans il y a | 0

Réponse apportée
sorting data tables according to results from cluster analysis
Y=X(outperm,:); % presuming X is the variable guessing from the initial code...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
sort the matrix X, then sort the another matrix in the same order as X
Matrix expansion of subscripts gets you here... Q=cell2mat(arrayfun(@(i) P(i,indx(i,:)),[1:size(P,1)].','UniformOutput',false))...

plus de 4 ans il y a | 0

| A accepté

Charger plus