Réponse apportée
Label contour plot elevation marking with text
By using clabel instead, yes...but takes some munging-on there, even. Using the example from countour as starting point-- x = ...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
Plot matrix with columns of same color
You mean x=1:100; y=randi(420,numel(x),4); c={'r','g','b','k'}; figure hAx=axes; hold on xlim([0 11]) arrayfun(@(i) plot...

presque 7 ans il y a | 1

| A accepté

Réponse apportée
How to write elements of a nested cell array to an excel?
Since all aren't same size, the trivial solution of xlswrite(cell2mat(WS)) is out unless you augment the shorter to the length...

presque 7 ans il y a | 0

Réponse apportée
generate a sequence from matrix
Interesting...kinda' cute solution...altho note that the suggested answer is wrong; the minimum for row 7 is the 3 in column 2, ...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
How to truncate textscan reading
You can't on read. Just round() the data to whatever precision you want after reading it in. x=round(x,1,'significant'); See ...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
A Peak in y-axis dwarfing the other plot points
You have basically one of three choices -- Set ylim where you want it and let the rest of the graph go off the top and not be s...

presque 7 ans il y a | 1

| A accepté

Réponse apportée
display every value of a matrix in histogram
Ah! The question isn't about a histogram at all...or, it is, but not a histogram of the data but just plot the counts computed ...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
create matrix from other two matrices
t=reshape([reshape(temp_n1,8,[]);reshape(temp_n2,3,[])],[],1);

environ 7 ans il y a | 0

| A accepté

Réponse apportée
display every value of a matrix in histogram
hist(val,unique(val))

environ 7 ans il y a | 0

Réponse apportée
Polynomial of Random Variables
Then b=[1 0 0 1 2]; % coefficients 4th order poly P=polyval(b,normrnd(mu,s,m,n)); % generate mxn rand p...

environ 7 ans il y a | 0

| A accepté

Réponse apportée
how to have labeled and unlabeled ticks on the x axis
DOH! figure hAx=axes; xlim([0 2500]) hAx.XMinorTick='on'; Now, this may or may not produce the desired number of minor tick...

environ 7 ans il y a | 0

Réponse apportée
how to have labeled and unlabeled ticks on the x axis
Actually, the expedient way may be to have two axes...the one with the desired tick labels and the second overlays it with the o...

environ 7 ans il y a | 4

Réponse apportée
How to detect change in mean value of a signal
The linear or similar trend is probably detectable as Jan says by fitting linear trend line and testing for nonzero slope..._IF_...

environ 7 ans il y a | 0

Réponse apportée
how to have labeled and unlabeled ticks on the x axis
Not quite as easy as one might think...at least unless somebody else can come up with more expedient route... figure ...

environ 7 ans il y a | 0

Réponse apportée
Extracting data from matlab figure into .txt file
How on earth was that figure created??? In a loop plotting a new complete line for every iteration of each point, apparently......

environ 7 ans il y a | 1

Réponse apportée
How to use linear interpolation for filling with 3s inside empty spaces in a matrix of os and 3s
for i=1:size(M,2) ix=find(M(:,i)==3); if numel(ix)>1 M(ix(1):ix(end),i)=3; end end

environ 7 ans il y a | 0

Réponse apportée
Extract maximum value out of two column in a row & delete the last row
B=[A(:,1:end-2) max(A(:,end-1:end),[],2)]

environ 7 ans il y a | 0

| A accepté

Réponse apportée
How can I change marker size and form based on diameter and ellipticity values over frame?
scatter() will let you change the marker size and color for each point whereas plot() is a marker for each line...of course, cal...

environ 7 ans il y a | 0

| A accepté

Réponse apportée
[Solved] Fitting exponential decay function
You forced the model to have f(0) = 0.148356 + 0.1291 = 0.2775. It takes a really large decay constant to make up for that. T...

environ 7 ans il y a | 1

Réponse apportée
Using readtable to load excel files in a different folder
folder_in='Formatted_Excel'; % directory of interest d=dir(fullfile(folder_in,'*.xls*'); ...

environ 7 ans il y a | 0

| A accepté

Réponse apportée
Assigne Values/Attribute to elements of an array
>> V = categorical(v,v,cellstr(['A':'E'].')) V = 1×5 categorical array A B C D E >> ADDENDUM:...

environ 7 ans il y a | 0

| A accepté

Réponse apportée
Floating point error incrementing in while loop
https://www.mathworks.com/matlabcentral/answers/57444-faq-why-is-0-3-0-2-0-1-not-equal-to-zero

environ 7 ans il y a | 1

| A accepté

Réponse apportée
How can I load (many!) points from file, and display them in 3D including color?
See doc scatter3 ML can read whatever datafile format you wish to use...for such large data a stream file would be obvious cho...

environ 7 ans il y a | 0

Réponse apportée
Save files to folder loop won't save the .txt files
% location of data files data_path = 'C:\....\Desktop\Fat-L100T10-785'; % create search string to pick up all txt files in fol...

environ 7 ans il y a | 1

| A accepté

Réponse apportée
How to Combine Line and Bar Charts with multiple groups in the same figure?
Oh...didn't follow what were after...thought it was to create the image-like figure... The following will get you started -- h...

environ 7 ans il y a | 0

| A accepté

Réponse apportée
How do I scan in data that is flowing on each other horizontally, the values running into each other can't be recognized and separated correctly.
Use opts=detectImportOptions(readfile); to create a base import options object for fixed-width text and then fix up the Varia...

environ 7 ans il y a | 0

| A accepté

Réponse apportée
phase plot no giving the correct plot
Don't forget floating point precision... >> real(a) ans = 1.0e-15 * 0.0555 0.1665 0.0555 0.0185 -0.1295 ...

environ 7 ans il y a | 0

Réponse apportée
Moving files to new folder based on timestamp
Return the dir() of the files matching desired pattern and then convert the .date field to datetime. You can then use whatever ...

environ 7 ans il y a | 0

| A accepté

Réponse apportée
How can I display greek letters as boxplot labels?
Axes labels aren't text objects; you didn't diagnose the result of your probe: ... h = findobj(gca, 'type', 'text'); >> h h ...

environ 7 ans il y a | 2

Réponse apportée
Gettind the indexes of table array with time and data according to datetime vector with time. Or how to syncronize datetime vector with table array
OK, with the code to see what it was you were really trying to do it's easier... First, there's an issue with your table that m...

environ 7 ans il y a | 0

| A accepté

Charger plus