Answered
How to load selected files, in a sequence, and implement them in a for loop?
"I want to process 400 frames, every 800 frames, and keep doing this for the length of the files..." ... nProc=400; nSkip=80...

23 jours ago | 0

Answered
Plotting Error bars using minimum and maximum values in Matlab
Just make a vector of max(y), min(y) the same length as x and add/subtract to the mean for the error bar lengths. Since both fu...

24 jours ago | 0

| accepted

Answered
Iterate thru each row on a Matrix and return the result on a vector
Don't need no steenkin' loops! This is MATLAB!!! :) kurt=kurtosis(y.').'; Above uses the fact that most ML functions in gener...

24 jours ago | 1

| accepted

Answered
timetable 2 table error
Don't need to convert, plot() is overloaded to be datetime aware. Just use the t-table time variable (presuming that's what you...

25 jours ago | 0

| accepted

Answered
I receive error when trying to use a simple OLS function?
"...certainly nothing should be out of context here. " Well, other than the missing function, the error says line 33 and there'...

27 jours ago | 0

Answered
readmatrix for single Excel cells
Don't have recent-enough version here to test to confirm, but if is so and reproducible on latest release, that would appear to ...

27 jours ago | 0

| accepted

Answered
Scatter plot with categorical x axis
'pixels' isn't an allowable argument for the x value position...it's a char() array string array and that's confusing the input ...

28 jours ago | 0

Answered
Getting this error "In an assignment A(:) = B, the number of elements in A and B must be the same."
dec2hex returns the character representation of the value in its argument in hexadecimal...that will be in your case an array of...

29 jours ago | 0

Answered
How to write a Loop to run a specific code to every table in a cell
D='C:\Users\Behzad\Desktop\New folder (2)'; d=dir(fullfile(D, '*.xlsx')); for i=1:numel(d) tt=readtable(fullfile(d(i).folde...

30 jours ago | 3

Answered
how to compute the average of several repeats of a program in matlab?
An array for multiple LHS assignment cannot contain expressions. in [Arforest(k), ADT(k) , Ask(k)] = allaccuracydata(rforest(k...

environ un mois ago | 1

| accepted

Answered
No appropriate method, property, or field 'Lables' for class 'matlab.io.datastore.ImageDatastore'.
It's spelled "labels", not "lables" testLabeles=testSet.Lables; should be testLabels=testSet.Labels; Of course, let the auto...

environ un mois ago | 1

Answered
Find variable name of categorical values repeated a number of times
This is one of two ways...convert to a string represenation so can use string matching functions or use logical addressing and t...

environ un mois ago | 0

Answered
How can I solve a dlmread error on A2016a?
dlmread will read ONLY numeric data; the message is telling you there's alphanumeric data in the section of the file you're tryi...

environ un mois ago | 0

| accepted

Answered
configuration of subplots - editing titles, fonts and so on
That would be the obvious solution, yes. If the specific title is more or less random text, that's about the only way other tha...

environ un mois ago | 0

Answered
Plotting two curves on a Datetime scale.
t1=datetime(t1,'InputFormat','uuuu-MM-dd''T''HH:mm:SS'); % convert first to datetime t2=seconds(0:20:280).'+t1(1); ...

environ un mois ago | 1

| accepted

Answered
How to determine values between two points and two times?
<Subscript-into-times-of-timetable> illustrates the time range. Logical addressing on variables is simply writing the expressi...

environ un mois ago | 0

| accepted

Answered
how do i use a vector has my input in matlab to find the quadratic equation of numbers
They already are if that's what you pass the function when you call it. Matlab is polymorphic; the argument variable in the fun...

environ un mois ago | 0

Answered
Save file sizes not lining up
Any insight would depend upon knowing precisely what the "slice and dice" consisted of and the specifics of the struct There's ...

environ un mois ago | 0

| accepted

Answered
Reading multiple txt data
txtfiles = dir('C:\Users\User\Documents\MATLAB\signal\signal*.txt'); ttrigger = dir('C:\Users\User\Documents\MATLAB\signal\trig...

environ un mois ago | 0

| accepted

Answered
Not enough input arguments.
Looks disjointed in the error message but in function [N,B,Jac] = shapeQuadratic(x1,x2,x3,xi) there are four arguments require...

environ un mois ago | 1

| accepted

Answered
how to plot data more than one time?
N=20; plot([0:N*numel(y)-1],repmat(y,1,N))

environ un mois ago | 0

Answered
How can I run through an array and pick out certain values by condition
Start by finding locations of ix=[false diff(events)==1)] then locate the discontinuities in those stretches. Then it's the med...

environ un mois ago | 0

Answered
Using Accumarray with @maxk instead of @max?
Don't see anyway around with accumarray because the VAL parameter must be 1:1 with rows of SUBS; use findgroups/splitapply or va...

environ un mois ago | 0

Answered
Making decade time-series
roundyrs=fix(years(dt)/10)*10; n=histc(roundyrs,min(roundyrs):10:max(roundyrs)); results in >> [[min(roundyrs):10:max(roundyr...

environ un mois ago | 0

Answered
How to plot bar chart with error bars
See <Answers Error-bars-in-bar-plot> and the other link there

environ un mois ago | 0

Answered
Import many excel files to Matlab- How to?
"...they have very different names (city names) but all of them are in E:\test\ folder." Ok so just use the dir() solution (my...

environ un mois ago | 0

Answered
How to read Binary from a txt file and assign it to row vector
Will have to read as char() and convert. For the one record, first cell... >> x=textscan(s,'%s %s %f'); >> A=str2num(char(x{1...

environ un mois ago | 0

| accepted

Answered
how to convert mat file to tab delimited text file
load will load whatever variable(s) were stored in the .mat file into the workplace, using the name the variables have in the fi...

environ un mois ago | 0

Answered
fprintf- I dont want to print one result.
A number of ways...one would be to include the fprintf statement in an if....end clause itself on value of N (or x). Another wo...

environ un mois ago | 2

Answered
How to remove elements from the vector while we save the index of those removed elements?
That's simply the complement of the indices you saved...brute force is >> ix=1:numel(b); ix(1:3:end)=[]; >> ix ix = 2 ...

environ un mois ago | 0

Load more