Community Profile

photo

Guillaume


University of Brighton

7,132 total contributions since 2012

Guillaume's Badges

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

View all

Contributions in
View by

Answered
Error using zeros Size inputs must be scalar.
Yes, we have no idea what you meant to do, so can't really tell you how to fix the problem. Currently you're calculating the max...

9 hours ago | 0

Answered
How to load a variable and export and edited version of it into a matrix
So, what doesn't work with your current code? It's difficult to tell you what to change if we don't know what the problem is. O...

18 hours ago | 1

| accepted

Answered
unique values inside a matrix
I'm not sure what you mean by unique is not working. You haven't explained the reasoning for going from your input to your outpu...

19 hours ago | 1

Answered
Reading Selected Columns from an Excel Using the "readtable" Option
readtable does not accept disjoint ranges (e.g. 'A50:A10000,C50:C10000') so you don't have a choice but read the B column as wel...

1 day ago | 2

Answered
How do we find the input arguments required by a handle class constructor?
It sounds like the problem has already been resolved and as Adam said, the easiest is to look at the function definition. If, f...

1 day ago | 0

Answered
could anyone help me how to group the numbers into sets
As the documentation of mat2cell explain, the dim inputs specify the size of each block along a particular dimension. The sum of...

3 days ago | 1

Answered
Switch case on an array
Yes, it's a lot clearer. So, the transition to a char array is a complete red herring. It's totally unnecessary. Using sequenti...

3 days ago | 1

| accepted

Answered
So I wanted to split the 1X15 cell to different cells.
If you want to perform group statistics, the simplest is indeed to put everything in just one table: allresults = vertcat(resul...

4 days ago | 2

| accepted

Answered
Mathworks Questions Resolved.
Simply click on the Accept this Answer button that should be visible below the answerer's name. (Like you should see below my na...

4 days ago | 0

| accepted

Answered
R2019b Mojave does not start
For installation and startup issues, Mathworks support is always available regardless of your license. So I recommend you contac...

4 days ago | 1

Answered
Can we use l,k,z as global variables in GUI rather than using x,y,z ?
You shouldn't be using global variables at all. There's always better ways of doing whatever it is you're doing. As for the nam...

4 days ago | 1

| accepted

Answered
Can i give mathworks a tip on the development of MATLAB?
You can suggest whatever you want to mathworks via a service request. Whether or not, they act on it is another matter. For you...

4 days ago | 1

Answered
Check if a set of coordinates are on a line
Probably, the best way is to use polyfit (which does a least square fit) and look at the norm of the residuals. If it's small en...

4 days ago | 0

Answered
New serial communication with serialport()
But now, I don't see a way to access the serialport object created in the beginning in other functions You just have to pass th...

4 days ago | 0

| accepted

Answered
Getting an error of 'Reference to non-existent field'
The way traj_generator is coded, when t is 0, it returns a structure with only 3 fields: pos, yaw and yawdot (these last two are...

4 days ago | 0

| accepted

Answered
bwboundaries : missing coordinates of one of the two borders of my image
The problem has nothing to do with bwboundary. The problem is with you calling plot in a loop without hold on, so each time you ...

4 days ago | 0

Answered
vector of integers modification
Possibly: rank = [4, 1, 2, 2, 4]; [~, ~, rank_new] = unique(rank)

4 days ago | 2

| accepted

Answered
Converting a date in character format to an actual date recognized by MATLAB
Your allDate = datetime(zeros(1,length(Filename))); will only work if length(Filename) is 3 or 6. Otherwise you'll get an err...

5 days ago | 0

| accepted

Answered
Using 'assignin' to assign value to variable 'max'
First and foremost, you shouldn't be using assignin and its friends (evalin, etc.). There's always better ways to do whatever yo...

5 days ago | 1

| accepted

Answered
Getting an 'Array indices must be positive integers or logical values' error
You should read the comments at the top of the function and understand them. In particular, the function must be initialised fi...

5 days ago | 1

| accepted

Answered
Why does jsonencode parser does not remove exponential notations when format longG is used?
The straightforward answer to your question is simple. format has nothing to do with jsonencode, it only affects display at the ...

5 days ago | 1

| accepted

Answered
Multiple 'EndOfLine' readtable
This has nothing to do with the EndOfLine character (which is typically not rendered when viewed in a text viewer). As the erro...

5 days ago | 2

Answered
Unique rows of 2 cells with 2 columns each.
merged = [new; old]; %simpler way to write vertcat(new, old) [~, row] = unique(merged(:, 1)); %get row index of unique values...

5 days ago | 1

Answered
One measure greater than another?
Note than an even simpler way to extract data from a table is with dot indexing: Wanted = T.SFStartFreqHzoffundamental; %equiv...

5 days ago | 0

| accepted

Answered
Please explain the following line of code
What couldn't you run the code and see what it does? Your line of code is just a convoluted of doing: o(1:2:end) = -32 which ...

6 days ago | 0

| accepted

Answered
Rearrange a given array
This would work as long as V has a multiple of 10 elements: %demo data V = [ 19 15 11 2 16 3 1 18 14 3 18 19 20 1 13 4 14 3 1 ...

6 days ago | 0

| accepted

Answered
Matlab displays truncated output with elipses. How do I fix this?
As far as I can tell, this is and has always been normal behaviour in the live script editor. Same as with normal scripts, you...

6 days ago | 1

| accepted

Answered
Readtable for a huge (no good schema) CSV file!
As has been suggested you will have to parse the header and the values separately. It can't be done with the same readtable call...

6 days ago | 0

Answered
Run ImageJ plugin OrientationJ using MIJI from Matlab
For 1), unfortunately, it's a problem with your plugin which clearly has not been designed to run non-interactively. Unless the ...

6 days ago | 0

Answered
'.' is not an internal or external command, nor is it a runnable program or batch file
First use fullfile to build paths instead of string concatenation and adding the path separator yourself. It would be more relia...

6 days ago | 2

Load more