Community Profile

photo

Guillaume


University of Brighton

5,455 total contributions since 2012

Guillaume's Badges

  • Scavenger Finisher
  • 36 Month Streak
  • Master
  • Revival Level 2
  • Leader
  • Puzzler
  • Creator
  • Knowledgeable Level 4
  • First Answer
  • Scholar
  • Speed Demon
  • CUP Challenge Master
  • Promoter
  • ASEE Challenge Master
  • Tiles Challenge Master

View all

Contributions in
View by

Answered
What is the period of the PRBS signal used in the randi() function?
As <https://www.mathworks.com/help/matlab/ref/rng.html documented> the default random number generator is Mersenne Twister which...

1 day ago | 1

Answered
How to create array of objects part of another object?
Since you haven't specified anything for |population| in your properties definition, it is initialised as an empty array of doub...

1 day ago | 0

Answered
Find and replace values in a cell array containing 3-D matrixes with numeric values
In the generic case, it is not possible to do it without a loop (or |cellfun|, but in this case, you'd have to use a .m function...

1 day ago | 0

Answered
How do I extract non zero minimum value and its index from a specific row??
If you want the minimum value greater than 1 from *all* the rows, then simply replace the values below 1 by |inf| and take the m...

1 day ago | 0

Answered
Why aren't my locale times converted to UTC time?
No, when you create your |a|, you're simply telling matlab that the 14:51 is measured in the UTC timezone. At no point do you te...

1 day ago | 0

| accepted

Answered
How to read a triangular matrix
fid = fopen('Stext2.txt'); entries = textscan(fid, '%f'); %read every number as one vector fclose(fid); msize = (sq...

1 day ago | 0

Answered
Reading data from figure
If you do have a pcolor plot, then your figure axis should contain a surface objet whose |CData| property should be the original...

1 day ago | 0

| accepted

Answered
i am getting error in line 17
_it shows horzcat error_ |[F c]| can only work if |F| and |c| have the same number of rows. Clearly, since you're getting an ...

1 day ago | 1

Answered
Transposing Blocks of Rows in a Cell Array
newcellarray = num2cell(reshape(yourcellarray.', size(yourcellarray, 2), 43, []), [1 2]); newcellarray = vertcat(newcellar...

3 days ago | 1

| accepted

Answered
Problem using RESHAPE function
Your image has 93274 pixels, it's probably a rectangle of 298x313 pixels. You're trying to reshape it into something that has 16...

3 days ago | 0

Answered
Detecting the position of a previously colored rectangle in an image
Since your image is indexed, with only 4 colours (0 = reddish, 1 = bluish, 2 = yellowish and 3 = white) it's actually trivial to...

3 days ago | 2

| accepted

Answered
how to convert 2-D array to 1-D array
transpose then reshape a = reshape(a.', 1, [])

4 days ago | 2

| accepted

Answered
How to shuffle two vectors?
W1 = V1 .* flip + V2 .* ~flip W2 = V1 .* ~flip + V2 .* flip

4 days ago | 2

| accepted

Answered
mxn to MxN image interpolation
Assuming you're on R2015b or later, this is extremely easy: A = [1 2 3;4 5 6]; M = 2; N = 2; A_int = repelem(A, ...

4 days ago | 1

| accepted

Answered
Unable to read certain .JPG files in a folder
Most likely, the line imageArray = imread(fullFileName); %read specific FULLfilename from store of .jpg files works fin...

4 days ago | 0

| accepted

Answered
Operations between matrix, different calculation according to conditions.
|if d<c| will be true if *all* elements of |d| are smaller than |c|, in which case, *all* elements of |Cs| are calculated accord...

4 days ago | 1

| accepted

Answered
Finding the centroid of a binary image
_"I'm only using the first frame of the video"_ No, you're using whatever is in |grayImage| before you run the code above. If...

4 days ago | 0

| accepted

Answered
why polybuffer example doesn't work ?
_does anyone have an idea what did i do wrong_ Yes, most likely you're not using R2018a, which, for now, is the only version ...

4 days ago | 0

| accepted

Answered
Output argument "" (and maybe others) not assigned during call to "".
That assignment to |gesture| is deep inside an |if| inside a |for| loop inside another |if|. If either |if| is never true or if ...

4 days ago | 0

| accepted

Answered
How to write the mini-batch datastore
In matlab, if you do openExample('images/JPEGImageDeblockingDeepLearningExample') it will open the example into the live...

4 days ago | 0

Answered
Python-like generator for reading large CSV file?
Use <https://www.mathworks.com/help/matlab/ref/datastore.html datastores> and <https://www.mathworks.com/help/matlab/tall-arrays...

5 days ago | 0

| accepted

Answered
single precision data for griddata()
Yes, it looks like an implementation bug or a documentation bug. The fault lies with |scatteredInterpolant| which is called by |...

5 days ago | 0

| accepted

Answered
Element by Element Multiplication Question
Please copy and paste your code rather than using screenshot. We can't copy and paste out of a screenshot, hence we can't easily...

5 days ago | 1

Answered
Is there a possibility to join the strings out of cells in cells?
I think that's what you want. If not as per Jan's comment, use valid matlab syntax to define the desired output cellfun(@(s...

5 days ago | 0

| accepted

Answered
A better way to make a tridiagonal?
You can look at the code of |gallery| and if you do you'll find out that it calls |tridiag| in its private folder. What |tridiag...

6 days ago | 1

| accepted

Answered
Generate clusters of points which are periodically spaced
Generate your main period as a row vector, your cluster spread as a column vector of delta, add them and reshape into a vector ...

9 days ago | 0

Answered
Illegal use of reserved keyword
Unless that function is in a larger file which is a class definition (i.e. the very first line of the file except for comments i...

9 days ago | 0

Answered
Linear regression between every 3×3 pixels of two rasters
For what you want to do, |blockproc| wouldn't work as it does not overlap the blocks. <https://www.mathworks.com/help/images/ref...

10 days ago | 0

Answered
Changing the header in a file which include binary content
For a start, you never put back all the |\n| characters that you've removed. fprintf(fid, strjoin(A, '\n')); may work. H...

10 days ago | 1

| accepted

Answered
find the number of elements in matrix
Should work regardless of the type of data in the 6th column: [id, group] = findgroups(yourtable.nameof6column) count = ...

10 days ago | 0

Load more