Community Profile

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
  • MATLAB Central Treasure Hunt Finisher
  • 36 Month Streak
  • Ace
  • Cody 10th Anniversary 10-Day Streak
  • Promoter
  • 5-Star Galaxy Level 5
  • GitHub Submissions Level 3
  • Draw Letters
  • Community Group Solver
  • Indexing I Master
  • Cody Challenge Master

View badges

Content Feed

Answered
Is Matlab generally faster at computing polynomials or trigonometric functions?
You mean you want to approximate your complicated function with many calls by a single polynomial? If that is possible with your...

2 dagen ago | 0

Answered
Calculations wrong in appdesigner
app.mdot_P33 = 1.2; app.mdot_P3 = 2.4; app.T3 = 315; app.mdot_P4 = 1.2; app.T4 = 316; app.T5 = (app.mdot_P33/app.mdot_P3)*a...

2 dagen ago | 0

Answered
I want to use lookup table(LUT) with two entries i.e. m and error (with respect to m). Later, I want to fetch stored error from LUT by m values. Any one please suggest me ?
You should use the ismember function to do the matching, and you should not use error as a variable name.

4 dagen ago | 0

Answered
Selecting a file to create a plot on MATLAB
You mean like uigetfile and prompt?

7 dagen ago | 0

Answered
Is it possible to implement a GUI in a Matlab script?
For general advice and examples for how to create a GUI (and avoid using GUIDE), have look at this thread. It will show you dif...

7 dagen ago | 0

| accepted

Answered
Sound files with 4 channels in MATLAB
S = load('handel'); new_y = repmat(S.y,1,4); size(new_y) Now you can no longer use the sound function, as that only supports ...

9 dagen ago | 0

| accepted

Answered
How to present this equation for plotting
You need either power or .^ (otherwise you perform a matrix power). So apart from that correction, either will work. I would ...

12 dagen ago | 0

Answered
2012 and 2018 compatibility
It is not completely true that all code that runs without error on R2012a (or b) will run with the same effect on R2018a (or b)....

13 dagen ago | 0

Answered
Why does subtracting '0' from an array of char appear to convert it to a numerical double.
The minus function is not really defined for char, so the operands need to be converted to a datatype that is supported. Since ...

13 dagen ago | 1

| accepted

Answered
Range variables callback issue
I fully agree with Stephen that you should not use global variables. There are more legitimate uses than eval, but not many. ...

13 dagen ago | 0

| accepted

Answered
How to change the symbol size of the legend
This is only possible by increasing the size of the markers themselves in the plot. If you don't want that, you will need to cre...

13 dagen ago | 0

Answered
Copying files based on a text file from a source folder that contains multiple sub-folders to a destination folder
The readlines function will allow you to read a text file (storing each line as an element of a string vector). The functions...

15 dagen ago | 0

Answered
How can I use a user define function (.m file) as the prob.objective
From what I can tell reading the documentation, the easiest way would be to use the <https://www.mathworks.com/help/optim/ug/fcn...

15 dagen ago | 0

Answered
is it possible to create a matlab script directly from gui pushbutton events (kind of like command line history)?
If you don't use numbered variables, you can include an fprintf statement that will write a line to a text file. There is no aut...

15 dagen ago | 0

Answered
Set at least two ticks on log scales in figures
I don't know if this is an acceptable solution for you, but you could query the current tick labels and take action in your code...

16 dagen ago | 1

Answered
how to determine if vector of row times is within timerange?
The timerange datatype is really only intended to be used with timetables. Once you convert your dates to a timetable, you can u...

16 dagen ago | 1

| accepted

Answered
parfor loop output and input are not matched in order
I suspect the source of the problem is the interaction with the file system. You should consider generating a random file name ...

17 dagen ago | 1

| accepted

Answered
Try catch error 'Unrecognized function or variable'
The code in the try block will be executed normally. If any line results in an error, the execution will abort, and the catch bl...

17 dagen ago | 1

Answered
FFT of EEG data
Are you sure your file is in the format this function expects? This is a good lesson for your own code: make sure to write docu...

20 dagen ago | 0

| accepted

Submitted


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

21 dagen ago | 14 downloads |

Thumbnail

Answered
how can I find distance between one base station and all the users separately?
You can use the hypot function to calculate the Pythagorean distance. Check the documentation to see if it allows array inputs. ...

22 dagen ago | 0

| accepted

Answered
I am currently a college student.
That is correct. You are no longer allowed to use the student license if you are no longer a student. If you become a student ag...

27 dagen ago | 0

Answered
run matlab online platform
Perhaps you mean Matlab Online?

28 dagen ago | 0

Answered
vpasolve all solutions?
There might be a direct way, but at the very least there is a workaround: Since you can specify an initial estimate, you can ...

29 dagen ago | 0

Answered
How to solve numerically and find the smallest value?
You can supply an initial estimate or a search range to vpasolve, as its documentation explains: syms v L0 x x=2; A=sqrt(2)*x...

ongeveer een maand ago | 0

| accepted

Answered
gunzip(url) function not downloading archived file properly.
The file itself is not publicly available without a login, and that is what matters. Using websave will not help, nor will using...

ongeveer een maand ago | 0

Answered
How to generate a random number from a matris
If you want to select a number randomly from Y, you can use randi directly to index: Y=randi([0,300],[1,500]); RandomScalar=Y(...

ongeveer een maand ago | 0

Answered
Undefined function or command newff
The newff function did indeed exist (in the Neural Network Toolbox). According to this answer it became obsolete in 2010, altho...

ongeveer een maand ago | 0

Answered
regexprep: Nested ordinal token not captured
I'm not entirely sure tokens can be nested (at least in the implementation that Matlab uses). You can also explore the output o...

ongeveer een maand ago | 1

| accepted

Answered
Difference between CloseRequestFcn and DeleteFcn?
Summarizing what has been mentioned in comments so far: CloseRequestFcn The CloseRequestFcn responds to any calls to the close...

ongeveer een maand ago | 1

| accepted

Load more