Community Profile

photo

Jan


Last seen: Today
13 424 total contributions 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.

Jan's Badges

  • Explorer
  • Personal Best Downloads Level 4
  • Editor's Pick
  • First Review
  • 5-Star Galaxy Level 5
  • First Submission
  • Grand Master
  • Revival Level 4
  • 36 Month Streak
  • Thankful Level 4
  • Knowledgeable Level 4
  • First Answer
  • Promoter
  • Commenter
  • Solver

View details...

Contributions in
View by

Answered
'Storing' variables in RAM
Store the wanted data persistently: function Out = DataVault(Cmd, Name, Data) persistent Stored mlock; switch lower(Cmd) ...

35 minutes ago | 0

Answered
Get all used variable names from a script
It is hard to parse the code exhaustively for names of variables: Mask strings and char's. This is not trivial: '"asd"', '"asd...

environ 3 heures ago | 1

Answered
Why is MATLAB using my network?
When I'm not signed in in my local Matlab session (see the "Sign in" button in the top right corner), Matlab opens several inter...

environ 4 heures ago | 0

Answered
How to compare two numbers in two different vectors and save without using for loop?
The implementation of isalmost is not efficient. It is faster to check the values directly: nodeMat = zeros(size(mainNodes,1),3...

environ 19 heures ago | 0

| accepted

Answered
Any Matlab Tutors ?
Read the Getting Started chapters of the documentation and Matlab's Onramp. For details feel free to ask here in the forum. The ...

1 jour ago | 0

Answered
function in matlap#
The actual problem is trivial: All you have to do is to multiply the input by a scalar. Your problem is most likely (you didn't...

1 jour ago | 0

Answered
How to solve ODE system numerically
a1 = 0.7; a2 = 0.4; b1 = 0.06; b2 = 0.08; c1 = 8787168; c2 = 8111232; y0 = [15000, 17000]; tSpan = [0, 0.0001]; % The va...

1 jour ago | 1

| accepted

Answered
How to download Matlab 2018a?
You find the link in your Account page, if you have a license: https://www.mathworks.com/downloads/web_downloads/select_release...

1 jour ago | 0

Answered
How to convert cell array to float array?
% If the input is a cell containing the chars '0' and '1': B = cell2mat(YourCell); Value = B(:, 1) - '0' + bin2dec(B(:, 2:11))...

1 jour ago | 0

Answered
An late update during a year includes all previous updates of this year?
The updates are cummulative: Update 5 includes the 4 previous updates also.

1 jour ago | 0

| accepted

Answered
Matrix subtraction makes the model too slow
No. This is an elementary operation. As long as Data has been pre-allocated properly, this cannot be accelerated or omitted. If...

1 jour ago | 0

Answered
How to loop over datafiles using the sprintf function?
This is valid Matlab code, but it does not do, what you expect: for i = 1:23, ii = 1:2 This is 1 loop only. ii is set to the v...

1 jour ago | 1

Answered
Running uisetcolor Crushes my Compiled application
Try to use another color chooser, e.g.: https://www.mathworks.com/matlabcentral/fileexchange/91615-matlab-uicolorpicker

1 jour ago | 0

Answered
Comma separated function output requests
Why do you expect A to be the empty cell? The right hanbd side is the scalar 30: S = struct('type', '()', 'subs', {{3}}); x = ...

2 jours ago | 1

Answered
my matlab is not opening
THis might mean that the preferences are damaged. They are store in a folder in your user folder. If you tell us, which OS you a...

2 jours ago | 0

Answered
how to get which button was pressed?
You can provide the index as additional argument of the callback: 'Callback', {@buttonPushed, iR, iC}, ... function butt...

3 jours ago | 0

Answered
How to protect arbitrary variable names
I you work on a larger project (any code with > 20 lines), avoid scripts. They are a shot in your knee. With using functions, th...

3 jours ago | 1

Answered
how to filter out decimals
function s = Fnkt(n) if n <= 0 || n ~= floor(n) s = 0; return; end syms k x s = symsum(k,k,0,n); end Do you re...

3 jours ago | 0

| accepted

Answered
Matlab code for accessing different folder data
Folder = 'C:\Base\Folder\'; FileList = dir(fullfile(Folder, '**', 'YourFile.xlsx')); Data = cell(1, numel(FileList)); f...

3 jours ago | 0

Answered
how can I get a y value for a chosen x value.
yDesired=y(index, :); % ^ But this gives you the trajectory and all but the last derivative. To get "all equat...

3 jours ago | 0

| accepted

Answered
how to find the order of convergence
The convergence of the Newton methods depends on the initial value. There is no general order of convergence. For some start val...

3 jours ago | 0

Answered
Multithreading library in matlab
No. You can use the command parfor and spmd, but this does not match the C++ threads exactly.

3 jours ago | 0

Answered
How can I improve the parfor performance in my code?
Move all repeated calculations out of the loop: C1 = wnkcosDir.*spec_dfdt.*romega; C2 = wnksinDir.*spec_dfdt.*romega; C3 = wn...

3 jours ago | 1

| accepted

Answered
Error: Too many output arguments
The function myRand replies to variables, which are assigned to the variables x and s. In the line [a,s]=x you try to assign th...

3 jours ago | 1

Submitted


GetFullPath
Full path name for partial or relative path

4 jours ago | 30 downloads |

Answered
Select specific files from subfolders
Folder = 'C:\Your\Folder'; SubFolderList = {'C3', 'C6', 'C8', 'C9'}; for iSub = 1:numel(SubFolderList) File = fullfile(Fol...

4 jours ago | 0

| accepted

Answered
How to create a programme that will increase its increment of the size of array with a push button ? Using GUIDE
With some guessing: function pushbutton1_Callback(hObject, eventdata, handles) Value = get(handles.listbox1, 'Value'); Data ...

4 jours ago | 0

| accepted

Answered
1×0 empty double row vector with command find
Why do you call this an "error"? The vectors h_1 and h_2 do not have an equal element at the same location. h_1==h_2 is an eleme...

4 jours ago | 0

Answered
How to delete multiple elements from array in step by step process and how to store remaining elements in array
A = [1 0.2 7 0.5 3 8]; nA = numel(A); array = cell(nA, 1); for k = 1:nA array{k} = maxk(A, nA - k + 1); end

5 jours ago | 0

Answered
I need Correct Subplot for This Code
counter = 0; for i=Arrayinput for j=Arrayinput ... counter = counter + 1; subplot(alength, alen...

5 jours ago | 1

| accepted

Load more