Réponse apportée
Using datetime function - questions on speed and specific time points
OK, I'll take a chance after rereading the Q? again... d0=datetime(["2021-11-29 10:00:00";"2021-11-29 22:15:00";"2021-11-30 08:...

plus de 4 ans il y a | 0

Réponse apportée
Change negative values in data
You're almost there, but making it more complicated than needs be... invalidDataIndex=(windTurbineData.mean_Power_kW<0); ...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
How to subplot using for loop?
for m=1:10 figure for n=1:8 subplot(2,4,n) plot(MM(:,n,m)); end end The above plots each against the ordi...

plus de 4 ans il y a | 0

Réponse apportée
Axis labels - subscripts not working
What does hAx=gca;hAx.YLabel.Interpreter return after the figure? If you get no error message, the above symptoms indicate ...

plus de 4 ans il y a | 2

| A accepté

Réponse apportée
How to convert timeseries class mat file to excel
It's not bad at all...I let the file download overnight last night and got a few minutes to poke around just now...I was almost ...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Restricting time on graph with given time
Alternatively, simply xlim([datetime(2019,1,1) datetime(2019,1,31)]) will leave all the data plotted but only display that bet...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
How to Use the Latex \bm for Math Symbols in ylabel?
Can do in regular text as ylabel('$$\textit{\textbf{X}}$$','Interpreter','latex') I don't think anybody has ever figured out h...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How to convert timeseries class mat file to excel
You've managed to put a timeseries object into a table as a cell. To do anything with it, you've got to dereference it back to ...

plus de 4 ans il y a | 1

Réponse apportée
Run TRIM in bath mode, but get Run-time error '62' \n Input past end of file
The above looks like could be much simpler if it is just doing a string substitution on a given line...try something like funct...

plus de 4 ans il y a | 0

Réponse apportée
select the correct row in a table with a different index in the for loop
j=1; for i=1:5:1440 j=j+1; ... end

plus de 4 ans il y a | 1

Réponse apportée
I have total of 40 years = 40*365 days = 14600 days of rainfall datas. What if I want to represent a total of 40 plots per year, not per day unit?
Use ttP=readtimetable('yourfile'); ttPY=retime(ttP,'yearly','mean'); and magic will happen...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
@ Symbol in function handles as an input variable to another function
The issue is given by the requirements of the function integral -- the help file for it reads in part-- >> help integral inte...

plus de 4 ans il y a | 0

Réponse apportée
Finding one value in matrix from covariance matrix
There is no solution to the given problem data set -- by definition cov(A) contains the column variances along the diagonal. Yo...

plus de 4 ans il y a | 0

Réponse apportée
Retrieving data from Excel in multiple sub folders with different names
There's a lot of structure in those directory names -- you have two choices in how to access them and write the code to do so in...

plus de 4 ans il y a | 0

Réponse apportée
Plotting bar graphs with different colors
I've railed over bar interface for 20+ years -- this is harder than it should be even though there is an example in the doc, it'...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Find value between the overall maximum and its following minimum
Couple ways... First, [mx,imx]=max(X); % return global max, location imn=find(diff(X(imx:end))>=0,1)+...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How to split an array of tot seconds in windows of 60 sec haveing also windows without values?
Use discretize. In paricular, look at the third input form where the bins, and input arrays are durations (iow, convert your ti...

plus de 4 ans il y a | 0

Réponse apportée
Subtracting in a structure
Pass(NumPass).SortedTotalPlayers = diff[0 Pass(NumPass).SortedTotalPlayers];

plus de 4 ans il y a | 0

Réponse apportée
How do I remove all the rows with NaN-value of a specific column?
X(isnan(X(:,1)),:)=[]; % solution a -- remove those rows w/ NaN in column 1 X=X(~isnan(X(:,1)),:); % solution...

plus de 4 ans il y a | 2

| A accepté

Réponse apportée
signal amplitude using FFT - conflicting results and misunderstandings
The latter accounts that the FFT and PSD are two-sided (hence the "2" in the variable P2 for the PSD). The total energy is thus...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Problem with specifying separate colours for each of my SCATTER points.
Read the documentation :) c — Marker color [0 0 1] (default) | RGB triplet | three-column matrix of RGB triplets | vector | 'r...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Plot of 2 matrix of same dimensions
Description example plot(X,Y) creates a 2-D line plot of the data in Y versus the corresponding values in X. If X and Y are b...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Invalid syntax for calling function 'cond' on the path
>> which -all cond C:\ML_R2020b\toolbox\matlab\matfun\cond.m >> cond is a builtin MATLAB function (the condition number) unl...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Add a new column to CSV file with equations
[tTable array2table(cumsum(tTable{:,{'A','B'}}),'VariableNames',{'cumA','cumB'})]; where tTable is your table variable. One ca...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How to find a corresponds value?
Use the optional second return value of max [mx,imx]=max(t.Power); rmx=t.Radiation(imx); NB: the use of the table, t variable...

plus de 4 ans il y a | 0

Réponse apportée
How can I replace multiple indices of a matrix with specific values?
Build the indices vectors somehow -- you have to know where you want the values to in some manner, whether that is through some ...

plus de 4 ans il y a | 0

Réponse apportée
How to plot variables from a table?
>> load Xsensor_ID002_SN01_XT001_XSN.mat >> data.time=duration(strrep(data.time,'"',''),'InputFormat','hh:mm:ss.SSS'); >> data...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Finding strings in an excel cell and deleting the entire row
<Answers/347460-how-do-i-delete-an-entire-row-from-excel-from-matlab?> Hint for future -- check out the "SEE ALSO" links Answer...

plus de 4 ans il y a | 0

Réponse apportée
Set XTick of yyaxis to have integer ticks only
yyaxis right plot(rand(1,20)*4, rand(1,20), '*') yyaxis left plot(rand(1,20)*6, rand(1,20), '*') hAx=gca; ...

plus de 4 ans il y a | 0

Réponse apportée
Plotting Excel Sheet of 0s and 1s inkjet printer visualization
How about I=readmatrix('yourfile.xlsx'); imagesc(~I) colormap(gray) If you don't want an image, then try [r,c]=ind2sub(size...

plus de 4 ans il y a | 0

Charger plus