Community Profile

photo

Guillaume


University of Brighton

7,359 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

모두 보기

참여 게시물
보기 기준

답변 있음
Why the 'ismembertol' function fails on this 5 lines code?
As per my comment, I raised a service request with Mathworks and they have confirmed that it is indeed a bug. As the bug is not...

약 20시간 전 | 0

답변 있음
Extra commas when using fprintf
Personally, I'd use: fprintf(" Old Means: (%s)", strjoin(compose('%.4f', M(:, :, i)), ','));

3일 전 | 1

| 수락됨

답변 있음
Sorting distance traveled by timestamps
So, you've got easy to use datetime in your array and you go and convert to harder to use datenum and then to single. Why? The ...

3일 전 | 0

| 수락됨

답변 있음
How map values of array to 0 and 1
It's trivial normalisation. Subtract the minimum of your array so the new minimum is 0, then divide by the max of that new array...

3일 전 | 0

답변 있음
Why am I getting "Array indices must be positive integers or logical values" when trying to add together all the integers?
Most likely you've created a variable called sum, so instead of summing the elements of Cost, you're using Cost as an index into...

3일 전 | 1

답변 있음
extract specific file from list of folders
First. you shouldn't be using addpath just to be able to load some data. addpath is intended to make code files visible, not dat...

4일 전 | 0

| 수락됨

답변 있음
Importing data to change a NaN
You should be using readtable to load your data into a table. You could also use readcell but this would complicate things. You ...

4일 전 | 0

답변 있음
How do I isolate rows from a table, containing the same column value?
There is no need to sort the table beforehand: [group, schoolname] = findgroups(MASSADOC.school); %get unique schools and assi...

5일 전 | 0

| 수락됨

답변 있음
Delete a dimension from a 3d array to convert into a 2d array (Matrix)
squeeze(yourarray) or permute(yourarray, [2 3 1]) squeeze is simpler and will get rid of all singleton dimensions.

5일 전 | 1

| 수락됨

답변 있음
Set properties of child objects without synchronisation errors
As I wrote in my comment to J. Alex, I don't see a problem with your initial design if the pipes can't be modified outside of th...

5일 전 | 0

답변 있음
why save '.mat' as 'ascii' file appears as FILE instead of txt
If you want the file to have a .txt extension, then simply tell matlab so: filename1 = fullfile(name_folder_new,'coefficients_...

5일 전 | 1

| 수락됨

답변 있음
Why am I getting 387 as the sum of my vectors when I input 1x1x1?
Your problem is not with str2num (although using str2num is not recommended, but that's another topic). Your problem is more fu...

5일 전 | 0

| 수락됨

답변 있음
Replace a value in a vector with another
idx=(true,Failuretimesdet(k)==0) is not valid matlab syntax, I'm not even sure what you're trying to do with this. You seem to...

6일 전 | 0

| 수락됨

답변 있음
Creating cell arrays and 'Operands to the || and && operators must be convertible to logical scalar values.'
While an if expression can be non-scalar in matlab it's never a good idea as many people (I assume you included) do not know how...

7일 전 | 1

답변 있음
Random shuffle vector such that all elements fall in new index positions
I would: do a normal randperm that may map some elements back to their original location any element that has been mapped to ...

11일 전 | 0

답변 있음
Trying to decrypt a message
tofind = '[a-zA-z#]' Read the regexp doc and its examples to learn how ranges work. You may want to add a quantifier to the e...

12일 전 | 0

| 수락됨

답변 있음
Index exceeds the number of array elements (0). Error in ROI_timecourse_DICOM_v2_0 (line 20) FullFileName = FileName(1:suffix(1)-5);
Most likely, strfind(FileName, '.') didn't find a . so suffix is empty and of course suffix(1) is invalid since index 1 is more ...

12일 전 | 0

답변 있음
Convert Binary matrix to Double Value
Bearing in mind that for A = [0 0 0 0 0 0] B is just 0 and that above 16 bits you don't have enough precision in a double number...

12일 전 | 0

답변 있음
Large, unused cell aray in memory still slows down calculation significantly
Well, with the cell array you're doing 2x44100 matrix allocations with zeros, which all have to be copied into a new complex mat...

13일 전 | 0

답변 있음
When merging two tables, then restart the number of rows
No, as you've stated the row number is not part of the table, it's only there to help you in case you need to index the table ro...

13일 전 | 0

답변 있음
How do I import and read multiple text files with the same name from different folders
datafolder = 'C:\somewhere\somefolder'; %your root data folder dataname = 'RESULTS_TRIALS.txt'; %replace with appropriate ext...

13일 전 | 0

| 수락됨

답변 있음
Getting cell array of structs to a usable form in R
destination_folder = 'C:\Somewhere\somefolder'; %change as appropriate filepattern = 'Drive%02d.csv'; %change pattern if need...

13일 전 | 1

| 수락됨

답변 있음
Monte Carlo Method Fails
Monte carlo works fine. Clearly you have a bug. Why are you shuffling (with randperm) each suit before concatenating them? Woul...

13일 전 | 0

| 수락됨

답변 있음
Remove elements from string array
One possible way: numericarray = double(yourstringarray); %convert string array to numeric. Text that can't be converted to nu...

13일 전 | 0

답변 있음
question removed question removed
"I honestly don't even know where to start, my instructor never went over what "seed" means" Have you tried searching matlab's ...

13일 전 | 0

답변 있음
Select method of Worksheet class failed
I'm sure the author is vey good at her research but a good programmer she's not. Global variables in every single function, what...

13일 전 | 0

답변 있음
How can I interpolate a data set given by 5 "inputs"?
TLDR: The Y and xq you've constructed work for scatteredInterpolant but not for griddedInterpolant which uses a different format...

13일 전 | 0

| 수락됨

답변 있음
Getting error for this code as Index in position 1 exceeds array bounds. Pls tell solution
Most likely, your image is smaller than 512x512. If that's not the problem then give us the entire text of the error message. ...

13일 전 | 0

답변 있음
How to create another vector based on some if condition?
It's rare to have to use if in matlab, and it's certainly not the route to go if you want to operate on whole vectors or matrice...

14일 전 | 0

| 수락됨

답변 있음
global variables in structure
Hopefully, you ]do not have any global variables. Global variables are typically a very bad idea. However, I think you're just ...

14일 전 | 0

| 수락됨

Load more