Community Profile

photo

Rik


1 370 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
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...

environ 14 heures 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...

1 jour 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...

3 jours 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. ...

3 jours 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...

3 jours 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...

5 jours 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.

6 jours 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 ...

6 jours 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...

11 jours 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...

11 jours 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.

11 jours 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...

12 jours 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...

12 jours 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...

12 jours 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 ...

13 jours 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...

14 jours 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...

16 jours 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...

17 jours 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...

17 jours 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 ...

17 jours 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...

17 jours ago | 0

| accepted

Answered
Find groups of duplicate values and preserving order?
The code below is far from optimal, but it should help you out. It assumes there is always an L to load, and you have enough mem...

17 jours ago | 1

| accepted

Answered
Write to file inside a loop
Or a much better practice: if you know the number of iterations you should pre-allocate your output array. saveb1 = zeros(1,k);...

18 jours ago | 1

Answered
How to Slide a 3X3 window across a pixel of the image in matlab.
You can still use the convolution tools: im=randi([0 1], 315, 274); kernel=[1 1 1;1 0 1;1 1 1]; sum_of_8=convn(im,kernel,'sam...

18 jours ago | 2

Answered
How to turn a column of seconds into the datetime-type?
The rowfun function should be usefull here. You can convert seconds to datetime with t = datetime(Y,M,D,H,MI,S) (set the rest of...

18 jours ago | 1

Answered
subplot two different images in two different for loop
You are overwriting your plots. If you step through your code you will see that you first make an k+1 subplot, then increment k ...

21 jours ago | 0

| accepted

Answered
How can I display the value at a point in a figure with mouse (touch screen laptop)
A=randi(127,100,150);A=uint8(A); figure(1),clf(1) imagesc(A) datacursormode on Note that axes interactions changed in R2018b...

22 jours ago | 0

| accepted

Answered
How to match scale of x axes in subplots, so that a given time period occupies same amount of x axis space in each subplot?
You have two options: Set an explicit x-range and set it at the end of your loop with the xlim function. In your current code ...

22 jours ago | 0

| accepted

Answered
colormap only 64 colors?
Your choice of function has a mismatch with what you want. The line below could help, but will stay an approximate: contourf(X,...

24 jours ago | 0

| accepted

Answered
I want to delete all the headerlines and delimiters from the data in the below attached text file
The best solution is probably to read your entire file as text, then remove the header lines, then parse them with textscan.

26 jours ago | 1

| accepted

Load more