Réponse apportée
How to set table VariableNames from a cell?
OK, there was enough of a hint that you used _Regression Learner_ App. I'd never even opened it before, but since you used "Chu...

presque 8 ans il y a | 2

| A accepté

Réponse apportée
Split a large intraday 1 minute data for each DATE into MATRIX for each DATE?
Presuming this is in a |timetable| from the |timeseries| in Trading TB, |retime| is one way to apply a function. Alternativel...

presque 8 ans il y a | 1

| A accepté

Réponse apportée
I call a function but i keep receiving that the input i place are not assigned
function[deg] =C_dec(O1,O2) c_dec =01 + (02/60); The return value in the function definition is "deg"; you calculate...

presque 8 ans il y a | 0

| A accepté

Réponse apportée
How to extract data from a table based on a specific variable
# Convert the categorical variables from character representation to |categorical| # Use |findgroups| and |splitapply|, |grpsta...

presque 8 ans il y a | 0

| A accepté

Réponse apportée
Create index vector from grouping variable
|gr2idx| is used with the Statistics Toolbox implementation of a categorical variable type. Unfortunately, while it was useful ...

presque 8 ans il y a | 0

| A accepté

Réponse apportée
Operands to the || and && operators must be convertible to logical scalar values
OK, this took a little while to debug... :) The problem is in function |trapecios|, if the input argument is <1 then L=1...

presque 8 ans il y a | 1

Réponse apportée
Error in plotting graph
From <https://www.mathworks.com/help/matlab/ref/graph.html> graph(s,t) ... s,t — Node pairs ... Node pairs, ... graph...

presque 8 ans il y a | 1

Réponse apportée
grpstats for non-numerical data
Convert those variables to |categorical| which is what they are, really, not string. Then, internally to Matlab, they _are_ num...

presque 8 ans il y a | 0

Réponse apportée
Splitting Cells Contents into A Uniform Dimension
opts = matlab.io.text.FixedWidthImportOptions; % create a basic import object to fill in opts.DataLine=2; opts.Variable...

presque 8 ans il y a | 0

Réponse apportée
How can I get Curve fitting coefficients in a matrix from fit function fittype?
% move model definition outside loop; it's invariant ftype=fittype('Bmax*(P0+x+Kd-sqrt((P0+x+Kd).^2-4*P0*x))./(2*P0)',... ...

presque 8 ans il y a | 0

| A accepté

Réponse apportée
What is the code for defining a binary array in Matlab?
IDL Data Types Data Type Description Type N...

presque 8 ans il y a | 0

Réponse apportée
Where am I going wrong in my for loop? I am getting NaNs
... T_num = nan(length(z),length(t)); % initialized to NaN T_num(:,1) = T_av; %initial temperatur...

presque 8 ans il y a | 0

Réponse apportée
Averaging second data to minute data
Convert to |timetable| and use |retime| tt_secs=array2timetable(data(:,2),'rowtimes',datetime(data(:,1))); % convert to ti...

presque 8 ans il y a | 0

Réponse apportée
How to import .dat data
fid=fopen('yourfile.dat','r'); data=cell2mat(textscan(fid,'','CollectOutput',1,'CommentStyle','#')); fid=fclose(fid); ...

presque 8 ans il y a | 1

| A accepté

Réponse apportée
I have a given set of data and will like to do a distribution fitting (for gamma and lognormal) and return a P-P plot. What matlab function is best suited for this?
See doc probplot % <https://www.mathworks.com/help/stats/probplot.html> There are many builtin distribution functions un...

presque 8 ans il y a | 0

Réponse apportée
How to assign values to a sparse matrix without iterations?
S=sparse(Nonloc(:,1),Nonloc(:,2),1);

presque 8 ans il y a | 0

Réponse apportée
Counting occurrences of each column in a matrix
Several ways to do this; probably easiest is via converting to |categorical| with the |unique| values in each column transformed...

presque 8 ans il y a | 0

Réponse apportée
How can I compute multivariate regression residuals?
You really have 1939 _different_ regressions or 1939 _observations_? Whichever, you get only one (the last) result the way th...

presque 8 ans il y a | 0

Réponse apportée
Extracting numbers from mixed string
v=str2double(strip(splitstr(s,'_'),'m')); % chuckles... In reality, write a |regexp| expression is the more general so...

presque 8 ans il y a | 0

Réponse apportée
what is the code for the default blue color for 2D plot?
>> get(groot,'defaultAxesColorOrder') ans = 0 0.4470 0.7410 0.8500 0.3250 0.0980 0.92...

presque 8 ans il y a | 1

| A accepté

Réponse apportée
how to populate a cell with a loop
fmt=[repmat('%f',1,14) repmat('%s',1,2) repmat('%f',1,29) repmat('%s',1,2) repmat('%f',1,8)]; % legible (sorta') format stri...

presque 8 ans il y a | 0

| A accepté

Réponse apportée
How to read a txt and store specific line in matrix
fmt1='mode%n'; fmt2=['(' repmat('%f',1,3) ')']; flds={'X','Y','Z'}; fid=fopen(fname,'r'); dat=struct([]); i=0; ...

presque 8 ans il y a | 0

| A accepté

Réponse apportée
problems with function "find". matlab doesn't match two numbere which are built equal
dt = 1/fs; data= [data0; data1; data2]; time= 0:dt:(length(data)-1)*dt; is the root of the problem; can be demonstrat...

presque 8 ans il y a | 0

| A accepté

Réponse apportée
single trendline for multiple series
Sure, just group all the independent and dependent data arrays into one long vector for each. Presuming you have X,Y arrays s...

presque 8 ans il y a | 0

Réponse apportée
extract date and time preceded by strings with variable length from text file
fmt='%f%s%{yyyy-MM-dd HH:mm:ss}D%f%f'; dat=textscan(fid,fmt,'delimiter','\t','whitespace',''); This is directly related ...

presque 8 ans il y a | 0

| A accepté

Réponse apportée
What is missing from MATLAB?
Neither |textscan| nor |readtable| can handle _'X'_ format string; whassup w/ that? Why are hex data presumed to not be in te...

presque 8 ans il y a | 0

Réponse apportée
Date and Time Extraction for individual data points from patient monitor device
See <https://www.medicollector.com/medicollector-blog/how-to-access-data-in-medicollector-files-without-exporting medicollector-...

presque 8 ans il y a | 0

| A accepté

Réponse apportée
How to extract the x,y and z coordinate points from NC code?
fmt='N%fX%fY%f'; fid=fopen('yourtextfile.ext','r'); NXY=cell2mat(textscan(fid,fmt,'collectoutput',1)); fid=fclose(fid...

presque 8 ans il y a | 0

Réponse apportée
How could you write a function that returns a histogram with axis labels and title
|hist| when save the return value only returns the counts vector and, as you've discovered; doesn't actually draw the plot. T...

presque 8 ans il y a | 0

Réponse apportée
How to normalize a matrix such that each column sums equal 1
You're missing the "dot" operator so the division is matrix divide not element-wise. See doc ./ doc rdivide % that's a ...

presque 8 ans il y a | 1

| A accepté

Charger plus