Community Profile

photo

Guillaume


University of Brighton

6,125 total contributions since 2012

Guillaume's Badges

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

View all

Contributions in
View by

Answered
Binary search algorithm- find the bit error position
If you want to know the location(s) of the error, you need to keep track of your pivot point (floor(n/2)) and return that togeth...

15 hours ago | 0

Answered
problem in imwrite new images into new directory
Note: when reporting an error always give us the full error message. In particular, you've removed the part that tells you which...

16 hours ago | 0

Answered
how to concatenate two audio files of different matrix dimensions?
You're missing the column indexing in your y1(q*10+1:end), therefore it's converted into a row vector, which will have a differe...

18 hours ago | 0

| accepted

Answered
How can I convert high pass filtered image to grayscale image and save?
I've not tried to understand your code, but it appears to me that B2 is derived from I which is already a greyscale image. There...

18 hours ago | 0

| accepted

Answered
Selecting rows from a table using a column that includes Nan elements
The real question is why have you got NaN in a column of text. It's never a good idea to mix text with numeric. The best thing w...

18 hours ago | 0

Answered
What are the extra subdirectories returned by dir function?
<rant mode on> They're absurd hold overs from a long gone era (DOS) where knowing that the current directory had a parent was so...

1 day ago | 0

Answered
can i run a .m file from my visual basic application (not excel)
On a computer that has matlab installed (and licensed), it's easy to call matlab functions from VB. See Matlab API for COM (COM ...

1 day ago | 0

| accepted

Answered
For loop causing an Infinite loop
There are only two loops in your code, one with length(T) steps, one with numel(F)-1 steps. These values are guaranteed to be fi...

3 days ago | 0

Answered
Error using horzcat Dimensions of matrices being concatenated are not consistent.
Isn't the error message clear? Obviously, a0 has more than one row, hence you can't concatenate it with a one row matrix. As we...

3 days ago | 0

Answered
Vectorise or make this code run faster
This is really basic matlab Z = I(:, :, 1) - I(:, :, 2) - I(:, :, 3);

3 days ago | 0

Answered
Hide class property, but retain autocomplete?
Hidden means hidden, from display and autocompletion. There's no workaround. However, what you could do is customise the displa...

3 days ago | 2

| accepted

Answered
Elementary question, for loop implementation
As we've just said in your previous question, do not create numbered arrays. It's always the wrong approach, as you can see now,...

3 days ago | 0

Answered
Creating arrayfun with two variables
You seem to be expecting implicit expansion out of arrayfun (the way bsxfun works). arrayfun doesn't do that (and bsxfun can't c...

3 days ago | 0

Answered
please, how do we give each region a color after the segmentation ?
label2rgb is one way to do it.

4 days ago | 0

Answered
i want to change [3,2,4](1x3 matrix) to 324(1x1 matrix) any help?
polyval(yourvector, 10) would also work But what if your vector is [30, 20, 40]?

4 days ago | 1

| accepted

Answered
Using the PNG algorithm to save a .mat file
The compression method that PNG uses is the well established deflate algorithm. This is the same algorithm that gzip uses and is...

5 days ago | 0

Answered
find the longest monotonically increasing subsequence of a sequence of n numbers?
Your question is confusing.You talk of finding "the longest monotonically increasing subsequence of a sequence of n numbers", th...

5 days ago | 0

Answered
How to index 8 surrounding cells in a 6x6 2D matrix?
Oh, so you're implementing a variation of Conway's game of life except that your cellular automaton has three states instead of ...

5 days ago | 1

Answered
Divide table takes a lot of calculation time
I doubt you're using any feature of a table with a table that large so why not store your data in a matrix instead. Matrix opera...

6 days ago | 1

| accepted

Answered
How can I remove entire rows from a table based on NaN values in a specific column (cell data type) in a table?
Note that it's not usually a good idea to mix textual and numeric content in the same column of a table. Additionally, since you...

6 days ago | 0

Answered
Read text file and separate text from numerical values
Depending on what exactly you want to import, this could work: opts = fixedWidthImportOptions('NumVariables', 8, ... ...

6 days ago | 0

| accepted

Answered
Scam Matlab Help Chat
I've just had it confirmed by Mathworks that it is legit

6 days ago | 0

| accepted

Answered
How can I convert my .txt files to .xls using xlswrite
An example of a text file would be very useful. What you want to do would probably be very easy to do using the modern import an...

6 days ago | 0

Answered
How can I concatenate a 3-d matrix to 2-d?
Two methods, I'll let you test which one is faster, probably the permute one: B = reshape(permute(A, [1 3 2]), [], size(A, 2)) ...

6 days ago | 1

| accepted

Answered
Setting object properties without returning the object using obj = obj.myfun(obj,argin)
What you want is a handle class. See Comparison of Handle and Value Classes for more details. Note that if you're not proficien...

6 days ago | 0

| accepted

Answered
Find empty cells in excel
Have you checked what the content of raw actually is for cells that are empty in excel? In my version of matlab (2018b) with my ...

6 days ago | 0

Answered
How to cipher an input file?
dlmread is not for reading text files.The easiest way to import a text file is with fileread. plik = fileread(fid); %note that ...

6 days ago | 1

| accepted

Answered
How to recursively go through all directories and sub directories and process files?
Since R2016b, dir can recurse through subdirectories using **. So it's as simple as: rootdir = 'C:\somewhere\somedirectory'; f...

6 days ago | 0

| accepted

Answered
gcf repeatedly returns gui and not newly created figures
How do I ensure that my print command prints the figure that is on top at the time? Simple, don't rely on the current figure si...

6 days ago | 2

| accepted

Answered
How to search for the same value found in one matrix in another matrix
is there a way i could change it so I only recieve the first value? You can tell find to return the first value: [row, col] = ...

6 days ago | 0

Load more