Community Profile

photo

Guillaume


University of Brighton

7,298 2012 年以降の合計貢献数

Guillaume's バッジ

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

すべて表示

貢献した分野
表示方法

回答済み
Have data in subfolders available
Firstly, it's not a good idea to mix code and data folder. The two should be completely separate, so that your code can work reg...

約2時間 前 | 1

回答済み
How to arrange time series data into yearly groups?
A simpler and faster way of obtaining the same as Joe's answer: dataInitial = readtimetable('Data.xlsx'); dataFinal = table(da...

約3時間 前 | 0

回答済み
Distance between two point with the same value
Assuming euclidean distance metric: n = randi(3, 10); %demo input vals = unique(n); %get unique values in n mdistances =...

約6時間 前 | 1

| 採用済み

回答済み
Preprocessing using readtable()
Assuming you don't know which rows of the text file correspond to your start and end timestamps, what you want cannot be achieve...

約7時間 前 | 0

回答済み
Why does the for loop give wrong answer
For a start make sure that your numbers are all in the correct units. It looks like your density is in SI () but your pressure c...

1日 前 | 0

| 採用済み

回答済み
Extracting lower triangle excluding the main diagonal elements to a string
B = strjoin(arrayfun(@(row) strjoin(compose('%d', A(row, 1:row-1)), ' '), 2:size(A, 1), 'UniformOutput', false), '\n') is one w...

1日 前 | 1

| 採用済み

回答済み
How I do evaluate a function handle in other function handle
Your y_p never changes in your function. It's always the original . Shouldn't y_p be reevaluated at each step? Your 0.0001 delt...

3日 前 | 0

回答済み
Compute two matrices with different sizes and different values
it seems to me that the simplest and most reliable solution is to interpolate both velocity matrices to the same grid. Of course...

3日 前 | 0

| 採用済み

回答済み
Error using copyfile No matching files were found.
I'd replace idx = strfind(myfile(i).name,'_thumb'); if ~isempty(idx) %do nothing else by the simpler ...

3日 前 | 0

| 採用済み

回答済み
Extract values from a matrix
mean(yourmatrix(yourmatrix >= 3)) %mean of all values greater than or equal to 3

3日 前 | 1

| 採用済み

回答済み
Create two fprintf in two diferent lines
You seem to be aware that '\n' is a newline so why don't you use it? fprintf('\n B1 \t B2 \t B3\t B4 \t B5\n'); %\n added a...

3日 前 | 1

| 採用済み

回答済み
how to create an error message when invalid data is input and then prompt to re-enter the data
Typical pattern for this is: value = someinvalidvalue; while valueisinvalid value = input('Enter value'); end Note ...

4日 前 | 0

回答済み
Help with Simple OOP Program
As Thomas said, the kind of class you're developing would works better as a handle class. Note that if you derive from handle y...

4日 前 | 0

| 採用済み

回答済み
Regionprops returning "wrong" axis lengths
That's because all the ellipse properties are not designed for hollow shapes. Matlab is trying to fit an ellipse just to the 'on...

6日 前 | 1

| 採用済み

回答済み
Average in a 1D array
Assumming the number of elements of the vectors is a multiple of n, reshape the vector in columns of n rows and take the mean ac...

6日 前 | 1

回答済み
structure contains multiple cells with different variables in them I would like to remove variables not present in all cells
%identify common fields commonfields = fieldnames(data{1}); for cidx = 2:numel(data) commonfields = intersect(commonfield...

6日 前 | 0

| 採用済み

回答済み
Replace letters in matrix
I would be wary of using regexprep as per Walter's code for that. It relies on the fact that replacements are attempted in the o...

6日 前 | 0

回答済み
accessing large MAT file
See the limitations section of matfile to see what it can and can't do. In particular, the granularity of matfile is typically a...

7日 前 | 0

回答済み
Finding values within a matrix
It appears that you are building your code from bits you've asked or found without really understanding how it works. In particu...

7日 前 | 0

| 採用済み

回答済み
How to parse a table (in a text file) into matlab cell array where we have some missing values?
Your file appears to have fixed width fields. the easiest way to import such files is with FixedWidthImportOptions, e.g.: opts ...

7日 前 | 0

回答済み
[Solved] How can I make my output into a 2D char array instead of separate answers?
My idea was to concatenate each line, but it doesn't seem possible without resetting Well, you're doing assignment which indeed...

10日 前 | 1

回答済み
Montage from a cell array of image file names
Note that you can look at the code of montage to see what it does. As Praveen commented, it's not clear what final image size yo...

10日 前 | 0

| 採用済み

回答済み
How to save structure inside a structure in .mat file?
If S is indeed a structure as you have defined, then save('data', 'S'); does indeed save the whole structure as one structure ...

10日 前 | 0

回答済み
Taking in a function as an argument
Seems clear enough: Error in bisekt (line 14) bisekt(m, x2) Within bisekt, you call the function again, this time...

10日 前 | 0

| 採用済み

回答済み
while loops not work using randsample
Maybe if you used proper indenting in your code, you'd see the silliness of it: %... code irrelevant while eq1 < 1 && eq2 > 1 ...

11日 前 | 1

回答済み
How to pass a method as a function handle
Can't tell you why it doesn't work as you have written, I suspect that this has to do with how the . operator is implemented in ...

11日 前 | 0

回答済み
How to remove user-defined objects from memory?
Note that this has nothing to do with objects. You don't seem to be understanding cell arrays. Your B is a cell array. A cell a...

11日 前 | 1

| 採用済み

回答済み
Concatenate cells leaving columns/rows empty
Do you mean this: c = {}; %or better if you know the final size: %c = cell(1, 3); c(1, [1 3]) = [a,b]; %put a at column 1 a...

11日 前 | 0

| 採用済み

回答済み
Dynamic/global function definition
You've done it already! Instead of using setfunc in dynfunc to apply it to X, simply return it out of dynfunc, so it can be use...

11日 前 | 0

| 採用済み

回答済み
Separating Multiple Columns of Data Based on a Value in One Column
While you could indeed explicitly separate the data per ROI, you probably don't need to. Matlab has several functions that allow...

11日 前 | 0

Load more