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

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

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

7 years ago | 0

| accepted

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

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

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

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

7 years ago | 2

| accepted

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

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

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

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

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

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

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

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

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

7 years ago | 1

| accepted

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

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

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

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

7 years ago | 0

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

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

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

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

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

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

7 years ago | 0

Answered
Sorting Data by Part of Column Name
This is basically trivial exercise for Matlab... >> t=readtable('DataDK.xlsx'); % read the file into table Warning: Variable ...

7 years ago | 0

| accepted

Answered
how to ignore an index error?
H=[0 1 0;1 0 1; 0 1 0]; % filter coefficients u(2:end-1,2:end-1)=(c(2:end-1,2:end-1)+f...

7 years ago | 1

| accepted

Answered
Delete specific rows from a cell array and create a new cell array
Place where converting the cell array to regular double array makes sense it would seem...there's nothing in the above data that...

7 years ago | 1

Answered
Error using fprintf when copying cell content into a text file
Having data helps...to achieve the objective in the easiest way w/o writecell, use the intermediary of converting to a table... ...

7 years ago | 1

Load more