Community Profile

photo

Rik


1,550 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.

담당자

Rik's 배지

  • Personal Best Downloads Level 2
  • Editor's Pick
  • First Review
  • 5-Star Galaxy Level 4
  • First Submission
  • 24 Month Streak
  • Revival Level 3
  • Guiding Light
  • Thankful Level 2
  • Knowledgeable Level 4
  • First Answer
  • Solver

세부 정보 보기...

참여 게시물
보기 기준

답변 있음
No jump in in if-query even though if-statement is true
Not all decimal numbers can be stored in binary as an exact value. This float rounding error can lead to situations like this. Y...

약 3시간 전 | 0

| 수락됨

답변 있음
fprintf help wont show full statement
Simply pasting what you posted into my copy of Matlab gives a hint about the cause: I get a warning from m-lint (the orange squ...

12일 전 | 1

답변 있음
How to open several GUIs one at a time in a matlab script?
As long as your GUI functions return a handle to the figure, you can use the <https://www.mathworks.com/help/matlab/ref/uiwait.h...

12일 전 | 0

| 수락됨

답변 있음
How can I search a cell array for all instances of a character and replace it with something else?
From your description, I suspect the simple fact that it is an asterisk doesn't actually matter. The code below will find all ce...

13일 전 | 0

답변 있음
Creating a function to return a string into upper and lower case
Matlab did exactly what you asked: you wrote a function with an input, but without an output. I you open this in the Matlab edit...

14일 전 | 1

| 수락됨

답변 있음
Can't connect all the dots with a line
Store the ratio in an array: %rest of your code ratio=zeros(size(b)); for i=length(b) %rest of your code ratio(i) =...

14일 전 | 0

| 수락됨

답변 있음
plotting the points near to origin
Your data doesn't seem to fit your plots. The code below should give you an idea of how you could do this. You could also define...

14일 전 | 0

| 수락됨

답변 있음
how do I find the index of all values which meet a condition within an array ?
With the find function you can look up the linear indices of all non-zero elements in an array. (you can also look up row and co...

15일 전 | 0

| 수락됨

답변 있음
How to store an image into cell arrays in a loop?
You forgot to call your function: %% Part 3 %Write function %Iterate Gaussian filtering and then subsampling 5 times for Gaus...

16일 전 | 1

답변 있음
Daily 3d array to monthly- dealing with alternate days in a month and leap years - How to do it?
You don't have another option than just hardcoding the number of days in a month. You can do this in a fancy way using the date ...

17일 전 | 1

| 수락됨

답변 있음
i split the image pixels into many small matrices
The blockproc function works on distinct blocks. If you want a sliding window operation you need to use a function like nlfilter...

20일 전 | 0

| 수락됨

답변 있음
calculating percentage change function
You should use = for an assignment and == for a comparison. Another point is that you don't need a conditional for an else, only...

21일 전 | 0

답변 있음
Manage and produce subplots
It is not too dificult to keep track of you p in a loop: p=0; for n=1:9 p=p+1;%(p=n; would also work for this example) ...

21일 전 | 1

답변 있음
concat images in order
folder= '/home/user/PycharmProjects/2.5dataconversion/images/patient_1' dest = '/home/user/PycharmProjects/2.5dataconversion/im...

22일 전 | 0

답변 있음
I'm trying to write a program that types out a line with n integers starting with n0 , separated by commas and spaces. It needs to use a forloop and should turn out like this n=10 n0=5 --> 5, 6, 7, 8, 9, 10, 11, 12, 13, 14. This is what I have so far
Since this is a homework assignment, I will leave some blanks for you to fill in. n=10;n0=5; clc%clear command window for k...

23일 전 | 0

| 수락됨

답변 있음
Parallel for loop in loading files
Removing clear all from your code and loading to a struct (instead of poofing variables into existence) should allow you to repl...

24일 전 | 0

답변 있음
Distance between ALL(all combinations) points of matrix
Note that you are not calculating only unique combinations. The reason you are only getting a single value is that you are not i...

24일 전 | 0

| 수락됨

답변 있음
how to convert a 3-d binary array of spherical cordinates into floating type array of cartesian cordinates
If you get my findND function from the FEX you can do this: %find 3D indices in M [r,c,p]=findND(M); %create lookup tables ...

27일 전 | 0

| 수락됨

답변 있음
b=abs([b;a(i)-a(i+1)]); error
Your loop goes up to 27, and inside the loop you look at i+1. You should let your loop go to |numel(a)-1| instead of 27.

27일 전 | 0

답변 있음
Why is matlab giving me a a very small number when the answer should be EXACTLY zero?
Because not all numbers can be stored as an exact binary number, some calculations will have rounding errors. %exagerated examp...

28일 전 | 1

답변 있음
Find and count how many capital characters are in str, and then change them to lower cases USING LOOPS
You can easily do this without loops: s = 'This is my String with CapiTal LETTERS in it. Let''s change them to lowercase uSiNg ...

28일 전 | 0

답변 있음
blockproc applied to ROI images
Using a nested function will allow you to share variables without having to resort to evalin. As for your actual problem: you co...

29일 전 | 0

답변 있음
Precise Matrix Power: A^k
It will probably be helpfull to use the Symbolic Math Toolbox, and use the tips explained here. For mod(a^b,k) there is a direct...

29일 전 | 0

| 수락됨

답변 있음
how to extract data after squeeze the matrix?
Something like this is probably what you're looking for, although it makes it more difficult to compare the same pixel over all ...

29일 전 | 0

| 수락됨

답변 있음
Return a vector with the same size as the indexing matrix/vector (code optimization)
I would have expected Matlab to have consistent behavior, but before now I hadn't bothered to look it up in the documentation. Y...

29일 전 | 1

| 수락됨

답변 있음
off figure in matlab
You need to define a group array if you want to use the off switch. The <https://www.mathworks.com/help/stats/anova1.html docume...

약 1달 전 | 0

| 수락됨

답변 있음
Error message: Brace indexing is not supported for variables of this type.
The uigetfile function only returns a cell array if the user actually selects multiple files. The person writing the code should...

약 1달 전 | 0

| 수락됨

답변 있음
WTH happened to "hold on all" in 2019b
Nowhere in the documentation could I find any mention of hold on all being a valid syntax. Before R2014b on and all had a differ...

약 1달 전 | 1

답변 있음
From a set of curves, how to find the one that the "most similar" to the reference curve?
Apart from all the 'boring' strategies of using tried and tested goodness-of-fit parameters (many of which are implemented in ba...

약 1달 전 | 0

답변 있음
Image Processing Averaging Filter
This should show you one of the multiple way to do this. %clc;clear all;%you aren't printing anything to the command window, no...

약 1달 전 | 0

Load more