Community Profile

photo

Guillaume


University of Brighton

6,597 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
Save data in excel sheet using pushbutton.
The problem is either with framecount or dia. We have no idea what size they are nor what their type is. It's also unclear why y...

9 days ago | 0

Answered
Error when trying to load .dll
You probably need to add an 'IncludePath' parameter to your loadlibrary call to specify which directory the include file rtw_con...

9 days ago | 0

Answered
Calculation with Certain Portion of the Matrices
The only way you're going to avoid that sawtooth effect is by starting with a meshgridded x and angle and calculating y from tha...

9 days ago | 0

| accepted

Answered
Checking the range of input arguments
Do you actually need to use varargin? It doesn't appear to server any purpose here, if you always assign the same variable.It lo...

9 days ago | 1

| accepted

Answered
make true statements return value that it is associated with
" I already have a for loop to set up for the intersect values " It's very likely that a loop is not needed at all. Show us tha...

10 days ago | 0

Answered
Mean value of array
Trivially solved with a convolution A=[1 2 3 4 5 6 7 8 ; 9 10 11 12 13 14 15 16; 17 18 19 20 21 22 23 24; 25 26 27 ...

10 days ago | 0

| accepted

Answered
Putting two seperate columns in to one variable and how to insert a Array into mysql
Assuming that by column, you mean column vector use the horizontal concatenation operation , instead of the vertical concatenati...

11 days ago | 0

Answered
Vectors seen as a combination of other vector's elements
This is the generic version of Madhan's answer. Works for any (reasonable!) number of inputs. in = {[1, 2, 3], [4, 5], 6}; %ce...

11 days ago | 0

Answered
Index in position 2 exceeds array bounds (must not exceed 1).
T = Robot.fkine([Th_1 Th_2 Th_3]); handles.Pos_X.String = num2str(floor(T(1,4))); Your second line assumes that T (a.k.a Robot...

11 days ago | 0

| accepted

Answered
make a Sequence number
Layout=[1,1,1;2,2,2;3,2,1;91,3,1;95,4,2;98,4,0.5]; A=[1,2;1,3;3,91;91,95;91,98] searchreplace = [91, 4; 95, 5; 98, 6]; %2 col...

11 days ago | 0

| accepted

Answered
How to find the unique values between two datasets?
Please use valid matlab syntax for your example so we don't have to wonder what your inputs actually are. A={(1,2,3),(1,2,4),(1,...

11 days ago | 0

| accepted

Answered
setting range for pixel intensity
You have to decide if your image is greyscale or colour. You obviously can't set a pixel to green in a greyscale image without f...

12 days ago | 0

Answered
Array indices must be positive integers or logical values.
They're not meant to be empty Well, then you go back through the code to find out why they're empty. Going up we see, ta = t...

12 days ago | 0

| accepted

Answered
how to write a script that outerjoins multiple data files
Something like (untested, expect typos): folder = 'C:\dropbox'; filelist = dir(fullfile(folder, 'File*.csv')); for fileidx = ...

13 days ago | 1

| accepted

Answered
Cell array / Concatenate non - NaN results
You mention a regex. You'd be better off fixing the regex that produces that output. But if that's not an option: A = { [NaN] ...

13 days ago | 0

| accepted

Answered
Sum of a row
sum(yourmatrix, 2) will give you the sum of each row as 3x1 vector. sum(yourmatrix(1, :)) will give you the sum of just the f...

13 days ago | 0

Answered
Continue a loop when entered an option
Just wrap your code in a while loop: option = 1; while option == 1 %... your code here option = input('Do you want t...

13 days ago | 0

Answered
Use of break statement causing issue
I'm not sure what you think break does. It completely stops the loop. So, when your code hits break, you stop the i loop and the...

13 days ago | 0

Answered
changing input variable loop
I won't belittle the point about numbered variables. Read Stephen and Jan links. Suffice to say, if you start numbering or namin...

13 days ago | 1

Answered
how to make polyfit on call arrays?
It sounds like by punch you mean horizontally concatenate. In which case, what you want is easy to do: %b a cell array of 3xN m...

13 days ago | 0

| accepted

Answered
process an image using a mask
No radon and iradon do not know about masking. You will have to pass the whole image. I'm not very familiar with these functions...

13 days ago | 0

Answered
Matlab iteration through excel rows
It sounds like your spreadsheet has a row header and you want to find the columns with a particular header. That can be triviall...

13 days ago | 0

| accepted

Answered
Subtraction of 2 matrices of the same dimensions and values, gives large floating point values instead of 0!
"gives large floating point values" " i get values like e-17" 1e-17 is 0.00000000000000001, that's not large!. That's 15 order...

13 days ago | 1

Answered
Figure(2) is getting replaced by figure(1) and figure(3) by figure(2) in a for loop and so on.
As explained in the documentation of figure, when you specify a number in the figure call, "MATLAB searches for an existing figu...

13 days ago | 2

Answered
comparison of the datasets
I don't see why 4.2 should get a 'b' id. X_val = readtable('example.xlsx', 'Sheet', 'X_val') range_val = readtable('example.xl...

13 days ago | 1

Answered
How to read Binary data little endain from a . jsf file and display an image?
Untested code obviously since I don't have a file to test with. Bugs/typos possible. See attached. edit: fixed a few bugs

13 days ago | 1

Answered
MATLAB returning the value of decimal numbers less than 1 as ZERO
Two things: 1) Using a loop for what you want is inefficient and probably will lead to bugs if you're not careful. What you wan...

14 days ago | 1

| accepted

Answered
How to iteratively append elements to an array
If I understood what you're trying to do, there's no need for the loop: I = imread(chart_image); R = I(:,:,1); G = I(:,:,2); ...

14 days ago | 0

| accepted

Answered
Print all possible matrix combinations for a given matrix
My comment to John made me realise what an efficient way to go about it would be. The crux of the problem is creating the unique...

14 days ago | 0

| accepted

Answered
Can isstrprop search for 2 properties?
I would really recommend you use the approach of letting matlab do the conversion for you as I wrote in my comment and as Rik an...

14 days ago | 1

| accepted

Load more