Réponse apportée
Replacing a column values of a table?
Replace [[time2]=modeldata.Time; time = datetime(time2,'InputFormat','MM/dd/yyyy HH:mm:ss:SSS',... 'Format','dd/MM/yyyy HH:mm...

environ 6 ans il y a | 0

Réponse apportée
randn() function command help
nddata = fix(8*randn(10,5,3)) "... I am not sure what 8 is doing here, it is not multiplying the outcome of the random number...

environ 6 ans il y a | 1

Réponse apportée
Error "Index in position 1 exceeds array bounds (must not exceed 1)" for a matrix that has a size of 2000x11
A=(-G(i,j)*(epsilonzz(i-1,j)-epsilonxx(i-1,j)))+tempvalue; You just redefined the whole array A to the RHS consisting of a sing...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
Error bars drawn asymmetrically in errorbar()
Yeah, the y-axis scale is logarithmic so the positive and negative differences are scaled differently depending where on the lo...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
iteration with for for a simple computation
One way amongst many... z=acos(m); % precompute the constant array T=c(1)+sum(cell2mat(arrayfun(@(c,i) c*cos(i*z),c(2:end...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
How to remove common row elements from matrix
[~,ia]=unique(A(:,10:12),'rows'); O=A(ia,:);

environ 6 ans il y a | 0

| A accepté

Réponse apportée
Linear fit line for multiple Y-axis
You'll get same coefficients if you fit b=polyfit(t,mean(y,2)); % assume columns are variables, rows, observations as will b...

environ 6 ans il y a | 1

| A accepté

Réponse apportée
How do I use a for loop to index a categorical vector?
If the two indeed correlate, the result should be as expected -- ergo, can only presume they don't correlate as you think...exam...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
draw a line with known slope and one set of coordinates
m=tan(theta); % tan()=y/x --> slope b=y1-m*x1; % intercept to pass thru x1,y1 at given s...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
Split and search strings
There's new set of higher-level functions that will do the first... >> str2double(extractAfter(split(DetailInfo,";"),"=")) ans...

environ 6 ans il y a | 1

Réponse apportée
Data store only importing 2 columns
DateTimeUTC,AIMHeading,AccX,AccY,AccZ,Surge,Sway,Heave,Roll,Pitch,Inclination,Yaw,HeaveAtRadar,RadarValue,CompensatedRadarValue,...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
Adding additional data to previous table
If it's not time-critical, it's trivial to just dynamically append -- presuming the table exists initially and the content of th...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
Splitting time series into segments
Use findgroups to segregate the state groups and plot() over those group indices. Converting the array to a table makes things ...

environ 6 ans il y a | 0

Réponse apportée
How to generate quarterly date in Matlab?
datetick('x', 'mm/dd/yyyy'); is your problem. datetick is/was ONLY used for the deprecated datenum which was just a double in ...

environ 6 ans il y a | 0

Réponse apportée
for loop in indices count
>> arrayfun(@(i1,i2) colon(i1,i2),iVmx,iVmn,'UniformOutput',0) ans = 1×6 cell array {1×455 double} {1×203 double} ...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
unstack warnings about variable names
Just what is says... :) Your table (or timetable) contained data values that were not valid to be used as MATLAB variable names...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
Output is -INF
You had ... x1 = xi + dt*(a*xi*(1 - xi/20) - b*xi*yi - c*xi*zi); y1 = yi + dt*(yi*(1-yi/25) - a*xi*yi - d*yi*zi);...

environ 6 ans il y a | 0

Réponse apportée
How do I draw a number of arbitrary grid lines from data in arrays, independently from the default grid?
The trick used there (Nichols plot and other response plots) is to tag them all when drawing and then them all to be hard for us...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
how to set a frequency of x axis of a plot?
Read up on datetime and plot and the DatetimeRuler... t=datetime(2018:2033,1,1); y=randn(size(t)); % dummy data over your ti...

environ 6 ans il y a | 0

Réponse apportée
how to set a frequency of x axis of a plot?
If your variable is (as was suggested in other thread asking about formatting it) a datetime, just use xticks with the time span...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
Data printing on one line instead of multiple lines
As Johannes pointed out, you forgot to output the time (and calculate it, too, for that matter... :) ) ... t=0.0; % i...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
Save Function and uisave are not working properly.
Syntax issues... >> Name='A long File Name'; % just something to follow your lead... >> Name=Name(~isspace(Name)); ...

environ 6 ans il y a | 0

Réponse apportée
Merge specific .txt files depending on the prefix.
Just iterate over the prefix of interest... indx=1; % initial prefix number fileString="M"+indx+"_*.tx...

environ 6 ans il y a | 0

Réponse apportée
how to user grpstats function in this case
>> grpstats(thuey,{'person','month'},{'mean','@sum'},'DataVars',{'spending'}) ans = 3×5 table person ...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
Plot Multiple Variables Using One Y-Axis
No. The multiple values on the one y-axis option is only for table variables. Seems like woouldn't be that hard to add the abi...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
How i can change significant digit in App Designer UITable ?
Use the 'ColumnFormat' property to set the desired format by column. See the doc for "Table Properties" from the link in the ui...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
Matlab to excel and back! Q about using ActiveX
>> Excel = matlab.io.internal.getExcelInstance Excel = COM.Excel_Application >> excelWorkbook = Excel.Workbooks.Open(fullfil...

environ 6 ans il y a | 0

Réponse apportée
Change zeros to Nans only at a certain page in a 3D matrix
x(x(:,:,3)==0)=nan; Start from inside out...above is isZ=(x(:,:,3)==0); x(isZ,3)=nan; w/o the temporary indexing array. ADD...

environ 6 ans il y a | 0

Réponse apportée
Matlab to excel and back! Q about using ActiveX
I'm unaware of anybody having written the specific tutorial/book you're looking for re: using COM for Excel with MATLAB...don't ...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
Copy elements to end of row vector - help needed!
A) c=c(:).'; B) " matrix 'a', in which stance and swing phases are included. In matrix 'b', in the rows, the indices are me...

environ 6 ans il y a | 0

Charger plus