Community Profile

# Rik

##### Last seen: Today
1,911 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.

View details...

Contributions in
View by

How do I Convert Cells containing Binary Values into Cells of Decimal Values and Decimal Values into Strings?
Create a custom function that tries to convert from binary and returns a NaN if that fails. Then you can use that in your call t...

6 hours ago | 0

Change language to english
Your strong language is not necessary and makes people take you much less serious. There is no need for it. To change the langu...

11 hours ago | 0

is NVIDIA RTX 6000 , compatible with Matla R2020a and R2017b?
According to this documentation page: yes. The Quadro RTX 6000 is from the Turing architecture, so it is fully supported on R202...

11 hours ago | 0

how to save/write images using for loop in one .mat file
As Ameer suggests: you should share the code, so we can suggest how you can implement indexing. The point is that your code cur...

12 hours ago | 0

I am having trouble finding the curve fit of an equation in matlab
You're almost there: ln(y) = ln(A) + ln(x) + B*x ln(y) - ln(x) = ln(A) + B*x %so: y2 = ln(y) - ln(x); p = polyfit(x,y2,1)...

15 hours ago | 0

| accepted

How to create a menu using GUI
You can use the uicontrol style text to create a block of text. Then make a callback function for a key press. In that callback ...

1 day ago | 0

How can I find the centroid of this circle of objects?
There are at least two options here. The first is to take the average of the x coordinates and y coordinates of the white pixels...

4 days ago | 0

for loop not working
Then you are stuck with first undoing that mistake. You should convert those coordinate variables to a single array. You can use...

4 days ago | 0

how to recived input user in matlab
You need to specify that you want the result as a char array: str=input('enter the string>>','s'); It is also a good idea to d...

5 days ago | 1

| accepted

How to skip lines to execute/run?
You should be using strcmp to compare strings or chars, but otherwise what you describe is exactly what you need to do (well, on...

5 days ago | 0

Changing decimals shown in matrix?
You can control this with the fomat function. The closest you can get is two decimals with format bank You should be aware tha...

5 days ago | 0

Reading .csv files from .txt file.
How to read text files is maybe the most frequently asked question. Among many solutions, you can either directly read the txt f...

6 days ago | 0

| accepted

Concatenate nested cell array in one
Since apparently it was the correct solution, I'll repost it: It puzzles me why you would want this without the temporary varia...

6 days ago | 0

| accepted

Splitting arrays based on row number resulting from for loop
Here you go: data=(1:10)'+(0:1);%generate some data splits=[3 8];%use the splits you mentioned if ~isempty(splits) spl...

6 days ago | 0

| accepted

GUI Interface to guess a random number
You should put it in the function that executes when you start you GUI: OpeningFcn. Be sure to store the value in the handles s...

6 days ago | 0

Counting and removing rows with the same numbers in a particular order
Assuming this is indeed the input data you have: A = [1234;4123;3412]; B=arrayfun(@(x) sort(sprintf('%d',round(x))),A,'Unifo...

6 days ago | 0

Picking up the correct index values
You should probably rethink the way you store these values, because this is much more difficult to index than it needs to be. v...

6 days ago | 0

| accepted

error when using 'find' function
If you store output of the find function to a temporary variable, you will notice that the error occurs when that temporary vari...

6 days ago | 0

How to solve this error?
You are close, but you forgot that the code below returns an array. month==[4,6,9,11] Use parantheses to group your coditions....

6 days ago | 0

| accepted

Adding Noise To A Folder OF Images in A Loop
If you don't understand how a function works you should read the documentation. It contains several examples and shows you how t...

7 days ago | 0

| accepted

scatter plot covers the axes values
If you manually set the tick labels you can set an arbitrary distance between the axis and the label. If this doesn't work you m...

7 days ago | 0

How to automatically display a figure in fullscreen in MATLAB2016?
It doesn't look it is possible to draw over the taskbar like that in older versions. The closest you will probably get is with s...

7 days ago | 0

| accepted

Counting the number of occurences for specific values in an array
a=[ 1 2 3 4 5 5 4 3 2 1 ] ; histcounts(a) If you have non-integer data you can use the unique function to convert your vector ...

7 days ago | 0

How can I create a structure array for two files?
You can treat fields of a struct just like any other variable: ECGData=struct;%create empty struct, this isn't mandatory ECGDa...

7 days ago | 1

| accepted

How to calculate average for data every nth row?
Something like this should do the trick: data=rand(900,9); row_interval=30; avg=zeros(1,row_interval); stderr=zeros(1,row_...

7 days ago | 1

how to make a table as a figure ?
There is an example about how to do this in the documentation of the uitable function.

7 days ago | 0

Can anyone help me with understanding this code?
Did you read the documentation for arrayfun? That seems like a good place to start. The part with 'un' is a bit more tricky tho...

7 days ago | 0

How can i read exact value (as it is) from csv file and separate data using empty row? ver.16b
The readfile function you can find here will read a file to a cell array, one line per cell. It will preserve blank lines and le...

8 days ago | 0