Community Profile

photo

Rik


Last seen: Today
2,093 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

  • 36 Month Streak
  • GitHub Submissions Level 3
  • Ace
  • Personal Best Downloads Level 3
  • Editor's Pick
  • First Review
  • 5-Star Galaxy Level 4
  • First Submission
  • Revival Level 3
  • Thankful Level 2
  • Knowledgeable Level 4
  • First Answer
  • Solver

View details...

Contributions in
View by

Answered
How to plot a line graph (x,y) with a color bar representing z-axis...
You can use plot, colorbar, colormap, and caxis. You can adjust the line color by setting the Color property of the line object ...

2 days ago | 1

Answered
Load sequential numbered files in MatLab on the same script in different subfolders
Use mydata_folder{1} instead of mydata_folder1. That way you can use a simple loop instead of having to generate the variable na...

3 days ago | 0

Answered
Making An Output Display Twice What the Input Was
You need to make sure you receive the input as a numeric data type, or you need to convert the string input to a double (that is...

3 days ago | 0

Answered
X Bar doesn't show all labels
I don't really see why, but if you check get(gca,'XTick') you will notice that only the 1 and 2 have ticks in the first place. ...

4 days ago | 0

| accepted

Answered
How to selectively save the names and values of some workspace variables to a CSV file?
This should do the trick. If the variables aren't scalars the results might not be what you want. a = 3; b=7; c=5; d=9; sav...

5 days ago | 1

| accepted

Answered
R2018b (MATLAB 9.5)
With external link, do you mean a pirated link? Because I don't think anyone will help you here. Do you have valid license? If ...

6 days ago | 1

| accepted

Answered
Count characters per row
Trivial if you read your file to a cell array (e.g. with readfile, which you can get from the FEX or through the AddOn-manager (...

6 days ago | 0

| accepted

Answered
Remove line from text file if in the first column there is a certain character
Split the lines to cells and use a loop (or cellfun) to remove all elements where strcmp(contents(1),'$') is true. Then you can ...

6 days ago | 0

| accepted

Answered
Why is latlon2local giving a error saying that it is undefined?
The latlon2local function was only introduced in R2020a, as the documentation clearly states. You will have to implement it your...

9 days ago | 0

| accepted

Answered
Suggestions for Input type from user
Your first problem can be avoided by using digit{1}(i) instead, since the numbers 1-9 don't change between values. Then you wil...

10 days ago | 0

| accepted

Answered
Problem with the code
You should check the rest of the file, because this is not the part of your code that will trigger that issue. There are some th...

11 days ago | 1

Answered
Unable to perform assignment because the size of the left side is 1-by-1 and the size of the right side is 1-by-0.
This should do the trick: %your inital code: d = 1:10; dref = [3 5 7]; A = repmat(d, length(d),1); B = zeros(length(d),leng...

11 days ago | 0

| accepted

Answered
Sending ascii characters through system or dos command
If you don't find a real solution: you can write the command to a bat file and run that instead. You can use the > symbol to red...

11 days ago | 0

Answered
Find string in the special file
If notepad can open it and you see plain text, why do conclude it is not a text file? Even if there are some special characters ...

13 days ago | 0

Answered
How can I add a text with the statistical test name I conducted in a boxplot?
You probably need something like annotation. You could also use a more basic text object.

13 days ago | 0

| accepted

Answered
Is it possible to put a compiled standalone executable on a datastick?
You have several options (feel free to add options if you have editing privileges, otherwise post a comment): Compile to a stan...

13 days ago | 1

| accepted

Answered
MATLAB code to find the frequency of each element in some alloys
You can you the histogram related function histcounts to count occurences. You just need to split the alloy name in the constitu...

13 days ago | 0

| accepted

Answered
looping based on filename-length
You can use strsplit to split the file name in the chunks, as they seem to be delimited by points. Then you can select the appro...

13 days ago | 0

| accepted

Answered
matlab standalone does NOT exit when run in Windows cmd
That documentation seems strange to me from a Windows standpoint. Unless you spawn a process by using the batch command start a ...

13 days ago | 0

Submitted


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

15 days ago | 3 downloads |

Thumbnail

Submitted


readfile
read any (text) file, either UTF8 or ANSI

15 days ago | 11 downloads |

Thumbnail

Submitted


getUTC
get the current time in UTC

15 days ago | 2 downloads |

Answered
Modify a text file
You can get my readfile function from the FEX or through the AddOn-manager (R2017a or later). data=readfile(filename); HeaderL...

17 days ago | 1

| accepted

Answered
Filling a matrix using vectorization
The problem is that this: A([1 2],[1 3]) returns 4 positions, not two. If you want two instead, you will need to convert subin...

17 days ago | 2

| accepted

Answered
State button callback- break while loop?
In general the solution to this is to use a flag that is controlled by your button. Then inside the while loop you check for tha...

17 days ago | 0

| accepted

Answered
Store values generate in a function call in an array
Instead of using a cell array, you can also use a 3D matrix: [~,~,~,spheresXYZ]=createspheres(0,0,0);spheresXYZ(1,1,SizeXYZ)=0;...

17 days ago | 0

Answered
Look for minimum value in array
Loops aren't slow. You generally only need to remove them if there are native functions that accept array inputs, which happens ...

18 days ago | 0

| accepted

Answered
How to create randomly distributed triangles
Slightly editing your code gets me to a max framerate of just under 200. Results will vary for different systems. w = 3 ; ar=0...

18 days ago | 0

| accepted

Answered
请问学生版的matlab可以在两台不同的电脑上安装吗?
Yes, but you have two buy two licenses. Technically it is possible to deactivate the license on one computer and activate it on...

19 days ago | 0

Load more