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
  • Draw Letters
  • Community Group Solver
  • 5-Star Galaxy Level 5
  • GitHub Submissions Level 3
  • Indexing I Master
  • Cody Challenge Master
  • Introduction to MATLAB Master
  • Speed Demon

View badges

Content Feed

Answered
Matlab window/frame in different colors?
This touches on the call for a proper dark mode that is getting stronger and stronger. To my knowledge there are no such tool...

1 dag ago | 0

Answered
error in LINE 1 " function varargout = Final_gui(varargin) " ,while converting the code to C ,how do i fix it
Unfortunately you can't convert a GUI to C with coder. There are just too many elements that aren't supported. You can packag...

2 dagen ago | 0

Answered
I have a matrix 592*2 from this I got a curve, now I need to calculate full width half maximum , how to do it?
# Find the maximum value and its x-value # use find() to find the first time the y is above 0.5*max # use find() on the secon...

3 dagen ago | 0

Answered
update one plot in appdesigner
This code should work, once you fix the creation of the vector: 20:-1:1.

5 dagen ago | 0

| accepted

Answered
How to convert R code in Matlab
Unfortunately, no. It is not possible to convert R code automagically to Matlab code. What you can do is call the R code from M...

8 dagen ago | 0

Answered
Methods to create arrays of NaN
In very old releases (prior to v7 (R14)) it was not possible to create arrays with NaN and inf. In those releases you had to use...

10 dagen ago | 0

Answered
Assign two variables to a SQL Query
I suspect you're missing a space before 'WHERE'. I can recommend using sprintf to avoid such errors.

12 dagen ago | 0

| accepted

Answered
Create a function for set name, user, password for sql database
Why don't you use a variable that contains the password? Or a function that returns the password as a char array? That way you o...

12 dagen ago | 1

| accepted

Answered
How to save fprint as a string in .mat file
If you want to store the text output you should use sprintf to create the formated text. Then you can use fprintf to print to th...

12 dagen ago | 0

Answered
Install MatLab on a computer with a 64-bit operating system, ARM-based processor
If your hardware happens to a Raspberry Pi: I know there are things you can do with Simulink to deploy code to a Pi. I have neve...

15 dagen ago | 0

Answered
Deleting Rows in Text File and Assigning them to a New Text
Read the text file with readlines (or my readfile function). Then you can use contains to determine which line contains the tex...

17 dagen ago | 0

| accepted

Answered
Concatenate/ Merge two HEX Cell Array
You need to use vertcat instead, or use the semicolon. a={'01';'02';'03'} b={'04';'05'} c=[a;b] vertcat(a,b)

21 dagen ago | 0

| accepted

Answered
Can we use multiple version of Matlab in same system. Ex: 2020b and 2022a together in one system
If you mean your operating system with the term system; absolutely. I currently have several releases of Matlab installed. It i...

22 dagen ago | 1

| accepted

Answered
Forward optional args to another function
This is a terrible cludge. There must be a better way. If you don't find it, feel free to use this. It uses the fact that the x=...

22 dagen ago | 0

Answered
Save for loop outputs into structure
You should probably use a struct array: allBIN(n).corr= ___ %etc But if you insist: field names must be valid variable names,...

25 dagen ago | 0

| accepted

Answered
Converting string to function/number
The way to avoid eval in this case is to use str2func: f=str2func('cos'); f(pi)

29 dagen ago | 1

Answered
How to concatenate 5x2 array output from my function?
This should already get you most of the way there: i = 0.5; for n = 1:100 Currents{n} = Dunn(mvs10, mvs30, mvs60, mvs100,...

ongeveer een maand ago | 0

| accepted

Answered
Is there any plugin that allows automatic tracking of history of all workspace variables?
Below is my initial implementation of what you need. There are a lot of adaptations still to be made. It implements both a vecto...

ongeveer een maand ago | 0

| accepted

Answered
is it possible to convert a python code to a matlab code ?, and if it is how?
The answer depends on the exact code. There is no automated conversion system that will work for all code (limited ones may exis...

ongeveer een maand ago | 0

Answered
Image usage from guide
There is a copyright notice at the bottom of the page. So unless otherwise stated elsewhere, you're not allowed to use this exac...

ongeveer een maand ago | 1

| accepted

Answered
is Dell 5580 core i5 2.80GHz 16GB 512GB SSD Intel HD Graphics 620 can run matlab 2021?
It seems to satisfy the minimum requirements mentioned on the <https://www.mathworks.com/support/requirements/matlab-system-requ...

ongeveer een maand ago | 0

Answered
Error using plot Invalid subscript for Y.
Let's generate some data and try my suggestion of casting to double: %generate data FO2_Odometer=rand(10,1);Caliper1=rand(10,1...

ongeveer 2 maanden ago | 0

| accepted

Answered
Need ideas on how to extract a 30s portion of a wav file and save as a new file
Have you already found a way to read a single wav file? If not, audioread should do what you want. Remember that the second o...

ongeveer 2 maanden ago | 0

Answered
Display mutiple lines in Text area in Matlab App designer
You are replacing the text every iteration. What you need to do is concatenate them. Start with an empty line before the loop, ...

ongeveer 2 maanden ago | 0

Answered
Convert existing MATLAB script into GUI using app designer
The first step is to convert your code to a function. Then you can design your GUI to gather the necessary inputs for that funct...

ongeveer 2 maanden ago | 0

Answered
convert current date and time to char
datestr(now-6/24,31) datestr(now_UTC-6/24,31) If you want to force the use of UTC+0 as the timezone (as your Z seems to sugges...

ongeveer 2 maanden ago | 1

| accepted

Answered
How to Store emojis when used as an input to text field in App Designer.
Encoding is very important here. CSV files are simply plain text files. That means you need to make sure the encoding allows uni...

ongeveer 2 maanden ago | 0

| accepted

Answered
Computing Euclidean distance between 2 points
By doing a matrix multiplication on a vector, you implicitly take the sum over all elements. Note that this will only work if b...

ongeveer 2 maanden ago | 1

| accepted

Answered
Multiplying each cell in an array by a column vector
You should use a loop. That makes it a lot easier to write the indexing you need, and it will be faster. Matrix operations are ...

ongeveer 2 maanden ago | 0

| accepted

Answered
how to count the number of lines of an external txt file
The problem with your question is that it lacks a definition of line. If your file ends with char(10) or char(13) does that sign...

ongeveer 2 maanden ago | 0

Load more