Community Profile

photo

Jan


Last seen: Today Active since 2009

It is easier to solve a problem than to guess, what the problem is. Questions about FileExchange submissions are welcome - get my address from the code. I do not answer mails concerning questions in the forum.

Statistics

All
  • Most Accepted 2021
  • Grand Master
  • Promoter
  • Commenter
  • Explorer
  • Personal Best Downloads Level 4
  • Editor's Pick
  • First Review
  • 5-Star Galaxy Level 5
  • First Submission
  • Revival Level 4
  • 36 Month Streak

View badges

Content Feed

Answered
PARFOR in real applications
After trying many examples from many questions in the forum, I've found: https://www.mathworks.com/matlabcentral/answers/172017...

alrededor de 1 hora ago | 0

Answered
Perform specific operations on arrays without "for" loop
You do not want less for loops, but more: Accesing the RAM is slower than using the CPU cache: function [chi,zeta,M,O,Delta,rho...

alrededor de 1 hora ago | 0

Answered
I would like to know how I can find out how long a certain event lasts.
data = [ ... 0.019 0 0.04 0.45371 0.057 0 0.076 0.15127 0.092 0.22037 0.107 0.2317 0.1...

alrededor de 21 horas ago | 0

| accepted

Answered
what is this eror and what does it mean and how can i solve it ?
it says here that ('loop index 'i' is changed inside of a FOR loop) Yes, and this is the clear explanation already. Do not chan...

2 días ago | 0

Answered
How can I add an extra dimension to make the array 2D to 3D?
Reduce the clutter: name = ''; if idx < 10 name = strcat('0',int2str(idx),'.mat'); load(name); else name = str...

3 días ago | 1

| accepted

Answered
Trying to use central difference scheme to solve logistic equation
Your code is no valid Matlab code. I suggest to learn the basics from: https://www.mathworks.com/learn/tutorials/matlab-onramp.h...

3 días ago | 0

| accepted

Answered
using matlab compiler to read a .mat file at run time
Consider, that pwd is fragile. Any subfunction might change the current directory. See here for a method to get the location o...

3 días ago | 0

Answered
How can I write a fraction inside string?
What exactly is the problem? I've simply copied the string provided in the question, inserted a linebreak \n to let the comnplet...

3 días ago | 0

Answered
where can i get original Matlab code of an algorithm published in a research paper?
Ask the author of the paper. Sometimes they provide the code. Don't be surprised, if the code does not run on your computer. I'...

3 días ago | 0

Answered
How to set even spacing between preset tick marks
What do you exactly want as output? Beside the possibility to do this in Matlab, think twice if the person can understand the o...

3 días ago | 0

Answered
Out of memory error message when attempting to plot in 3D
function dxdt = g(t,f) dxdt=g(t,f) ... end This function calls itself recursively. Of course this let Matlab crash. What is ...

3 días ago | 0

| accepted

Answered
Un smoothing set of saved data
No. Smoothing destroys the signal of the noise. You cannot reconstruct it.

3 días ago | 0

| accepted

Answered
Weird behavior of ODE45?
It is still not clear, what this means: "the initial condition 'uF' wasn't updated correctly" When I run your code, I do see th...

4 días ago | 0

| accepted

Answered
How to set axes in a figure without displaying the figure
axes(ax1) activates the already created axes with the handle ax1. [EDITED] And it enables the visibility of the figure automatic...

4 días ago | 0

Answered
problem in my programme
I guess, the problem is hidden here: function f=costf(a,b,c,x) ... f=sum(a.*x.^2+b.*x+c) ... out=fx+sum(penalty,2);...

5 días ago | 0

Answered
how do i resolve this ode45 problem
Your expression contains unbalances parentheses: Vof=@(t) Vo(1+ceil(t.*fo.*(length(t)-1)); 4 opening ( but only 3 closing ). ...

5 días ago | 0

Answered
What is the difference between .m and .M?
Under Windows, files are not case-sensitive in general, but under Linux and MacOS they are. For code without dependencies on the...

5 días ago | 0

Answered
How to define a specific limit coordinates in the figure?
The limits are no property of the figure, but of the axes. Simply set fixed limits, e.g. here: set(handles.axes1,'XGrid','on','...

5 días ago | 0

| accepted

Answered
Asking the user to enter the extension of the files and load all of them in the current directory
Folder = 'C:\Users\Kumsa\Desktop\OCM_MAT'; List = dir(fullfile(Folder, '*.*')); [~, ~, AllExt] = fileparts({List.name}); Al...

5 días ago | 0

Answered
How can I find a specific toolbox
You can download the code from an internet archive: Start at https://archive.org/web/ Then type in the dead web address I've p...

6 días ago | 0

Answered
How can I see and modify frames in a filename.mat?
I assume, that ypu want to show e.g. the frame corresponding to a certain value of tvec. Remember, that comparisons of floating...

7 días ago | 1

Answered
How to find the intersection points of a plot that contains multiple straight lines?
N = 5; %number of spawns X1 = rand(1,N) - 0.5; X2 = X1; Y1 = rand(1,N) - 0.5; Y2 = Y1; D = pi * rand(1,N) - pi/2; sD = si...

7 días ago | 0

| accepted

Answered
Invalid expression, check for mismatched delimiters. Trying to form a matrix using brackets.
What is the meaning of this line: fabcr=mag.(cos(ang)+jsin(ang)); This treats "mag" as a struct and tries to interprete "cos(a...

7 días ago | 1

| accepted

Answered
Can anyone help me optimize the if statements in For loops to make the code faster?
The loops look fine. I'd omit the J=triu(J_org), because you use the upper triangle only inside the code Vectorizing the inner ...

7 días ago | 1

| accepted

Answered
I have a 4x4 array of 1's and I need to turn 3 of 4 ones to zero per row at random. So there will be a one 1 left in each row.
Instead of starting with ones and set all but one to zero, it is cheaper to start with zeros and set one element to 1 per row: ...

8 días ago | 0

| accepted

Answered
How do I do an if greater than or less than for a if statement
if f <= -8 || f >= 8 error('f is outside the valid range') end Alternative: if abs(f) >= 8

8 días ago | 0

Answered
Generate array with a specified number of random songs from folder
piesele = {'1.mp3'; '2.mp3'; '3.mp3'; '4.mp3'; '5.mp3'; '6.mp3'; '7.mp3'; '8.mp3'; '9.mp3'; '10.mp3';... '11.mp3'; '12.mp3'...

8 días ago | 0

Answered
Sorting rows into colums
A = rand(1020, 12); B = reshape(A.', 120, 12);

9 días ago | 0

| accepted

Answered
Get many numbers out of a file
What about: B_key = 'B'; % Or maybe: sprintf('\nB\n') C_key = 'C'; % Or maybe: sprintf('\nC\n') Str = fileread('exampl...

9 días ago | 1

| accepted

Answered
Remove menubar from a figure BUT leaving the toolbar
You mention the toolbar of the axes. This should not disappear if you remove the toolbar of the figure. Which Matlab version ar...

10 días ago | 0

Load more