Community Profile

photo

Guillaume


University of Brighton

5,069 total contributions since 2012

Guillaume's Badges

  • Scavenger Finisher
  • 
  • First Answer
  • 
  • Knowledgeable Level 4
  • 
  • Revival Level 2
  • 
  • Master
  • 
  • 36 Month Streak
  • 

View details...

See 11 Cody Badges

Contributions in
View by

Answered
Saving variables after every iteration.
That line tabela(i)=trainingFeatures(i) makes no sense at all. It stores |numImages| value in tabela , but for image |i|...

1 day ago | 0

| accepted

Answered
How to do a cycle through a N-dimensional grid, if n is not fixed?
Please don't use answer boxes when commenting. Use the |Comment on this Question| or |comment on this Answer| box. If I under...

1 day ago | 2

| accepted

Answered
I got an error Index exceeds matrix dimensions.
I'm not sure which font you're using in your editor/command window but your l (letter el) and your 1 (number 1) look exactly the...

1 day ago | 0

Answered
Can somebody help me in removing 10 rows above and below, if the difference between two rows in first column is >2
_"when the difference between two rows in first column is > 2"_ I'm assuming you mean the *absolute* difference between *consecu...

1 day ago | 0

Answered
How to average seconds data to minutes data?
Honestly, I doesn't look like you've made much effort. Nearly none of the line you've written make any sense. Particularly the o...

1 day ago | 0

Answered
help tidying my code
It's good that you are worried about the cleanliness of your code. This will make you a better programmer. A good program is not...

4 days ago | 0

| accepted

Answered
How to find the lowest distance?
Using words to explain what you want would be useful, rather than leaving it up to the reader to guess. Also using comments i...

4 days ago | 1

| accepted

Answered
Find min and max Intensity pixels within 3x3 neighberhood for a 2D image.
Sounds like you need <https://www.mathworks.com/help/images/ref/rangefilt.html |rangefilt|>.

4 days ago | 1

| accepted

Answered
Error: "Index exceeds matrix dimensions." with find()
First a note, never use |length| on a matrix. At the moment, you're in luck |length(X)| is the height of |X| but if you ever wer...

4 days ago | 1

| accepted

Answered
How do you read the alpha channel of an indexed image?
Hum, yes it does appear that you cannot retrieve the alpha value associated with the palette of a png image with |imread|. I thi...

5 days ago | 0

| accepted

Answered
Unable to Sort Mixed Data Type Cell array
Other solution, convert your cell array to a table. Use |sortrows|. tnew = cell2table(new); sortrows(tnew, 5) You ...

5 days ago | 0

| accepted

Answered
Why won't the following work? datetime('Thu Nov 16 14:04:15 CST 2017','TimeZone','local','InputFormat','eee MMM dd HH:mm:ss z yyyy')
Your hours are using 24-hour format. You need to use |HH| instead of |hh|. datetime('Thu Nov 16 14:04:15 CST 2017','TimeZon...

5 days ago | 0

| accepted

Answered
How can I split a class into two classes with the same name?
Note: there is a big semantic difference between a class, a definition of properties and methods, and objects, the instances of ...

5 days ago | 0

Answered
Alternative to "continue"
# Why do you ask? # Programming languages are efficient. This means that if there is an instruction to do something, there's no...

6 days ago | 0

Answered
Sorting 2 row columns
[x, ~, id] = unique(x); y = accumarray(id, y, [], @min)';

6 days ago | 1

Answered
How to get matrix to read from top to bottom?
_Because of this Matlab reads column 1 values from row 1 to ~100 or so then stay in column 1_ Matlab does not do anything un...

7 days ago | 0

Answered
How to convert the pixel indices in a image to pixel indices in a resized image? Or inverse.
indices are just indices, they just indicate the location of an element in a matrix regardless of the type of that element. Sing...

7 days ago | 0

| accepted

Answered
Optimizing: Getting rid of for loop
Not sure what the |mean2d| function do as it's not a standard matlab function. Assuming it's calculating a mean, then probably ...

7 days ago | 0

| accepted

Answered
Calculate daily, monthly, annual averages from hourly data
The simplest way to do what you want is to convert your data into a <https://www.mathworks.com/help/matlab/timetables.html timet...

7 days ago | 0

| accepted

Answered
Matrix dimensions must agree.
I've not spent much time trying to understand your code. There's no comment at all explaining what it is it's doing. I've unders...

7 days ago | 0

Answered
subscripted assignment dimension mismatch. for loop
It's really not clear what you want to do. There are many issues with the short bit of code you've shown: * Issue 1: What is ...

7 days ago | 0

Answered
how to get random pixel index from binary image with value 1 ?
pixels = [ones(1, 100), zeros(1, 256*256-100)]; img = reshape(pixels(randperm(numel(pixels))), 256, 256);

8 days ago | 0

Answered
Why this is plotting blank window?
As indicated by John, your |f| is full of infinite or nan value, so you have to go back through your expressions and work out wh...

8 days ago | 0

Answered
RGB image in the yellow green mixed color?
_"I want my image to contain only the colors between yellow and green"_ First, you need to define mathematically what that me...

8 days ago | 0

Answered
Subscript indices must either be real positive integers or logicals.
I would suspect you have a variable called |f| shadowing the |f| function. To know for sure, enter dbstop if error at th...

8 days ago | 0

Answered
Is there a concise way of summing over multiple dimensions of an array?
Not sure it is concise, it avoids the multiple |sum|: sum(reshape(A(yourange), 1, []))

9 days ago | 0

Answered
How to control color and brightness for a vector map
First, I would refer you to <https://eagereyes.org/basics/rainbow-color-map How The Rainbow Color Map Misleads> or <https://pdfs...

9 days ago | 0

| accepted

Answered
How can I create a variable for subscripts of an array?
You need to convert your subscript indices into linear indices. You do that with <https://www.mathworks.com/help/matlab/ref/sub2...

11 days ago | 0

| accepted

Answered
FIND command returns empty matrix using ==
You can indeed use |find| with a tolerance comparison as per Jos' answer. This is the most straightforward way to modify your co...

11 days ago | 1

Answered
How to remove certain value from array and reshape the array?
Deleting arbitrary elements from an array will always automatically reshape it into a vector unless you explicitly delete entire...

11 days ago | 0

Load more