Réponse apportée
Boxplot Label Numberical Organization
Not an option w/ builtin boxplot, sorry. You can make it work with the alternate boxchart function, but the large scale factor ...

presque 4 ans il y a | 0

Réponse apportée
How can I remove the value of a vector that is less than the next value?
MinDiff=3; xfirstpeakstore= [664 705 728 803 824 849 893 895]; ix=find(diff(x)<MinDiff); xfirstpeakstore(ix)=[];

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Readtable to put text into columns from .CSV file
Not at all clear why you would want a quoted string where the quotes are over the whole line instead of fields, but that's a fai...

presque 4 ans il y a | 1

Réponse apportée
Is there a way to make a categorical array of colors?
See above for rants/railings and a little background from my perspective...more directly to the Q? here -- You can't create a c...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
I have data every 14, 15 or 16 minutes and met data every 1 minutes. I want to average met data according to the 14, 15 and 16 minutes
load Sample1 load Sample2 ttM=table2timetable(Mettimedata); ACSMtimedata.TimeACSM=datetime(ACSMtimedata.TimeACSM,'InputFormat...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
Read run-length encoding data from a table
Not sure what the next step(s) are, but to convert each row use something like data=reshape(str2double(split(tT.EncodedPixels(i...

presque 4 ans il y a | 0

Réponse apportée
can nay one help to understand this code
In a reasonable amount of time, undobutedly not other than the obvious that the overall function appears to solve the network st...

presque 4 ans il y a | 0

Réponse apportée
Exciting latex file using Matlab giving errors
The system function uses a shell program and spawns a new process in which the command is executed; hence, the environment seen ...

presque 4 ans il y a | 0

Réponse apportée
Legality of reading Matlab files
That would depend on the ownership and provenance of of the .mat files themselves; as long as you don't use pirated MATHWORKS co...

presque 4 ans il y a | 1

Réponse apportée
How to plot only specific contours in matlab?
Did you not read contourf input syntax descriptions? The third option down says contourf(___,levels) specifies the contour lin...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
Grouping and comparing Data
One way amongst many -- BINS=categorical([-1:1],[-1:1],["Low","Med","High"]); % the end categories YrTotal=sum(sign(M_Avg...

presque 4 ans il y a | 0

Réponse apportée
Randomly assort variables into 3xN matrix
V=[v1;v2;v3]; % a vector of the three possible values (set elsewhere somehow; not explained) ix=randperm(3); % the ra...

presque 4 ans il y a | 1

Réponse apportée
Extract values from a data table and create a new table
What did you try? Have you looked at the "Getting Started" section on array indexing/addressing; specifically logical indexing?...

presque 4 ans il y a | 0

Réponse apportée
Using Contourf to Create Contour Plot with XYZ Data
You don't have enough data -- to use contourf, you must have size(Z) = x by y points -- you've got >> whos x y z Name ...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Convert to fixed values and replace N/A with zero?
As @Rik, I have no klew what fixed values are to be, but the other Q? is trivial -- Brute force... data=readtable('micro.txt...

presque 4 ans il y a | 0

Réponse apportée
Creating text file by combining/editing header and data
N1=34; % file1 header length -- don't bury magic constants inside code N2=64; ...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
Reading 8x8 matrices from file into MATLAB
Try something like fid=fopen('yourfile.txt','r'); i=0; C=[]; while ~feof(fid) i=i+1; C{i}=reshape(cell2mat(textscan(fi...

presque 4 ans il y a | 0

Réponse apportée
Read a matrix between elements
I'd go at it something like N=1000; D=3000; for i1=1:D:size(x,1) % starting index each subsection i2=i1+N-1...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
How do I split this data into different column and write it back in a text file with an extention .bdf?
data=readlines('mat.fem'); M=split(data(startsWith(data,'MAT1'),:),','); M(:,4)=num2str(rand(size(M,1),1)); modifies MAT1 as ...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Does @(x) matlab function exist in C language ?
Standard C does not include what is generically called a "lambda" outside MATLAB. GCC has an extension but I've never used it. ...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
How do I split this data into different column and write it back in a text file with an extention .bdf?
So, what is this -- the content of some file, an array of text, a cell array... ?? What are we looking at here? If it's a text...

presque 4 ans il y a | 0

Réponse apportée
create a matrix of maximums
You didn't say there were values anywhere excepting in one column out of this array before -- you don't need no steenkin' loops ...

presque 4 ans il y a | 0

Réponse apportée
List files in current directory based on a pattern in a variable.
weeklyDates = [20101031;20101107;...]; for i=1:numel(weeklyDates) pattern=sprintf('*%d*.nc',weeklyDates(i)); d=dir(patter...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Find a row of the maximum of a matrix
I fail to see the point in an array of 1960x400 of which 1959 columns are all identically zero??? That aside, what's the issue ...

presque 4 ans il y a | 0

Réponse apportée
to build a table with XYZ values
See meshgrid to build the coordinate arrays; you'll have to have the corresponding observation values from somewhere else. Use ...

presque 4 ans il y a | 0

Réponse apportée
Large integers saved as csv files are rounded up
WAD. Per the doc csvwrite (NOT recommended, btw), csvwrite writes a maximum of five significant digits.... Use writematrix i...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
Sort twice within the same dataset
Well, it's certainly not totally clear what you mean -- but if you mean sort by multiple columns, see sortrows, the optional sec...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
How to apply moving harmonic average on an array?
Simplest is probably just brute-force -- HM=[Kd_1(1) arrayfun(@(i)harmmean(Kd_1(i:i+1)),1:numel(Kd_1)-1) Kd_1(end)].';

environ 4 ans il y a | 0

Réponse apportée
How do I set a parameter based on individual values in an existing array? Should I use a for loop or something else?
The above if...elseif...else...end construct works; there are other ways -- one way w/ MATLAB is fnDL=@(L)interp1([500-eps(500)...

environ 4 ans il y a | 0

Réponse apportée
whats wrong with this code?
But 'vektprosent_best_salts' is an array containing two entries per record, not one. Hence matching "70" by itself is bound to ...

environ 4 ans il y a | 0

Charger plus