Réponse apportée
Use text in table to make variables
Do NOT even think about doing this.

plus de 5 ans il y a | 0

Réponse apportée
Replacing empty cells using for loop
Short answer is, "you can't". A double array cannot have an empty element; it is either empty or full. A cell array is the on...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
How do position coordinates work on a subplot?
It appears that those [x,y] positions are the image indices from the upper left of the image. If you look at the two examples a...

plus de 5 ans il y a | 1

Réponse apportée
using fwrite for multiple data type at once
The precision, skip, machinefmt optional inputs to fwrite have not been vectorized (as you have discovered), so you can't interm...

plus de 5 ans il y a | 0

Réponse apportée
How can I import multiple .CSV files in MATLAB and SISTEMATICALLY process the data of each file?
See <Importing-all-files-from-a-specific-folder?> from yesterday. There's a section in the doc with examples on processing mult...

plus de 5 ans il y a | 0

Réponse apportée
Importing All Files from a specific Folder
datapath=uigetdir([],'Select Data Directory'); d=dir(fullfile(datapath,'*.txt'); for i=1:numel(d) txt_file = fullfile(data...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
How can I draw a six graph together in one figure using plot and hold on?
Replace for Q=1,6; plot(T,K(:,Q)); end with hL=plot(T,K); plot (like almost all MATLAB functions) operates by column and t...

plus de 5 ans il y a | 0

Réponse apportée
How to calculate the quantiles/percentiles values for each hour?
Use grouping variables and splitapply or put into a table or timetable and then rowfun and/or retime (timetable) are also option...

plus de 5 ans il y a | 0

Réponse apportée
Error using tiledlayout syntax instead of subplot when referencing axes handles
tiledplot is only able to put one axes object per tile, sorry. Another user wanted two y-axes just yesterday... <Answers/72148...

plus de 5 ans il y a | 0

Réponse apportée
Get supersets from cell array of doubles
I misread the problem statement originally and the second idea didn't really help all that much. It's fairly straightforward, t...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Insert time depending on sample time and measurement points into existing table
In "the MATLAB way", don't use loops where not needed...since you have end points and number, use linspace ST = 3; ...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
Inserting Array into Another Array
ix=true(size(a)); ix(x)=false; z(ix,1)=a;

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
How to find indices of non duplicate rows in a matrix?
>> A = [1 1 2 2 3 4 5 6 6]; >> [n,b]=histc(A,unique(A)); >> A(ismember(b,find(n==1))) ans = 3.00 4.00 ...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
error converting chars to string
You've previously defined Samples as a cell array (either deliberately or by accident) -- >> Samples={} Samples = 0×0 empty...

plus de 5 ans il y a | 0

Réponse apportée
Splitting data array into sub arrays
>> SIC=[3301, 4502, 3306, 4602, 4510].'; >> splitapply(@median,SIC,findgroups(fix(SIC/100))) ans = 3303.50 450...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
Adding a second x-axis to each plot in a tiled layout / subplot
The tiled layout object is documented as "A tiled chart layout contains an invisible grid of tiles that covers the entire figur...

plus de 5 ans il y a | 0

Réponse apportée
cell to matrix in matlab
>> X=[{[[2:2:10].' rand(5,1)]},{[[1:2:10].' rand(5,1)]}] X = 1×2 cell array {5×2 double} {5×2 double} >> [X{1}(:,...

plus de 5 ans il y a | 0

Réponse apportée
Input only numbers from .txt file and store numbers
It would be better to write a more parseable text file, at least with a delimiter if not multiple records... With just highleve...

plus de 5 ans il y a | 0

Réponse apportée
How to iterate through the alphabet like Excel does
function rnge=xlsAddr(row,col) % Build Excel cell address from row, column % % RNGE=XLSADDR(ROW,COL) will return an Excel cel...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
selecting values between vectors and plot the values
isA=(Ax>Bx); ABx=Bx; ABx(isA)=Ax(isA); plot(ABx,max(Ay,By))

plus de 5 ans il y a | 0

Réponse apportée
FindPeaks() of a 1024 x 116 Matrix
findpeaks only works on vector input; just use a loop and pass each column of your array in turn. There's a fair amount of back...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
How to separate weekends from weekdays from an Excel file in MATLAB?
Well, ya' gotsa' start somewhere! We all were newbies once...give it a shot and see how far you get on your own first... Impor...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
extract or split data from one column in table into several columns
>> s='250ms,500ms / 95, 101, 106, 107 / Avg: 11_right / | bl | _HLG_MLD | (9) vs. Avg: 11_right | bl | _CG | _LOW (8) / FCL';...

plus de 5 ans il y a | 0

Réponse apportée
Delete data in one table, based upon another table
It would be easier to write working code if we knew the actual format of the variables -- is it really a MATLAB table object or ...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
How can I duplicate the array data into a fixed number?
No, you don't have to have the same number of points in both lines to plot them on the same axes. Use plot(x1,y1,x2,y2) or p...

plus de 5 ans il y a | 0

Réponse apportée
if any command to check table values
We don't have the data and can't see the actual result in context -- although the code snippet posted isn't formatted well, that...

plus de 5 ans il y a | 0

Réponse apportée
extract numbers form a column
v=sprintf('%d',double([nan;Q(:,1);nan].'==0)); iStrt=strfind(v,'01').'; iEnd=[strfind(v,'10')-1].'; grpsums=arrayfun(@(i1,i2)...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
Conditional average (need help with speed)
Grouping variables and rowfun to the rescue... tMeans=rowfun(@(x),mean(x,'omitnan'),mytable,'InputVariables','T','GroupingVaria...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
monts in year sequence, string, matrix
Add the date to a timetable and retime with aggregation-- tt=timetable(datetime(yr,1,1:365).',data); % make timetable of d...

plus de 5 ans il y a | 1

Réponse apportée
How do I changethe label in a compass graph
Well, the above code commented out pax=gca; so the handle to the axes is either undefined or refers to a probably no longer ex...

plus de 5 ans il y a | 0

Charger plus