Réponse apportée
How to find y-axis data for a certain x-axis value
Your X variable is repeating in sets of three so when you use all 12 elements as a vector it's multi-valued in y. interp1 then ...

presque 5 ans il y a | 0

Réponse apportée
Splitting a file into multiple files based on trigger words in the first column.
This is where a filter is probably best given size of file and unknown numbers between sections...and since don't need to have a...

presque 5 ans il y a | 0

Réponse apportée
Why does my MATLAB icon look like a sheet of paper?
See <Why-does-my-matlab-icon-look-like-a-sheet-of-paper-on-my-windows-based-computer?> In short, somehow the link to the defaul...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
for loop help with loop range
" extract data of the first 3 columns (x,y,z) for sensorIdx 1,2,5,6,7. For sensorIdx 3 and 4 I want to extract columns 5,6 (x,y)...

presque 5 ans il y a | 0

Réponse apportée
how to extract "F-statistic vs. constant model" value for fitnlm programmatically
For some unknown reason, TMW didn't package the summary statistics with the model -- you have to run anova on the returned model...

presque 5 ans il y a | 0

Réponse apportée
Inverting curves colors when the distance of their points is 0
Probably simplest is to just plot a new set of curves of the chosen color where the logical indices are -- each present line is ...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
Speedup table lookup / interpolation
Slight alteration; didn't try to time it... [~,ix]=min(sum(abs(states_list-state),2)); is same computationally... >> x=randi(...

presque 5 ans il y a | 0

Réponse apportée
How to fix the "Improper index matrix reference" error in my Data Extraction coding?
hF=openfig('NF power_Aulayers_etch_glass-by-glass_xz.fig'); hAx=hF.Children; % the axes object handle hS=hAx.Children; ...

presque 5 ans il y a | 0

Réponse apportée
How to pre-select a value in a list box (GUI)
You mean a listdlg box? The 'InitialValue' property (default value 1) is the index to the selected element(s) when the box is o...

presque 5 ans il y a | 0

Réponse apportée
creating a loop for a specific computation
OK, just making sure...although it may be interesting, still not positive it's of all that much use in the end...to collect data...

presque 5 ans il y a | 1

| A accepté

Réponse apportée
Convert an array of type char to hex values
I went back and found your first posing of roughly a week ago -- and made a comment there. In short, take Walter's advice from ...

presque 5 ans il y a | 0

Réponse apportée
I am getting the following error in my code: "Unrecognized function or variable 'f'. " How do I correct this error? someone can help me in this TIA.
You're using f in line 1 while you don't define it until line 3. Move line 1 to anywhere after but before use amp in line 11 --...

presque 5 ans il y a | 0

Réponse apportée
How to plot only the matches of two different datetime?
Convert A and B to timetables, then use innerjoin ttC=innerjoin(ttA,ttB); will leave timetable ttC with the times that are uni...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
How do i calculate the sum of each row
I'd suggest to use readtable instead, first... T = readtable('studentmarks.txt'); T.TotalMarks=sum(T{:,3:end},2); presuming t...

presque 5 ans il y a | 1

| A accepté

Réponse apportée
How do I find the corresponding date/time value of the maximum of my data in a table?
That's what the optional return index value of max is for... [mx_Smooth_Mel,ixMel]=max(T.Smooth_Melatonin_concentration); [mx_...

presque 5 ans il y a | 0

Réponse apportée
converting Excel formula to Matlab (adding two arrays different lengths)
C=[0;cumsum(B)]; where B is your variable in column B MATLAB uses vector operations; to append a vector to a single value (or ...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
How can one specify the color of comparison bar chart?
Just answered for another a few minutes ago @ <problem-with-grouped-bar-plot> You also have a grouped bar plot as your data are...

presque 5 ans il y a | 1

| A accepté

Réponse apportée
Problem with "grouped" bar plot
"... this is not a real grouped bar plot since I am not using b = bar(model_series, 'grouped'), isn't it?" Au contraire, the do...

presque 5 ans il y a | 0

Réponse apportée
Export iterative matlab program output in matrix to excel with a reduction in matrix size.
" I would like to rid of the last row and column of the 7x7 matrix and get 6x6 for further computation. " That would simply be ...

presque 5 ans il y a | 0

Réponse apportée
how to run multiple number of regressions?
tRegress=rowfun(@(x,y)polyfit(x,y,1),T,'GroupingVariables',{'Location'}, ... 'InputVaria...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
how convert the vector to matrix ? unknown number of columns
A=1:9; nRow-3; >> A=reshape(A,3,[]) A = 1 4 7 2 5 8 3 6 9 >> The posted in the...

presque 5 ans il y a | 1

Réponse apportée
Divide each element of an array by the corresponding element of another array
c=a./b; Read the "Getting Started" to get basic syntax...

presque 5 ans il y a | 1

Réponse apportée
How do I get a "≤" sign to appear in my function's HELP documentation?
<unicode-characters-in-m-file>

presque 5 ans il y a | 0

Réponse apportée
HELP Plotting hourly time series data
Use the builtin tools and datetime instead of deprecated datenum/datetick uvFile = 'C:/Users/darcy/OneDrive/Desktop/Darcy/temp ...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
How to plot curve instead of straight line in MATLAB?
A demo built around a rough approximation of your figure... figure % approximate the quadrilateral above plot([5 5],[250 380]...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
Compare a column in two different excel-sheet
Just read both sheets -- CODES=categorical({'bad','good'}).'; % the output categories A1=readmatrix('Workboo...

presque 5 ans il y a | 0

Réponse apportée
Perform a calculation using data from multiple tables
You can probably most simply just augment your flight table...something like-- % preparations tDist=readtable('Airport distanc...

presque 5 ans il y a | 0

Réponse apportée
Correct way to calculate Moving Mean for Ozone hourly values
1, 3. "movmean(A,[kb kf]) computes the mean with a window of length kb+kf+1 that includes the element in the current position, k...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
How do I get readtable to skip lines with certain text?
That's not a great format for readtable to try to parse -- it's got the variable names as columms and so are interpreted as data...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
Problem with importing a text file
"... it only imports the lower part:" Of course, because the file is a mishmash of stuff and only the last section is a regular...

presque 5 ans il y a | 0

| A accepté

Charger plus