Community Profile

photo

Rik


1,590 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

  • Personal Best Downloads Level 2
  • Editor's Pick
  • First Review
  • 5-Star Galaxy Level 4
  • First Submission
  • 24 Month Streak
  • Revival Level 3
  • Guiding Light
  • Thankful Level 2
  • Knowledgeable Level 4
  • First Answer
  • Solver

View details...

Contributions in
View by

Answered
how to switch the values of a variable
I guess boldly: This is probably your current code: figure(1),clf(1)%don't forget clf during debuggin array=[1 2 3 5 7]; x=l...

5 hours ago | 0

Answered
What does the 'imfuse' output mean?
The output is an image. If you don't understand a function reading its documentation is an excellent start. Here is a link to th...

9 hours ago | 1

Answered
So let's say I have a 3 row, 3 column matrix. If I code the following:
The documentation explains what the second input does. One of the advantages of Matlab over their competition is the documentati...

18 hours ago | 0

Answered
How to plot a temperature in xy axis (2D temperature contour)?
The surf function expects a matrix, so you will have to convert your linear data to a matrix. The accumarray function is a very ...

1 day ago | 0

| accepted

Answered
If I have an older version of Matlab can it be upgraded to a newer version like 2015 for free?
You can update to whichever release your license entitles you. This is different for different licenses. The download center sho...

2 days ago | 0

Answered
How to calculate mean of output in a for loop?
If you want to calculate the mean and the variance you will have to store the output. Since you know the number of iterations, y...

2 days ago | 0

Answered
Is there anyway to convert GUI to .exe without using MATLAB Compiler ?
I am not aware of any method outside of Compiler that will allow you to do that. The only 'alternative' I know is using GNU Oct...

3 days ago | 0

Answered
best option for storing metadata associated to each data file
Another way of thinking about metadata is that it is data itself. Store it as a separate plain text file with the exact same nam...

3 days ago | 0

Answered
saving multiple .mat files with the same name from a script
Use sprintf to form the file names with a number. During the loading, you should load to an output variable and store all the...

3 days ago | 0

Answered
Few questions in matlab assignment
If you paste your code in the Matlab editor you will see two mlint warnings and one error. The first warning is that V is not d...

5 days ago | 0

Answered
How to separate values of string input into other variables???
I'm puzzled why you would want this. The cause of your issue is that you aren't clear about your data types. The char array in f...

6 days ago | 0

| accepted

Answered
Get Matlab R2019b as default program to open .m files on Windows 7
You can select the 'matlab.exe' file in the folder below: C:\Program Files\MATLAB\R2019b\bin\win64 That should make it show up...

6 days ago | 0

| accepted

Answered
How can i calculate the center of mass ?
You can use the VOXELISE function to convert your mesh to a voxelgrid. Use a resolution that makes the most sense to you: too fe...

7 days ago | 0

Answered
How to write low level text to a file without interpretation
If you want to write a char array, you should use the fprintf('%s', txt) syntax, otherwise fprintf will interpret your input as ...

8 days ago | 0

| accepted

Answered
How to write this equation?
There is a difference between log and log10. What you have done in Excel is actually calculate the log10, because you omitted th...

9 days ago | 2

| accepted

Answered
MATLAB Answers Wish-list #5 (and bug reports)
Another nice-to-have feature: being able to move threads between the answer section and comments without having to repost them. ...

10 days ago | 0

Answered
Creating a seperate high score file for Matlab game
There are several options to store data. If you need to store it in a file you can either use a mat file (with the save and load...

10 days ago | 0

Answered
Managing maximum and minimum values ​​in the elements of an matriz.
This should work. The idea is to first find out the base number, adjust the offset if needed, and add the base back. A = [2.1 ...

10 days ago | 0

| accepted

Answered
Compatibility : get the Matlab minimum version required to run a program
The only reliable way I have found is to actually test it. An alternative is to carefully read the documentation of every functi...

10 days ago | 0

| accepted

Answered
How to create a custom matrix?
This is a simple contatenation: n=8; %generate W and V W=randi(20,n,n); V=randi(5,n,3); output=[zeros(n,3) ; W*V];

10 days ago | 1

| accepted

Answered
Close all figures which are not docked
Using the script below I generate the list of properties that are different between docked and undocked figures. After running t...

11 days ago | 2

Answered
Storage of variables being generated in a loop
The general solution to a problem like this is to put some code around it. The most general solution is to use cell arrays, but ...

11 days ago | 0

Answered
Error using radon Expected input number 1, I, to be two-dimensional.
Your jpg file is probably an RGB image (even if it doesn't look like a color image). That makes it a 3D array. You need to deter...

11 days ago | 0

| accepted

Answered
Sort indices to groups with all pairs sampled
It looks like <https://www.mathworks.com/help/matlab/ref/nchoosek.html nchoosek> should do the trick for you.

12 days ago | 0

Answered
Index in position 2 exceeds array bounds (must not exceed 1).????
You are trying to access x(:,2) in the second iteration of either loop. Either change that, or switch to size(x,2) in your loop ...

12 days ago | 0

Answered
Finding the distance between two points in an image
You are using R2016a, but using functions in scripts was introduced in R2016b. The documentation page you linked does not mentio...

14 days ago | 0

Answered
Creating new matrix with another matrix
Do you mean something like this? data=randi([-2 5],[50 70]); hasZeroInLastCol= data(:,end)==0; newdata=data(hasZeroInLastCol,...

15 days ago | 0

Answered
Publishing a set of functions
If by your first point you mean integration of your function in Matlab or one of the toolboxes: contact support to work out the ...

15 days ago | 0

Answered
creating a matrix from two sets of data
You can use ndgrid to generate every combination. [X, Y] =ndgrid(x, y); out=[X(:) Y(:)];

16 days ago | 3

| accepted

Answered
How the change the intensity of the image in the App designer without loading it again and again?
This sounds like you should be able to borrow a lot of code from my WindowLevel FEX submission. The point is to change the caxes...

16 days ago | 0

Load more