Community Profile

photo

Rik


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

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

View details...

Contributions in
View by

Answered
Export a cell array containing cell arrays WITH letter titles (A, ..., Z, AA, AB, ...)
You need to generate the iteration labels (which is easiest with a cell array. I have once written a function that generates exc...

3 hours ago | 0

Answered
Loop: Index Exceeds Matrix Dimensions / less values than required.
If it is fine to use fewer values for the end of your loop, you can do this: %replace this Dataset(start_limit:end_limit,1...

9 hours ago | 0

| accepted

Answered
Count how many times a number appears for X number of rows (e.g 99 rows) in an array.
You have two options: # use the runlength function by Jan (you can get it from the File Exchange) # replace 1:length(data) ...

9 hours ago | 0

| accepted

Answered
How to create a matrix out of all the possible combinations of a vector
https://www.mathworks.com/help/matlab/ref/perms.html

10 hours ago | 1

Answered
Adding 3 images to a GUI showing the red, green, and blue channel of an image
RGB images in Matlab are stored as 3D arrays. As the third dimension stores the colors, something like this should work (pay att...

2 days ago | 0

| accepted

Answered
GUI axes question, need help having a minimal and maximal edit box for the x axes values
Set the XLim property of the axes object in a callback. Make sure not to forget to use str2double, to check for NaN input, to...

2 days ago | 0

| accepted

Answered
Invalid expression...Line 16 column 48
You have a closing parenthesis too early: plot(x(n+1,1))*1e6;x(n+1,2)*1e6 % ^ Also, you should use commas to...

2 days ago | 0

| accepted

Answered
"Index in position 1 exceeds array bounds" error for loop
Instead of this line for j = 1:length(brakingData) Use this: for j = 1:(size(brakingData,1)-1) Although you can ...

3 days ago | 0

Answered
How do I use X&Y Arrays in a formula to get and Array answer?
Use ndgrid to generate the full array of combinations. You could also do it with implicit expansion, but that makes it harder to...

3 days ago | 2

| accepted

Answered
Convert String to Expression for IF Statement
data<1000 That will return a logical (true or false value). parseCond=@(data) data<1000; That will create an anony...

4 days ago | 3

| accepted

Answered
looping though multiple sub-directories
Yes, you just need to load your text file with your paths, and then loop over the contents. If you need help with loading the te...

5 days ago | 0

Answered
How to find the area of a segmented image in matlab?
You can make use of the fact that true is stored as a 1. Make sure your object is the only one marked with true and then use thi...

6 days ago | 4

| accepted

Answered
Load particular data in a .m file from another .m file from different folder.
I'm going to guess that your m file is not a function but a script. I would recommend using functions for anything but testing. ...

6 days ago | 1

| accepted

Answered
Extracting file name elements to vectors
You can put the contents of your loop in a separate function and call that with arrayfun if you insist, but that will not really...

7 days ago | 0

Answered
Reading a 97-2003 xls file
Sometimes it helps to provide the full file name including the extension. That way Matlab doesn't have to determine the file typ...

8 days ago | 1

Answered
Query data from 1xn struct
The |table| data type is probably a better choice for your usage. Then you can also easily index.

10 days ago | 0

| accepted

Answered
How to plot $40b^2x-9b^2-60bx+72b-144=0$
It shouldn't be too hard to pry out x from this equation. Getting out b is a bit more tricky. 40b^2x-9b​^2-60bx+72​b-144=0 ...

10 days ago | 0

| accepted

Answered
Histograms from point cloud
It looks like you can use the columns from xyzPoints, because they seem to store the coordinates. Otherwise you could also use t...

14 days ago | 0

| accepted

Answered
Slider which changes images
Live updates are a bit more tricky, but you can use the uicontrol function to create a slider. Then you can use the callback fun...

14 days ago | 0

| accepted

Answered
How to read N number of .log files at a time?
Generate the file names with sprintf and loop over the files.

15 days ago | 0

Answered
MATLAB Answers Wish-list #5 (and bug reports)
Editor support on mobile seems not fully tested. (I'm using Android 9 (Lineage OS), with Chrome as browser and Swiftkey as the k...

15 days ago | 0

Answered
How do I create a table from the names of files in some folders?
You can use the dir function to get a full file list: list=dir('C:\Your\Path\**\*.flac'); Then you can parse each file name to...

15 days ago | 0

Answered
read data from file and convert to a 3d array.
To suggest the best way to read the file, you will have to share a small sample. Otherwise functions like importdata or the more...

15 days ago | 0

Answered
How do i add on deatoolbox on MATLAB?
Download the toolbox from github: https://github.com/javierbarbero/DEAMATLAB/archive/master.zip Then you can extract that to ...

16 days ago | 1

| accepted

Answered
Importing multiple .xlsx files to automate data processing
I would suggest using dir to create a list of the files and then parsing them in a loop. Probably using xlsread directly is a sm...

17 days ago | 0

Answered
could anyone help me how to solve the issue
If you want to not show a tick, you can remove it by explicitly skipping it. ylim([0,1.1]) set(gca,'YTick',[0.2:0.2:1.1]) You...

19 days ago | 1

| accepted

Answered
Hollow out binary matrix shape
To find the wall, I would invert the image, do a dilation and then & the original and the processed images. It doesn't really ma...

20 days ago | 1

| accepted

Question


MATLAB Answers Wish-list #5 (and bug reports)
This is the 5th installment of the wish-list and bug report thread. This topic is the follow on to the first Wish-list for MATL...

20 days ago | 5 answers | 0

5

answers

Answered
input character not valid
Rename your own function (C:\Users\Rick\Desktop\eeglab13_6_5b\plugins\Biosig3.3.0\biosig\maybe-missing\strncmpi.m). It is being ...

21 days ago | 0

Answered
What does @(x,y)myFunction mean?
The @ symbol generates either a function handle or creates an anonymous function. You can read more on this doc page. You thir...

21 days ago | 0

| accepted

Load more