Réponse apportée
I need the Documentary evidence that MATLAB complier runtime 7.13 is for free.
It is freely available, yes. But, The Mathworks doesn't ballyhoo it around in big, bold print, no. See one of many prior answe...

presque 5 ans il y a | 0

Réponse apportée
How do I multiples of a number in an array
Well, what have you tried? Follow the recipe given -- y=[8x;2*x.^2-1]; % x is vector If size(x) --> 2,N, then will need to s...

presque 5 ans il y a | 0

Réponse apportée
Error when i use findpeaks
findpeaks(Aceleracion,Tiempo); Unlike plot() and many other functions, since findpeaks can be called without a corollary time/f...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
Cross Product of Each Row in Two Large Arrays
Description C = cross(A,B) returns the cross product of A and B. ... If A and B are matrices or multidimensional arrays, .....

presque 5 ans il y a | 0

| A accepté

Réponse apportée
reading text files based on specific sub-string values.
nWant=3; wildCardName=sprintf('*%02d*.txt',nWant); d=dir(wildCardName); Unfortunately, the MATLAB implementation of dir() onl...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
problem with polyval plotting
Your x values aren't sorted so they're being plotted with connecting lines in the order they are in the input arrays ... The co...

presque 5 ans il y a | 1

| A accepté

Réponse apportée
Trouble with findpeaks - 14 EEG signals and peaks on same plot - different colors
T.Timestamp=T.Timestamp-T.Timestamp(1); % 1622835751.18846; varlist={'AF3','F7','F3','FC5','T7','P7','O1','O2','P8','T8','FC6...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
how to replace a variable with its value in function handle?
Nope. You get what you want; while the string representation of the function echos the input, any variable(s) inside an anonymo...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
textscan conversion specifier for 1 string N float - possible without specifying '%f' N times?
Unfortunately, the C syntax doesn't allow for a repeat count as does the Fortran FORMAT -- the MATLAB idiom to deal with it is s...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
Trouble controlling x-axis values in stackedplot (or having all plots vertically stacked in tiledlayout for 14 columns)
tTry=readtable('Try 4.csv'); stackedplot(tTry,tTry.Properties.VariableNames(2:end),'XVariable','Timestamp') works just fine pe...

presque 5 ans il y a | 1

| A accepté

Réponse apportée
MATLAB coder alternatives for textread.
https://www.mathworks.com/matlabcentral/answers/461159-read-text-file-line-by-line-in-deployed-application#answer_374294 indica...

presque 5 ans il y a | 1

Réponse apportée
hours(diff(datetime([t1;t2]))) function
hours(diff(datetime(t1;t2]))) = c You're using hours that is a builtin function as an array name on the LHS of an assignment st...

presque 5 ans il y a | 0

Réponse apportée
How to remove zeros from an element in a cell array
yourarray=cellfun(@(c)c(~-0),yourarray,'UniformOutput',false);

presque 5 ans il y a | 0

Réponse apportée
Function to check whether an array contains a duplicate of elements
function flag=isduplicate(x,v,ix) flag=numel(find(x(ix:end)==v))>1; end x is vector or if x is array in linear addressing o...

presque 5 ans il y a | 0

Réponse apportée
How to set the plot start to zero ? I have some measurements. On the x label, they start from 0 to 6, but from 1 I can see something change on
x=[0:size(Throughput,2)-1].'; % generate temporary x vector for convenience from 0 hL=plot(x,1E-6*Throughput(1:4,;).'...

presque 5 ans il y a | 1

Réponse apportée
Find duplicate entries and sum up their associated values then put everything back in a table
tData = readtable("Data.xlsx"); tData.Properties.VariableNames={'Name','Score'}; % set a known set of variable names tSum=r...

presque 5 ans il y a | 1

| A accepté

Réponse apportée
Simple for loop on 90k records runs 51 seconds?!?
for i = 1:height(data)-1 data.duration(i) = data.time(i+1) - data.time(i); ... You've haven't preallocated and even t...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
Changing fit line style changes the fit line (fit line shape)
The overloaded plot functions for fit and cfit objects are replete with added functionality -- hard to wade through all the poss...

presque 5 ans il y a | 0

Réponse apportée
operation between timetables with different index
tTicker=readtable('SPCE.csv'); % read the data file tTicker.Yr=year(tTicker.Date;tTicker.Wk=we...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
Calculate average over each specific interval
2) first -- how to deal with the last posrtion of the data that shorter than 5 seconds" How do you WANT to deal with it? You ...

presque 5 ans il y a | 1

| A accepté

Réponse apportée
Hello, i have a table with many rows and 3 columns. In the first column some values are NaN. How can i put NaN values in the other columns in the same rows?
Use logical indexing; no loops needed -- >> A{isnan(A.A1),:}=nan A = 3×3 table A1 A2 A3 ___ ___ __...

presque 5 ans il y a | 2

Réponse apportée
Matlab -dates for x axis ticks equal spacing
Answered just yesterday or the day before here -- https://www.mathworks.com/matlabcentral/answers/872423-how-to-plot-time-data-a...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
match the same files in a loop
f='StokesParameters_Synthetic_Star_Gain_10000000000-Real_5-Int_a=1.5_incl=90.0_pa=90.0_e=0.6_wave=900'; res=split(f,'_'); res=...

environ 5 ans il y a | 0

Réponse apportée
How to segregate data?
Something similar to that looks to me to be about the best can be done -- I'd probably write some helper functions similar to i...

environ 5 ans il y a | 0

Réponse apportée
Add headers to matrix using table
Use new string class features here -- nFiles=4; Header=["Time", "Test "+string(1:nFiles)]; returns a string array as >> Head...

environ 5 ans il y a | 1

| A accepté

Réponse apportée
read mat files with specific and dynamic name format and import data
matFiles = dir('s*_results.mat'); myVars = {'results', 'prep'}; varsList=char(join(myVars)); for k = 1:length(matFiles) lo...

environ 5 ans il y a | 0

Réponse apportée
How to plot time data at different/random time intervals?
While not sophisticated to handle general case to isolate the day start locations, the general idea is A1time=datetime(A1time);...

environ 5 ans il y a | 1

| A accepté

Réponse apportée
filling missed timestamps using prediction
tData=readtable('data.csv'); tData.Var1=datetime(tData.Var1,'InputFormat','eee MMM dd yyyy'); tData.Properties.VariableNames={...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
How to convert decimal into hexadecimal in "S function" Matlab ?
>> uint8(hex2dec(reshape(strrep(sprintf('%#X',2748),'X',''),2,[]).')) ans = 2×1 uint8 column vector 10 188 >>

environ 5 ans il y a | 0

Réponse apportée
how can i change the colors of matrix rows ?
See the Limitations and Tips section of the doc for diary Limitations Because the output of diary is plain text, the log file ...

environ 5 ans il y a | 0

| A accepté

Charger plus