Community Profile

photo

Rik


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

  • MATLAB Central Treasure Hunt Finisher
  • 36 Month Streak
  • Ace
  • Revival Level 3
  • Draw Letters
  • Community Group Solver
  • Indexing I Master
  • 5-Star Galaxy Level 5
  • GitHub Submissions Level 3
  • Personal Best Downloads Level 3
  • Cody Challenge Master
  • Introduction to MATLAB Master
  • Speed Demon
  • Leader
  • Commenter

View all

Contributions in
View by

Answered
issue when creating and saving file to specific folder
You shouldn't use cd outside of debugging. In general using a full path is a much better idea with better performance. The ca...

1 day ago | 1

Answered
Why do I get a wrong answer when I use FIND function in this case?
When you subindex a variable before using find, it will return the indices relative to that subindexed variable. This is because...

1 day ago | 1

| accepted

Answered
why do ı receive the error "data must be numeric, datetime, duration, or an array convertible to double". How can I fix it?
Extent is still a symbolic by the time you try to plot it. You need to convert it to a double. Since you omitted the definition ...

2 days ago | 0

Answered
Record every 12 values in a loop
Using a cell as an intermediate step is generally not efficient, but it tend to be easy to work with. With that in mind: you ca...

2 days ago | 0

Answered
using parts of matrix with different sub-vectors (Matlab)
Shouldn't something like this work? Hc = H((T*(ess-1))+1:end,((N*2)*(ess-1)+1:N);

2 days ago | 0

| accepted

Answered
Create a new array over each iteration
The code below gives you what you want. The only difference is that you need to write my_data{1} instead of my_data1. [~,~,data...

4 days ago | 1

| accepted

Answered
if statement with ge and &
You should write this instead: if j >= 2 && cANALY(i+1,j-1) < 0

5 days ago | 0

Answered
Using strfind or regexp in cell
Your intuition that you can use a regular expression is correct: data={... 'METAR ESSA 202008010020Z 28003KT CAVOK 10/09 Q...

7 days ago | 0

| accepted

Submitted


BlandAltmanPlot
Create a Bland-Altman plot and return a struct with results and handles.

7 days ago | 29 downloads |

Thumbnail

Answered
How can i solve function with an dependent variable?
Below I show the structure of a possible solution. The rest is up to you. Feel free to comment if you have a specific question. ...

8 days ago | 0

| accepted

Answered
How to name variable with file name?
You shouldn't do that. If you give all the same name, you will get a struct array when you load everything. for file=1:3 m...

8 days ago | 2

| accepted

Answered
Problem with fitting an experimental curve
Your function doesn't fit the data well. You should probably consider using an offset term as well. S=load(websave('data.mat','...

9 days ago | 0

| accepted

Answered
How to draw ROI on MRI images ?
drawpolygon should do the trick. Then createMask will get you a binary mask which you can use for further analyses.

9 days ago | 0

Answered
counting number of times a string appears and graph in histogram
The count function is doing exactly what you ask it to: you provide it with an array, it returns an array with 1 fewer dimension...

9 days ago | 0

Answered
Run Python outside of Matlab
In such cases I tend to write .bat files and start them: system(['start "" "' fn '"']); %The first "" is required, because oth...

10 days ago | 0

| accepted

Answered
sum of multiples of 3 from 0 to 100
If I was your teacher I would just tell you to use a loop, leaving you to decide what you aren't allowed to do. In this case ...

13 days ago | 0

Answered
Oscillation about one point
It might be enough to use mean on the second half of your vector. Sometimes a simple solution will already do the trick. The ...

13 days ago | 0

Answered
when we call for boxplot function, is there any setting to avoid that such function that evaluates outliers, so that the red crosses will be considered part of the distributi
Have you read the documentation? I expect setting Whisker to inf should do it. And indeed it does: boxplot([5;randn(100,1)],'W...

14 days ago | 2

| accepted

Answered
repeat values within array
You can edit your code using a cell array for the long way round: X=[0.5;0.5;0.6;0.6]; Y=[0.6;0.7;0.6;0.7]; dx=0.05; dy=0.05...

14 days ago | 0

Answered
How to get the user's installation path in my app designer?
If you want more control over where your persistent files are stored, I would suggest the GetWritableFolder. This will generate...

16 days ago | 0

Answered
applying for loop on variables
You know how to do indexing, so why did you make the decision to store data in a variable name? for k=1:3 rho_r{k}(1)=sqrt...

16 days ago | 0

Answered
Operator '*' is not supported for operands of type 'struct'.
You are using an output for the load function (which you should), but that means Matlab will load the data to a struct. I'm gues...

17 days ago | 0

Answered
sorting an string cell
You can use sortrows directly, or use code like this: [~,order]=sort(population(:,1)); population=population(order);

17 days ago | 0

Answered
License Manager Error -8. License checkout failed. Encryption code in license file is inconsistent.
The official reason is explained here. The unofficial reason might be that you're attempting to use a cracked version and your ...

17 days ago | 0

| accepted

Answered
Invalid expression. When calling a function or indexing a variable
Matlab variable names must start with a letter and may contain only letters, numbers, and underscores. Anything not fitting that...

17 days ago | 0

| accepted

Answered
fiting issue at certain value
You can either adjust your fitting function itself, or simply adjust the output: max(1,[ 1 0.98 1.02 1.1 1.3 ])

17 days ago | 0

| accepted

Answered
Hello everyone. How to make a matrix with unequal number of rows and columns, and make the number of rows and columns the same by adding zeros. Thank you very much.
This isn't too difficult, as Matlab automatically fills an array with zeros as it is expanded. S=load(websave('dataA.mat','http...

18 days ago | 0

| accepted

Answered
Getting Windows to open a file type using a MATLAB application
You should be able to compile your function and use the 'open with' dialog in Windows to assign it to your exe. If you let your...

21 days ago | 1

Answered
Control random number generation
Slightly depending on what you mean: yes. The random number generation has a global state, so it doesn't matter if the call i...

21 days ago | 0

| accepted

Answered
Error using bar when plotting from variables
bar([x, y1, w1, 'FaceColor',[0.2 0.2 0.5]]) % ^ ^ Those brackets are incorrect.

23 days ago | 0

Load more