Respondida
Polyfit minus one term
Without toolbox, use backslash operator, \ X=[x.^[3 2 1 0]]; X(:,2)=0; % design matrix straight calculation b=X\y; ...

casi 7 años hace | 0

Respondida
position of axis label
"There is no property to set to make the positioning automatic." Ah, but there is...unfortunately, it's another of those frustr...

casi 7 años hace | 1

| aceptada

Respondida
How to remove points from a plot during pause
Indeed, pause halts virtually everything...I'm not a GUI guy but two possibilities I can think of; there may be better for those...

casi 7 años hace | 0

Respondida
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...

casi 7 años hace | 0

| aceptada

Respondida
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...

casi 7 años hace | 1

| aceptada

Respondida
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...

casi 7 años hace | 1

| aceptada

Respondida
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...

casi 7 años hace | 2

| aceptada

Respondida
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'...

casi 7 años hace | 0

Respondida
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 ...

casi 7 años hace | 0

| aceptada

Respondida
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 ...

casi 7 años hace | 0

| aceptada

Respondida
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...

casi 7 años hace | 0

Respondida
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...

casi 7 años hace | 3

Respondida
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...

casi 7 años hace | 1

| aceptada

Respondida
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...

casi 7 años hace | 2

| aceptada

Respondida
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...

casi 7 años hace | 0

Respondida
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...

casi 7 años hace | 0

| aceptada

Respondida
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...

casi 7 años hace | 0

Respondida
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); ...

casi 7 años hace | 1

| aceptada

Respondida
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...

casi 7 años hace | 0

| aceptada

Respondida
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...

casi 7 años hace | 0

Respondida
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 ...

casi 7 años hace | 0

| aceptada

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

casi 7 años hace | 0

| aceptada

Respondida
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...

casi 7 años hace | 1

| aceptada

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

casi 7 años hace | 0

Respondida
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...

casi 7 años hace | 0

Respondida
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...

casi 7 años hace | 0

Respondida
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...

casi 7 años hace | 0

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

casi 7 años hace | 0

Respondida
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...

casi 7 años hace | 0

Respondida
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...

casi 7 años hace | 0

| aceptada

Cargar más