Answered
Find Natural Breaks in Time Series Data
Not my domain at all, but according to wikipedia, Jenks natural break optimisation is a one dimensional k-means, which is in mat...

7 years ago | 0

Answered
fwrite int64 not supported
Well, a 64 bit integer can be easily split into two 32-bit halves. You'd need to know the endianess of your environment but it's...

7 years ago | 0

Answered
How do I update an image object in App Designer?
Yes, I can observe the same behaviour. I've not been able to find exactly which class is responsible for the problem yet, it's n...

7 years ago | 1

| accepted

Answered
Calculating sampling frequency of a 5 min time stamp of GHI measurements
I need to know how to calculate the sampling frequency of [whatever] that records data every 5 min. Huh? If you record with a p...

7 years ago | 0

Answered
Average range when value is reached
Here is how I'd do it. First create a function that takes a Mx5 matrix of {solar_height, d1 ... d4} data for a single day and re...

7 years ago | 1

| accepted

Answered
I'm trying to find the RMSD of the numbers by taking 1-2,2-3,3-4 in a sequence ,how can i loop as such ??
No idea what RMSD is. In your formula, RMSD = sqrt(sum(b-a).^2 / sum(a).^2); none of the sum make any sense, since both a and ...

7 years ago | 1

| accepted

Answered
why taking mod this problem is occur ? where is the problem.
Why not? Have you looked at your A (which is equal to L)? None of its values are integer. The remainder of a division of a non-i...

7 years ago | 0

| accepted

Answered
Extracting values between certain range and storing it
Ah, well if you just want the number of people within the band then: tempo_drums_round = round(tempo_drums); %Rounding the valu...

7 years ago | 0

| accepted

Answered
Solving multiple related variables using if statement
Nobody was offended, we're just trying to understand what you want as a result, which you haven't clearly explained. As said, co...

7 years ago | 0

| accepted

Answered
is it possible to change inner loops to make the script run faster?
None of the loops are needed: for i=1:size(Untitled,2) Signal(:,i)=Untitled(start:final,i)-mean(Untitled(start:final,i)); ...

7 years ago | 0

Answered
For loop with a big matrix of 800 MB
Using gather as you have done on each individual element of the tall array completely nullifies the advantage of tall arrays. Yo...

7 years ago | 2

| accepted

Answered
Trouble pivoting large table using unstack function
Works fine for me with your little example: Measurement = repmat({'Temperature'; 'Humidity'; 'Voltage'}, 3, 1); Value = [50; 1...

7 years ago | 1

| accepted

Answered
Undefined operator '==' for input arguments of type 'cell'.
Use strcmp to compare a cell array of char vectors to another char vector: ds1 = student(strcmp(student.class, 'first'), :)

7 years ago | 3

| accepted

Answered
regexp for sentence that contains parentheses
Yes, all special regexp characters, [](){}.*+?^$\, have to be escaped with a \, so: expr = '[^\n]*Integration time \(ms\)[^\n]*...

7 years ago | 0

| accepted

Answered
Vectorize getting the intensity values from greyscale image
In the little snippet of code you gave us, you don't show how intensity1 is initialised. If it is not initialised properly, then...

7 years ago | 0

| accepted

Answered
Not enough input arguments
You haven't shown us how you are calling your function Loss_fun. If you run it with the green run button, or call it without an...

7 years ago | 0

| accepted

Answered
access separate function file from handleclass
Any (non-static) class method must have as one of its input argument (not necessarily the first) an instance of the class. There...

7 years ago | 0

| accepted

Answered
readtable of csv file with opts.DataLines =[n1 n2] and n1>2 doesn't work as expected
If you look at the actual content of the file, you see that it has a blank line between each line of data. Although blank lines ...

7 years ago | 0

| accepted

Answered
overwrite Handle class - hide 'isvalid' function and 'ObjectBeingDestroyed' event
is it possible to copy the source code of the original handle class No, we don't have access to that source code. In any case i...

7 years ago | 1

| accepted

Answered
image callback in app designer
You may want to consider using a uiimage instead of an Image inside a uiaxes. I suspect you've defined the callback incorrectly...

7 years ago | 0

Answered
Error using load Unable to read file No such file or directory.
The error message is very clear, there is no file E:\Program Files\MATLAB\R2016a\bin\EegMyDataDir 1\with occular artifact\cnt I...

7 years ago | 2

Answered
Can we categorize and sum 2 columns from table
There are plenty of functions to compute aggregrate properties of table. groupsummary is one way, split-apply-combine workflow i...

7 years ago | 1

| accepted

Answered
(App Designer) ListBox Callback - does my value need to change to get a callback?
It sounds like you need to change your design slightly. At the moment, it sounds like you're only plotting when y changes but ac...

7 years ago | 0

Answered
I keep getting the error of load library
Biometrics are a bit misleading as it's not a new problem. You simply don't have any compiler installed and you need one to use ...

7 years ago | 0

| accepted

Answered
How can I replace a cell array with numeric array for a big dataset?
I'm a bit unclear on why you're trying to use cell2mat. Once you've imported the data into a table then you should be using tabl...

7 years ago | 0

| accepted

Answered
rows interval using textscan
The intent of the question is a bit unclear since textscan cannot parse excel files. If the intent is to parse a csv file, then ...

7 years ago | 0

| accepted

Answered
having trouble with number displays in matrix
format compact only affects the line spacing of the display. It doesn't affect how numbers are displayed. I tend to use format ...

7 years ago | 0

| accepted

Answered
how to find an empty row in a table
Even simpler, and probably faster, use the table tools (rather than cell array tools): yourtable = rmmissing(yourtable)

7 years ago | 1

Answered
How can a code run on a single image perfectly, but the same code on an entire database crashes? Where am I going wrong?
As Jan said you haven't preassigned any of the structures you're using (plus you're also growing your structure arrays in loops,...

7 years ago | 0

Answered
Matlab doesn't write on excel after the first loop in try catch
There's never any reason to use cd and using cd is matlab is dangerous since it can change which m files are in scope. It's dou...

7 years ago | 0

Load more