Community Profile

photo

Jan


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

バッジを表示

Content Feed

表示方法

回答済み
After using griddata, standard deviation is changed.
Of course increasing the number of points by an interpolation reduces the standard deviation: std([1,100]) std(interp1([1, 2],...

約8時間 前 | 0

回答済み
how to find a number in cell and make it NaN?
Start with a simple loop: A = {[1,2], [3,4], [5 31], [31,6]}; B = A; for k = 1:numel(B) b = B{k}; m = (b == 31); ...

約9時間 前 | 0

回答済み
Why this message appears?
The message is clear: "Out of memory" means, that the size of the data, you try to load, exceeds the available RAM. Install mor...

1日 前 | 0

回答済み
Why the function "timeit" doesn't work correctly
timeit and tic/toc measure the runtime. If they determine a runtime of 4 seconds in Matlab R2014 and just 0.3 seconds in Matlab ...

2日 前 | 1

| 採用済み

回答済み
Getitng error suggesting that I should "Use rotate(app, ...) to call this function.". How should I format my code?
rotate is a built-in function: https://www.mathworks.com/help/matlab/ref/rotate.html Use another name for your function.

4日 前 | 0

回答済み
how can I plot y = (cos(t-2)/4)(rect(t+1)/6 )?
y = @(t) cos(t-2) / 4 .* rect(t + 1) / 6; fplot(y)

6日 前 | 0

回答済み
How to concatenate numbers with ( ) bracket as cell type?
As Walter said already: If it contains parentheses ( and ), the elements of the cell cannot be numerical. in = [-5,21,-5;-5,21...

6日 前 | 0

| 採用済み

回答済み
Using find() is faster than direct logical indexing?
No relevant difference in R2022a in the forum: A=randi(100, 5e3, 5e3); % Few elements only timeit(@() useFind(A)) timeit(@()...

6日 前 | 1

| 採用済み

回答済み
speed up for and if loop
isnan replies trtue or false. There is no need to compare it with ==1 afterwards. nWasserhoehe = size(Wasserhoehe_HQ, 1); FRI_...

7日 前 | 0

回答済み
Print a specific PDF file using its path?
Guessing, that you use Windows: Acrobat = '"C:\Program Files\Adobe\Acrobat DC\Acrobat\Acrobat.exe"' PDFFile = '"C:\your.pdf"';...

8日 前 | 0

回答済み
For-looping output not adequate
new_parameter(i) = T2(i) - T2(i-(time*mult)); In the first iteration the i.th element of the vector new_parameter is ca...

9日 前 | 0

回答済み
missing parts of a figure when converting to pdf
Copied from my suggestion in the comments: Disable the clipping of the axes object: axes('Clipping', 'off')

9日 前 | 1

| 採用済み

回答済み
How may I use reshape for this code?
Your loop method overwrites b(j) repeatedly. Setting count to 0 in two lines is confusing. Simpler: for j = 1:frame_number ...

9日 前 | 0

| 採用済み

回答済み
How to calculate execution time in Matlab?
The direct method: tic x = sin(rand(1e4, 1e4)); toc The smart method: timeit(@() sin(rand(1e4, 1e4)))

10日 前 | 1

| 採用済み

回答済み
Iteration repeat several times
Avoid including each variable in parentheses. This reduces the readability. Matlab processes terme from left to right. Then: i...

11日 前 | 0

| 採用済み

回答済み
How to get internet time?
This java code does not run here in the forum. Maybe it is blocked by a firewall. Please try it in your local Matlab instance: ...

11日 前 | 0

回答済み
'improfile' is a missing function in octave, what other options could I use to make my loop works?
The command interp2(I, 2) does not consider the selected line. Better: n = ceil(norm([diff(x), diff(y)])); % A rough estimatio...

12日 前 | 1

回答済み
Hide excel sheet form Excel file
According to the links you have posted it should work like this: Sheet = get(Sheets,'Item',2); Sheet.Visible = 'xlShee...

13日 前 | 0

| 採用済み

回答済み
Numerical Inaccuracies for Ranges of Parameters When Using ode45 for Two Identical (But Transformed) Systems
I confirm the observed instabilities. The result depends critically on the initial value and the parameters. The trajectory has ...

13日 前 | 0

回答済み
xlim not working in 'loop' plots..
You do not call the function xlim() at all, but create a variable with the same name. Replace: xlim=([1 100]) by xlim([1 100...

13日 前 | 0

回答済み
find certain numbers in txt file
FileName = '20220727_150919_results.txt'; S = fileread(FileName); C = strtrim(strsplit(S, newline)); m = find(strcmp(C, 'Shad...

13日 前 | 0

| 採用済み

回答済み
for loop for signal with changing conditions?
Do you mean: for i = 1:length(MomentRechts) % Instead of: for i´= length(MomentRechts) This command processes the comple...

13日 前 | 0

回答済み
every for loop never stops running
Neither uninstalling Matlab nor a virus scanner can be the solution. Don't try wild things, because "gunshot-programming" is not...

13日 前 | 0

| 採用済み

回答済み
Error in multi-screen
Most of the messages are just informations. The actual error is: Error in posner_forpilotingerps_June32022 (line 50) fixation ...

15日 前 | 0

回答済み
how to modify the variables for changing FOR loop to PARFOR loop??
What is the bottleneck of your code? Use the profiler to find it. If it is the water() command, parallelize this command: lArra...

16日 前 | 0

回答済み
How to downsample the 3D matrix in matlab??
X = rand(1500, 1500, 1700); % 28.5 GB - does not run in the forum! Y = reshape(X, 2, 750, 2, 750, 2, 850); Z = squeeze(sum(Y...

17日 前 | 0

| 採用済み

回答済み
I AM WRITTINF THIS CODE AND GETTING THE FOLLOWING WARNING
Check this again: which image -all Is there a user-defined function in the list? If not, clear all should solve the problem a...

17日 前 | 0

回答済み
Changing elements of row after certain element of m*n matrix
x = [-1, -0.65, -0.45, 0, 0.3, 0.8, 1, 0.4, 0.2, -0.1; -1, -0.65, -0.45, 0, 0.3, 0.8, 0.9, 1, 0.2, -0.1]; idx = ...

17日 前 | 1

回答済み
Find the value of r such that the determinant of A is zero.
Remember, that Matlab uses IEEE754 doubles with limited precision. Then -5.5511e-17 is almost 0. The result is correct. See: ht...

17日 前 | 0

| 採用済み

回答済み
startup script for whole team
I use a tool to syncronize a function, which is updated by others in this forum: https://www.mathworks.com/matlabcentral/answers...

19日 前 | 0

もっと読み込む