Community Profile

photo

Guillaume


University of Brighton

6,495 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
Output argument <Variable> (and maybe others) not assigned during call to <Function>.
The cv variable is only created iff nargout is 2. With 3 outputs, indeed cv will not exist. Change if nargout == 2 to if nar...

2 hours ago | 0

| accepted

Answered
Hi, I am modeling blood flow, and first I need to create structural rectangular mesh of points, so in the next step I could find the value of pressure, velocity etc. in every each point. Do you please know, how to create this mesh? Thank you
Your description is not clear, and there's no point giving us code that doesn't work. It sounds like you're looking for meshgri...

7 hours ago | 0

| accepted

Answered
Need help with deleting rows in my table
Why are you reading the data as arrays, converting to table, then converting back to array. Choose one type and stick to it rath...

1 day ago | 1

| accepted

Answered
create a function that takes a vector as an input parameter and returns another vector where each component is the initial vector repeated n times.
"Output argument "B" (and maybe others) not assigned during call to "cyclic_shift_recursion" Well, yes matlab is correct. Your ...

2 days ago | 1

| accepted

Answered
Just how random are random numbers in MATLAB?
"Every single time so far there has been a number 19,950+ within 10 generations or sometimes far less." You will have to expla...

2 days ago | 1

Answered
Add cell value from a matrix row based on corresponding index to another matrix row
If you want to keep using numeric matrices: [~, whereinA] = ismember(B(:, [2 4 6]), A(:, 1)) C = reshape([reshape(B.', 2, []);...

2 days ago | 1

| accepted

Answered
How to convert a char into datetime variable?
datetime('11:04:55') Note that it will use the current date for the date part (since a datetime is always date + time as the na...

2 days ago | 1

| accepted

Answered
How to initialize object array with different parameters?
With the current interface, this is probably the best you can do: dim = [3,2]; param = 1:6; param = num2cell(param); %each...

2 days ago | 1

| accepted

Answered
What is the type of function Handle and How is it stored in memory?
Firstly, you seem to be using the term file handle for what everybody else call function handles. File handles are completely di...

2 days ago | 1

Answered
How to concentrate 5000 matrices of different row length (same column length) into one matrix by unfolding each of the matrices to the smallest row length
Where are the 5000 matrices in your code? As far as I can tell you've only got 6 matrices stored in the matrix field of the stru...

3 days ago | 1

| accepted

Answered
Detection of red color RGB
%extracting the Red color from grayscale image diff_im=imsubtract(data(:,:,1),rgb2gray(data)); That comment is very misleading...

3 days ago | 0

Answered
Finding index values for consecutive values in cell array
Right, so your data is a 105x1 vector cell array of 3x3x2000 matrices. First, a function to get the average length of the sequ...

3 days ago | 0

| accepted

Answered
Write video in wide screen format
Matlab assumes and always display the video with a pixel aspect ratio of 1:1. My guess is that your original video specify a di...

3 days ago | 0

| accepted

Answered
Can I load .NET Core 2.2 DLL to Matlab on Linux?
While in theory you can use .Net core on linux (with mono), Matlab is very specific that its .Net interface only works on Window...

3 days ago | 0

Answered
Error: Not enough input arguments
They can't be inputs of phi because I need to zero the function phi with fsolve. Yes, they can: function F=phi(P, Tc, Pc, T, o...

4 days ago | 0

| accepted

Answered
How do I fill lines between 2 values with interpolation
Probably, the easiest: startvalue = 1; endvalue = 10; numberofpoints = 19; %includes start and end point x = linspace(startv...

4 days ago | 0

| accepted

Answered
Do I need pre-allocation ?
Robin, in the 2nd case, yes you were attempting to preallocate the array. However, the array you preallocated is not the same ar...

4 days ago | 2

| accepted

Answered
How can I rearrange the order of N matrix in Matlab?
Read Stephen's comment and follow the links to understand why your original design is very flawed. You want only one variable c...

4 days ago | 0

Answered
Displaying empty array as output
Hopefully, your real code doesn't use the same indentation as what you've posted above. If it does, I suggest that you let matla...

4 days ago | 0

Answered
Choice of Database for smooth data import into Matlab
While excel can be used as a data source, I would hardly call it a database. Particularly, if you compare it to SQL databases. T...

4 days ago | 0

| accepted

Answered
splitting data in a table when ever the cell is empty
Matrices can never have empty rows. What you call empty rows are rows with 0s in both columns. If I understood correctly what ...

5 days ago | 0

| accepted

Answered
How to align multiple matrices based on the first column values?
The simplest way is convert your matrices to a table, which may make sense anyway considering that it looks like the columns of ...

5 days ago | 0

| accepted

Answered
Index in position 2 exceeds array bounds (must not exceed 101)
My guess is that you want all the times, in which case: newsst = sst(newlat, newlon, :); Using time as an index into newsst ma...

5 days ago | 0

Answered
Find the closest value in each group in a matrix column
Within splitapply, when min is invoked, it's invoked on a single group. Therefore, the index it returns refers to the index of t...

5 days ago | 0

| accepted

Answered
Tab completion of struct within cell
The reason why tab completion doesn't work for the content of a cell array can easily be explained: matlab does not look into th...

5 days ago | 1

| accepted

Answered
Bypass uigetdir in function
The proper way to go about this is to separate the processing code into a function, completely independent of user input/output....

5 days ago | 1

| accepted

Answered
"matlab drive" remove space in filename
When you install the connector, you can choose the path of the folder, at least on Windows. I would assume the same is true for ...

5 days ago | 1

Answered
Select groups of data with a specific size
Simply build the histogram of your groups (with histcounts or accumarray) and select the groups you want to keep with ismember: ...

5 days ago | 0

| accepted

Answered
Given an instance of a class (without knowing class name), how to call the constructor?
As Sean said, you may want to inherit from matlab.mixin.Copyable instead of implementing your own cloning interface. However, t...

5 days ago | 1

Answered
Polyfit function - NaN
polyfit cannot cope with missing data.So, if you want to use polyfit you have but no choice to remove that missing data. If the...

5 days ago | 0

Load more