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
How to call the function BlandAltman as an array
You can use my BlandAltmanPlot function and use the GroupIndex paramater to plot several point on a single graph. var1=[494,395...

ungefär 8 timmar ago | 0

Answered
how can I plot a graph over an image in Matlab?
You need to use the same axes. The easiest solution is to use hold, probably the line below will already do what you need: hold...

2 dagar ago | 1

Answered
Accessing cell array contents
No. You could use cellfun, but that will only hide the loop. Using a loop directly tends to have better efficiency. But don't w...

2 dagar ago | 1

| accepted

Answered
Can we read dicom files without extension using the dicomread function?
Store the read images in a 3D array. That way you will have the entire volume in one variable, allowing you to do further proces...

4 dagar ago | 1

| accepted

Answered
My Matlab code (the same one) is running extremely slow on a fairly new and powerful PC and is running fast (10x times faster) on my weaker laptops
I started to write this as a comment, but I realized this makes more sense as an answer. These are the general trends for newer...

4 dagar ago | 1

Answered
why I get the error "function 'lsqcurvefit' not supported for code generation" when using Matlab Coder?
Your code may be simple, but the code inside lsqcurvefit apparently is not. There are a lot of things happening in that function...

5 dagar ago | 0

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

9 dagar 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...

10 dagar 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...

11 dagar ago | 0

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

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

15 dagar 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...

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

20 dagar 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...

20 dagar 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...

20 dagar 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...

23 dagar 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...

25 dagar 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)

29 dagar 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...

29 dagar 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=...

29 dagar 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,...

ungefär en månad 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)

ungefär en månad 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,...

ungefär en månad 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...

ungefär en månad 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...

ungefär 2 månader 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...

ungefär 2 månader 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...

ungefär 2 månader 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...

ungefär 2 månader 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...

ungefär 2 månader 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, ...

ungefär 2 månader ago | 0

Load more