Community Profile

photo

Rik Wisselink


1,064 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 Wisselink's Badges

  • 12 Month Streak
  • Revival Level 3
  • Guiding Light
  • Thankful Level 2
  • Knowledgeable Level 4
  • First Answer
  • Solver

View details...

Contributions in
View by

Answered
Is there a way to see if my code (written in 2018b) will work in another, older version of Matlab, like 2015b?
The only foolproof way I have found is actually trying it. You could also comb through the doc to check if the function behavio...

13 hours ago | 0

Answered
How can I display an image on a point of the plot?
Instead of deleting and recreating those graphics every iteration, you could also update the XData and YData properties of the i...

17 hours ago | 0

Answered
shouldn't there be two parallel lines on my plot?
There actually are two parallel lines, but you need to zoom in quite a lot. If you have a look at the output of the line below,...

1 day ago | 0

| accepted

Answered
Generalizing an IF and FPRINTF expression
Since your actual question is much easier to understand, I'll try to answer that one. Below you will find two strategies that en...

1 day ago | 0

| accepted

Answered
How to efficiently compare two matrix to get a single reference value?
I don't know if this is elegant enough for you, but it does work. TrueVal= [1 1 1 2 2 2 3 3 3 1 2]'; Predicted=[1 2 3 1 2 3 1...

1 day ago | 1

Answered
folder path difference in 'Windows' and 'Linux' system
This is not an inherent feature of Matlab, but of the operating system that runs Matlab. You can avoid this problem by not hard...

3 days ago | 1

| accepted

Answered
how to create increasing number pyramid matrix?
In case that is the pattern you're looking for, here is the code that implements it: function M=create_stairs_matrix(N) M=zero...

3 days ago | 0

| accepted

Answered
Why am I getting "Index in position 1 exceeds array bounds."?
Your image is already rgb, so you can skip that line in the first place. You do need to convert to double to have the same resul...

6 days ago | 0

Answered
How to get the right axes current point in a GUI after clicking on a pushbutton
Since you don't already use the axes callback, I have modified your example so it will ignore all clicks outside the axis (and o...

7 days ago | 0

| accepted

Answered
How to fit curve to see the scaling
That code doesn't work, because your data is not a polynomial. It doesn't make sense to fit to a polynomial if your data is not....

7 days ago | 0

| accepted

Answered
Creating a polar plot in a Matlab GUI (using GUIDE)?
You can create a polaraxes object (take care to specify appropriate position parameters), and use the handle to that polaraxes o...

8 days ago | 2

Question


Is discussion of cryptography allowed?
The answer seems to be that it isn't, but the resources are pretty confusing. My legal background is limited to two courses in D...

8 days ago | 2 answers | 1

2

answers

Answered
hobject issue with function
I'll post it as an answer so you can accept it. The root cause of your problem is that your call in blocproc assumed that a han...

8 days ago | 0

| accepted

Answered
Same bins for histogram
What you are telling Matlab is to divide the range [min(data) max(data)] in 10 equal parts. Because your data has differing rang...

9 days ago | 0

Answered
Matrix value to store as matrix index
The code below works. I'll try to find a better way, but in the meantime you can use this. A = [2 2 1 1 1; 3 3 3 0 2; 5 4 5 0 3...

10 days ago | 0

| accepted

Answered
how to get only selected legend in this particular case
Using explicit handles to the patch objects will fix the legend for you. Also, you don't need the second call to hold on. The la...

10 days ago | 0

| accepted

Answered
Need some help with the codes
You are almost correct. If you look at the sidebar you will see several m-lint warnings. The solution is to actually return a -1...

11 days ago | 0

Answered
write multiple txt files
A few lines later you try something better when you try to form a file name. But the problem is a bit deeper: you are trying to ...

11 days ago | 1

| accepted

Answered
Index exceeds matri dimensions
This has to do with your loop and with the way Matlab parses the || operator. You loop goes to length(estimulo), but then you t...

11 days ago | 0

| accepted

Answered
How do I work on images with desired range of brightness. DICOM
I don't think you understand what is happening when you execute that line of code. Have you read the documentation for imshow? T...

14 days ago | 2

Answered
How can I create an array starting from one time and ending at another time in one secod interval?
If you specify the step size it should work: starttime=datetime(0,0,0,0,1,50); endtime=datetime(0,0,0,0,2,0); v=starttime:sec...

14 days ago | 0

| accepted

Submitted


Wayback Machine API
This functions acts as an API for the Wayback Machine (web.archive.org).

17 days ago | 1 download |

Thumbnail

Answered
I have a loop that creates random sequences of strings. I need to save this into a matrix so that I can make sure that none of the lines repeat. How can I take the sequences I make in this loop and save it in a matrix?
You can use something like the function below. function seq=Random_Sequences(sequence_length,Num_sequences,Num_N) %each row of...

17 days ago | 0

| accepted

Answered
How do I create an image from random unsorted x, y, intensity values?
In the code below I'm assuming x and y are valid sub-indices. figure(1),clf(1) %set a function we'll need later rot90CW=@(I...

18 days ago | 1

Answered
Inspired after seeing a cool Youtube video of Fourier series... How do I implement a Fourier series for an irregular non periodic curve?
First I misunderstood it a bit: I just let Matlab figure out the desired wavelenght as well, but that turns out to be quite tric...

19 days ago | 0

| accepted

Answered
can develop this answer to print ('no hole') if the condition of the number of zeros is not satisfy ,please?
It is a bit redundant, but here is the code I was refering to: x=[1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0...

22 days ago | 0

| accepted

Answered
Alternative command to Shell Escape [!] function
On Windows you can use the start keyword to start a command in a separate thread. Sometimes this doesn't play nice with Matlab,...

24 days ago | 1

Answered
Why running GUI via double click on a .fig file makes handles be empty?
The fig file is just a figure, and does not contain any code. So opening the figure does not start your GUI, it only opens that ...

24 days ago | 1

| accepted

Answered
I have large matrix and i want to find the number of consecutive zeros if there is more than 10 disply(hole) and give the index of the start and end of this vector of zeros,
Use this FEX submission if you want to speed up this code. x=[1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 2...

24 days ago | 1

Load more