photo

Rik


Last seen: Today|Active 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.

Statistics

All
  • Treasure Hunt Participant
  • 米ATLAB Central Treasure Hunt Finisher
  • 36 Month Streak
  • Ace
  • Draw Letters
  • Community Group Solver
  • 5-Star Galaxy Level 4
  • GitHub Submissions Level 3
  • Indexing I Master
  • 科迪Challenge Master
  • Introduction to MATLAB Master
  • Speed Demon

View badges

Content Feed

Answered
Passing multiple function handles to fminimax
You will have to create a wrapper that calls the functions in your cell array and returns the result as a vector. Something l...

ongeveer 6 uur ago | 1

Answered
Plot with dot notation as an updating variable
You painted yourself in a corner when you decided to store data in variable names. However, you can still use your mat files. Yo...

2 dagen ago | 0

|accepted

Answered
matlab coding how to do this?
doc input doc if

3 dagen ago | 0

Answered
Problem in calculating 30th percentile
Write a function that calculates the 30th percentile for a vector. Then provide the handle to that function to splitapply. Th...

6 dagen ago | 0

|accepted

Answered
On the app designer, how can i log data in real time to a .mat/.txt file
This sounds like you could solve it by using one of the append flags when using fopen. Then you can fprintf what you need to wri...

8 dagen ago | 0

Answered
Loading multiple data folders and call them in a For Loop
Your mistake was in your naming of the variables. If you can guarantee they are always integers, you can do something like this ...

8 dagen ago | 0

Answered
find, change and plot a txt file
Break it up into tasks you either know how to do, or for which you can google a solution. So first: how can you read a text fil...

8 dagen ago | 0

Answered
How can I change the upper case letters in a string to lowercase while also changing the lowercase letters to uppercase?
No need for a loop. There are three 'types' of characters that are potentially in your string: Upper case characters Lower ca...

8 dagen ago | 0

Answered
How to change format time to GPS week, GPS seconds?
The start date of this GPS epoch is probably on Wikipedia. You can simply subtract that date from your date. Then you calculate...

8 dagen ago | 0

|accepted

Answered
Bunch of Errors with Matlab GUI
GUIDE is infamous form auto-generating a lot of bloat. Let's first remove all that (and the init function, since that is the sam...

9 dagen ago | 0

Answered
米arker edges, line width and legend
Or you use a line object without any points to get the legend entry you want: xx=linspace(0,12); plot(xx,sin(xx),'LineStyle','...

10 dagen ago | 0

|accepted

Answered
Can I use a variable name to make logical comparison?
You could use the string datatype (as Chunru suggested), or use a cellstr (a cell array of char vectors): %month = input('Enter...

12 dagen ago | 1

Answered
(Need Help) Is fmincon command available for the embedded coder?
有一个部分的底部documentation page of fmincon that lists limitations for code generation. This section ...

13 dagen ago | 0

|accepted

Answered
Load and display bitmap file using Fread
You should reshape the data, not the fid. To remove the first 54 bytes you can use fseek, or just skip it from your array: ...

14 dagen ago | 0

Answered
How to get rid of green marker/arrow?
This looks like the pointer that indicates where your code execution has paused so you can step through the code. If so, you sho...

14 dagen ago | 1

|accepted

Answered
How to plot audiofiles in Vertically
There is no VerticalAlignment property for uicontrol objects (neither in R2018a or R2021b). A center alignment is the default. F...

18 dagen ago | 0

Answered
reading the data with title
Any Google search for 'read text file matlab' should provide you with an answer that works. What I personally use is my readfile...

18 dagen ago | 0

Answered
New to matlab. Why i get this answer?
syms y(t) yef(t); ymax=120*0.40680; yef(t)= 0.95*(1/(1+(y(t)/ymax)*y(t)+(1-(1/(1+(y(t)/ymax))*ymax)))); yo=0.40680*140; k10=...

19 dagen ago | 0

|accepted

Answered
Deleting certain elements from an array without looping
The code Chunru wrote will work, but I have a few suggestions. Instead of using length, you should consider using numel as a ha...

19 dagen ago | 1

Answered
overlay bar plot without mixing color
Here is my solution, which allows you to specify the 3 face colors separately: A = [1;5;3;7;4]; B = [3;2;4;8;2]; shared=min(A...

19 dagen ago | 1

|accepted

Answered
How do you create an array of date times given a starting date and number of days?
Vector1=1:5; Datetimevector = datetime(1900,1,1)+days(1:numel(Vector1))

22 dagen ago | 0

|accepted

Answered
How to view a mat file that says preview too large to display Properly in Import Wizard
垫是一个文件,而不是一个变量。它可能帐目in variables. Judging from your description it only contains a single variable...

23 dagen ago | 0

|accepted

Answered
I not able to understand what type error I am making in the while loop
You aren't updating the value itself, so the calculation is the exact same on every iteration. function out = babyloniansqrt(S,...

23 dagen ago | 0

Answered
Looking for alternative of extractBetween function
You need to come up with a regular expression that will exactly match what you want to extract. Below is my guess for what you w...

23 dagen ago | 1

|accepted

Answered
What frustrates you about MATLAB? #2
Posted by @stephen williams on the original thread: The symbolic toolbox seems to have a lot of power, but it is not user frien...

24 dagen ago | 1

Answered
What frustrates you about MATLAB? #2
Posted by @Osmar Tormena Júnior on the original thread: I understand that being a Mac user I'm in a niche position. But I find ...

24 dagen ago | 0

Answered
How to create an interactive menu in the command window?
doc input Although in general a GUI will be nicer for your user. For general advice and examples for how to create a GUI (a...

28 dagen ago | 0

Answered
Creating a new table column that is the range of numbersbetween two other column
You can either use a loop, or hide the loop with rowfun: data=[54 119 60 129 177 119 183 129 ...

ongeveer een maand ago | 0

Answered
How to increase the efficiency of this MATLAB program by using vectorization techniques
Arrayfun will only hide the loop, so it will never be faster than a plain for loop. What you need to do is change your function...

ongeveer een maand ago | 0

|accepted

Answered
c++ programming.
You forgot two things: This is a Matlab forum and nothing in your question is related to Matlab Every line should end with a s...

ongeveer een maand ago | 0

Load more