Réponse apportée
Only one graph appear instead of two.
You forgot hold on to put more on the same axes after the first... plot(T,Psat1,'r'); hold on plot(T,Psat2,'b'); title('Sa...

presque 4 ans il y a | 0

Réponse apportée
Search in a column based a result from another column
More pain when don't attach data to use, but... tData=table(categorical({'AMI';'NMI';'AMI'}),categorical({'Fiat';'Renault';'Ren...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Force user to input an specific time format
Only with a lot of trouble -- use a datepicker UI control instead uidatepicker

presque 4 ans il y a | 0

Réponse apportée
How to replace zero with the values present in array
array=[34.9609375000000 37.9882812500000 34.9609375000000]; Dataset(deleted_data_idx,:)=repmat(array,1,size(Dataset,2...

presque 4 ans il y a | 1

Réponse apportée
Find differences between 2 tables
ix=(any(A{:,:}~=B{:,:},2)&all(isfinite([A{:,:} B{:,:}]),2))|(all(isnan(A{:,:})~=isnan(B{:,:}),2)); This is somewhat tricky beca...

presque 4 ans il y a | 0

Réponse apportée
How do I save data from a fprintf loop?
msgs=string(N,1); for ii=1:N .... msgs(ii)=compose(['\nDecoded Message = %2d\n Coded: Error rate = %1.2f, ' ... ...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
why xlswrite/xlsread is not recommended for use
See xlsread for the official word from TMW (The Mathworks). From the supporting link there is the following Advantages [of ...

presque 4 ans il y a | 1

Réponse apportée
generate mean, variance and std using built in function
stats=[[mean(A,2);var(A,2);std(A,2)]; [mean(A,1);var(A,1);std(A,1)];] will give you and array of the statistics by clas...

presque 4 ans il y a | 0

Réponse apportée
Trying to get certain values from an excel file
Perfect place for a table -- keeps everything together with variable IDs and you have access to everything as you need it. I do...

presque 4 ans il y a | 0

Réponse apportée
Is it possible to plot the 'i'th set of data from a switch case with a single block of code?
If it's the same code identically for each case but with a different dataset based on the index, that's all you need -- you don'...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
Plotting with Stem in different colours in 1 step
Can't be done that way at all -- the stem plot creates a single object handle so there's only one color property for it; not mul...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
how to replace readcell by xlsread?
"xlsread is not recommended. Use readtable, readmatrix, or readcell instead." You apparently also did not read the documentatio...

presque 4 ans il y a | 2

| A accepté

Réponse apportée
Show text on line in a legend
Can't use legend to do that -- the text is not part of the linestyle but a separate object you've added independently. You'll h...

presque 4 ans il y a | 0

Réponse apportée
How to determine the x intercept between a function and a yline?
You've got to have the two separate pieces of the double-valued function for interp1 to work -- >> [mnX,imnX]=min(LSFfit_x); >...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
for-next loop parameter gets printed out
You've got a malformed for expression, the comma serves to make a second line of code on the same source line; the value of ll i...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
I want to draw the previous point Delete the next point
I had not poked at an animatedline object with Yair Altman's FEX submission to find hidden properties, but it turns out the X|YD...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
the 'polyarea' function dose not work well. how to solve it?
>> VFR=[VFR_lat_merged VFR_lon_merged]; >> find(any(~isfinite(VFR),2)) ans = 102 >> VFR(ans-5:ans+5,:) ans = 37.5443...

presque 4 ans il y a | 0

Réponse apportée
What dose this mean?
Basically, just what it says -- albeit somewhat wordily, perhaps... :) A vector in 2D has X,Y components; a complex variable ca...

presque 4 ans il y a | 0

Réponse apportée
How do I split a data set into multiple chunks based on a re-occuring value?
data=readmatrix('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1102540/Temps.txt'); iT=(data(:,1)==-99999); n...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
I want to get a linear curve fitting for each line in graph
The Statistics Toolbox has a function lsline that does this automagically but for some reason that is totally unexplicable to me...

presque 4 ans il y a | 0

Réponse apportée
Overwriting Grid Layout Does Not Delete Existing Grid Layout.
Well, still without any real klews as to what it is you're trying to do here, I believe that based on my reading of the doc of s...

presque 4 ans il y a | 0

Réponse apportée
Solving a equation from excel.
Going at it hard way...first, just read the data as a table and can keep the variables as identified already... >> tTrail=readt...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
How do I count the number of Functions in a Function Handle?
With coding style constraints fun_hand = @(x)[mod(x,5);mod(x,3);x.^3;floor(20./x)].'; % the (constrained) engine nFuncs=@(s)n...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
sum columns with headers containing specific characters
tB=tData(:,contains(tData.Properties.VariableNames,'A_side')); Should be able to figure out the other from that... :) But, I...

presque 4 ans il y a | 1

Réponse apportée
Get every nth row of a tall array
Actual Text: "******** 7.909" The problem is in the data file itself -- there's an oveflow field indicator of "*" in a numeri...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
varfun changes the variable names in the table
Because you operated on it with a function and so it is NOT the same variable any more -- that is documented behavior. varfun d...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
Plot with bar side by side and with two y axes
You can't have two overlaying axes with the same x value and use bar with only a single variable because then the bars will alwa...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
Renaming multiple excel sheets
Just name them as you want them when created them instead... %% Create a folder where the data will be saved OutputFolderName...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Extract specific info out of file
txt=readlines('yourfile.txt'); writematrix('yournewfile.txt',txt(~contains(txt,'notpassed')),'filetype','text','quotestrings',0...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
Compile data from excel sheets into a dataset with multiple tags
Sure it's possible. Just parse the sheet names when reading them and do similarly as I did excepting with Date, Valve, Powder v...

presque 4 ans il y a | 0

| A accepté

Charger plus