Community Profile

photo

Rik


Last seen: Today
2.602 total contributions since 2017

E-mails with feedback/questions about FEX submissions are welcomed. In general I will post e-mails about Answers on the related page, unless there is good cause not to do so.

Contact

Rik's Badges

  • MATLAB Central Treasure Hunt Finisher
  • 36 Month Streak
  • Ace
  • Revival Level 3
  • Draw Letters
  • Community Group Solver
  • Indexing I Master
  • 5-Star Galaxy Level 5
  • GitHub Submissions Level 3
  • Personal Best Downloads Level 3
  • Cody Challenge Master
  • Introduction to MATLAB Master
  • Speed Demon
  • Leader
  • Commenter

View all

Contributions in
View by

Answered
Fetch data from multi dimensional struct
Referencing the field will generate a comma separated list, which you can capture into a cell array like you would expect: %cre...

circa 2 ore ago | 0

Answered
Converting a function into an operator
You can also do the work yourself by implementing mtimes as a method (I mimiced the interface suggested by Matt which ignores th...

circa 7 ore ago | 0

Answered
How to create a minesweeper board using a matrix
The name Matlab stands for 'matrix laboratory'. It would be a shame not to use the array processing powers. If you set the loca...

circa 7 ore ago | 0

Answered
How to delete/cancel trailing zeros in complex and imaginary numbers?
The way data is stored and the way it is displayed is not necessarilly connected. You can influence the way data is presented wi...

circa 7 ore ago | 0

Answered
solve returns variable name instead of value
This is exactly as documented. syms x result=solve(4 == 2+x,x) res=double(result) %convert symbolic to double

circa 7 ore ago | 0

Answered
Saving the outputs of multiple runs of a script
You should not be using a script outside of debugging. If you're only interested in the value of a single variable, you should m...

circa 7 ore ago | 1

Answered
How to use the function quiver in app designer?
You can specify the Parent property: %load example data from the doc load('wind','x','y','u','v') X = x(11:22,11:22,1); Y = ...

circa 9 ore ago | 0

Answered
Choose 1 real solution between 4 solutions
You're using a syntax that is no longer valid in Matlab. Since you didn't specify your Matlab release (and posted your code as p...

circa 9 ore ago | 0

| accepted

Answered
CAT arguments dimensions not consistent.
There are several issues with your code. After applying the correct indentation, here are my edits. The source of your error is...

circa 10 ore ago | 1

| accepted

Answered
Count total number of recurring sequences
If you get RunLength from the FileExchange this is fairly easy: data=[0;1;1;1;0;0;0;0;1;0;1;1;1;1]; [~,N] = RunLength_M(data);...

circa 11 ore ago | 0

Answered
Creating a loop inside a script
It sounds like your loop needs to have a shape like this: clear syms x1 x2 x3 x4 x5 x6 T eqn = [ 200*x1-x2-70600 ==0 ...

circa 15 ore ago | 0

Answered
Read custom time format from txt or xlsx file
As long as you process each line as a char array it is as easy as simply inserting the colons: %read your file to cellstr with ...

circa 16 ore ago | 0

| accepted

Answered
Insert text to the image in for loop
Instead of recreating graphics object every iteration of your loop, it is often faster to create the object once and then update...

4 giorni ago | 0

| accepted

Answered
Naming variables from one column Import file
Don't store data in a variable name. You should use cell arrays or fields of a struct instead.

5 giorni ago | 1

Answered
how can i convert an answer from an inputdlg into a matrix ?
While you could solve it like you suggest, a much better idea (in my opinion) would be to use uigetfile. file = uigetfile opens...

6 giorni ago | 0

Answered
Graphing data from a .txt file giving error and inaccurate data
You should probably read the file once and then parse the data. I cropped your file, because I don't think the entire thing is r...

6 giorni ago | 1

Answered
F=Kff*uf - Matrix operation
You were almost there: F = [383.02; 321.39; 0;]; Kff = [634.8 -191.2 -353.6; -191.2 447.3 353.6; -353.6 35...

6 giorni ago | 0

| accepted

Answered
Merge binary images and smooth the edges
I'm not getting as smooth as your example, but this should do as a first approximate. IM=imread('https://www.mathworks.com/matl...

7 giorni ago | 0

Answered
Turn off "Improve MATLAB by sending user experience" from the command line
Using a function to unwind the settings (casting them to struct), and using comp_struct from the FEX, I found the relevant setti...

7 giorni ago | 1

Answered
x,y coordinates of text
You can use the Extent property of the text object to find the corners of your text area. The only thing left to do for you is t...

7 giorni ago | 1

| accepted

Answered
blood vessel segmentation in retinal images
You ran the function without any inputs. You will have to call it with an input, e.g. like this: IM=imread(fullfile('Test Image...

8 giorni ago | 0

Answered
how can i find and mark indexes on my data?
The answer is already in your question: you should use the find function on your mci array. For clarity, here are the content...

8 giorni ago | 0

Answered
How can I set the table parameter in .txt output
Because you didn't tell Matlab to use 2 spaces in the FormatSpec. Compare the two versions below (the second line is to provide ...

8 giorni ago | 0

| accepted

Answered
Saving .wav file
You're overwriting the song every time this callback is triggered. You should probably store each note to a field of your guidat...

8 giorni ago | 0

| accepted

Answered
Explanation of "Position" in uitable
Since the units are set to Normalized, the units of the Position property are a percentage of the parent object (generally a fig...

8 giorni ago | 0

Answered
find previous value in column before specific set value and delete all others
You can use find to create a vector of indices. data=[182 0 195 13 197 2 207 10 210 3 219 9 222 ...

14 giorni ago | 0

| accepted

Answered
insert variable k value into new variable names
Yes: k=1; on{k}=imread(sprintf('on_%d.tif',k)); on{k}=double(on{k}); figure; imshow(on{k}); The main point is to use a cell...

14 giorni ago | 0

Answered
How to get specific columns from a csv file and get its average and standard deviation?
Often the answer to 'how to do this' is: break your problem into solvable steps. You need to read your data from a file to a Ma...

18 giorni ago | 0

Answered
I would like to compile a text string for each one of the three index of two given arrays
Easy with sprintf: XX=[1,2,3]; YY=[3,2,1]; z=repmat("",size(XX)); FormatSpec='&DEVC ID=''vel_%d'', QUANTITY=''VELOCITY'', AB...

19 giorni ago | 1

Submitted


getUTC
get the current time in UTC

20 giorni ago | 2 downloads |

Load more