Community Profile

photo

Jan


Last seen: 1日 前
13,659 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 バッジ

  • 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

詳細を表示...

貢献した分野
表示方法

回答済み
how to store the output of for loop
for ii = 0:d2:d2*(GW-1) for i = 1:2:2*GL plot(i * center_x, center_y, 'o'); end center_y = center_y + d2; ...

約14時間 前 | 0

回答済み
How to temporarily pause execution of a function for troubleshooting
This is a job for the debugger: if ~isreal(Variable) keyboard end Or: if ~isreal(Variable) disp('problem reached') ...

約15時間 前 | 0

| 採用済み

回答済み
give matrix element in for loop
Welcome to Matlab. This is the most frequently asked question and a severe mistake of beginners. Do not hide indices in the nam...

1日 前 | 0

回答済み
How to quickly find the indecis of an array in another array?
Do you have such tiny inputs in all cases? Then a linear search is faster than the smart sorting of intersect and the binary sea...

1日 前 | 0

| 採用済み

回答済み
function - input and output matrix
Your code is fine. The only problem is, that you call it with a struct. Unfortunately you show us the code, but not, how you cll...

1日 前 | 0

回答済み
How do I create and save an audio file from the output of text to speech synthesizer
See: https://www.mathworks.com/matlabcentral/fileexchange/18091-text-to-speech And: % [UNTESTED! I'll check this later] NET....

1日 前 | 0

| 採用済み

送信済み


GetFullPath
Full path name for partial or relative path

3日 前 | ダウンロード 24 件 |

回答済み
How to find position a input
z(m,n,i,ii) = (x(m)).^4'* sin(y(n)).^3'*cos(xx(i)).^2'*(yy(ii)); % Voodoo: ^ ^^ ^ ^ ^ ^ ^ ^ ...

4日 前 | 1

回答済み
Why do I receive this error message?
The message seems to be clear already. Some graphic output let the graphics driver crash. Follow the instructions given in the m...

4日 前 | 0

回答済み
How to create a struct
str_rock = sprintfc('ROCK%d', rock_code); % Undocumented ROCK = cell2struct(str_rock(:), sub_rock(:));

4日 前 | 0

回答済み
I am getting Index exceeds the number of array elements(1) error?
With guessing where the error occurs: dv_dt_p = -v(j)*dv_dx-(1/gamma)*((dt_dx)+(t(j)/rho(j))*drho_dx); dt_dt_p = -v(j)...

4日 前 | 1

回答済み
How to speed up my code?
if ismember(selectedBus, InjBus_moreZeroLines) ismember replies a vector, if the inputs are vectors. The if command requires a ...

4日 前 | 0

回答済み
Error loading matlabprefs.mat
If removing the file helps for some time, a function is destroying the file. Then an approach is to scan, who is accessi ng the ...

4日 前 | 0

| 採用済み

回答済み
Can I put an fprint statement in a saveas command?
folder = 'D:\Your\Output'; n = 4; saveas(FigH, fullfile(folder, sprintf('File%03d.eps', n))); This creates the file: D:\...

5日 前 | 0

回答済み
How to extact bits from an image to a string separated with commas?
Your code produces a CHAR vector (a "string" is a different class). Now you explain, that there is an error, when you "try to op...

5日 前 | 0

回答済み
How to sum over indices i+j=k without using a for loop?
Because beta is determined inside the for i and for j loops, we can improve only the inner loops: r = 501; kmax = 501; p ...

5日 前 | 0

| 採用済み

回答済み
Rotate 3D matrix
X = rand(2, 3, 4); Y1 = permute(X, [3,1,2]); size(Y1) Y2 = permute(X, [3,2,1]); size(Y2) By the way, "matrix" means 2D by ...

5日 前 | 0

回答済み
How do I get execute while else loop?
The == operator compares its arguments elementwise. This works only if one of the array is a scalar or if bother have the same s...

6日 前 | 0

回答済み
Array Exponentials without For Loop?
A = [1 2 3]; B = [2 3]; C = A .^ (B.')

6日 前 | 1

| 採用済み

回答済み
Safely interrupt a script/function
You can open a small window, which contains a stop button. Pressing this button sets a local variable, which can be checked from...

9日 前 | 0

回答済み
Open image in Gui from menu
Unrecognized property 'XLim' for class 'matlab.graphics.primitive.Image'. XLim belongs to the axes. In the line: handles.Image...

9日 前 | 0

回答済み
How to operate properly with multidimensional matrices and cells.
"For the other two, however, it goes wrong:" No, nothing goes wrong. This is exactly what is expected and needed. Only the dis...

9日 前 | 0

| 採用済み

回答済み
Help needed in solving a matrix equation
A= [0,1;1,1]; B= [0,1;1,1]; Q= [2,0;0,4]; R= [0.5,0;0,0.25]; syms p11 p12 p21 p22 P = [p11, p12; p21, p22]; eqn = P * A + ...

11日 前 | 1

回答済み
I dont know what to do
Remove the semicolons from these lines: x; y1; y2; y3; y4; The trailing semicolon suppresses the output. Therefore "x;" sh...

11日 前 | 1

回答済み
FiltFilt function giving NaN values
I try to run your code guessing some inputs: srate = 1000; [b, a] = ellip(14, 5, 30, 2*(170/srate), 'low'); lpfSig = filtfil...

12日 前 | 0

回答済み
How to insert data with fopen ?
fmt = [repmat('%.2f ', 1, 32). '\n']; ftempd = fopen('tempd.r2c', 'w'); fprintf(ftempd, fmt, tempd.'); fclose(ftempd);

12日 前 | 0

回答済み
Run into "Paused: Press any key"
This problem appeared in R2016a already: https://www.mathworks.com/matlabcentral/answers/278430-why-does-program-execution-hang-...

13日 前 | 0

回答済み
Formating all values of a structure field
No, you cannot access nested fields of a struct array in Matlab directly. You need a loop.

13日 前 | 0

| 採用済み

回答済み
Cheat for preallocation requirement
x = []; for i = 1:1e5 x(end+1, :) = 1:10; end Here you allocate sum(1:1e5) * 10 * 8 bytes: 400 GB. c = {}; for i=1:1e5...

13日 前 | 0

回答済み
the user will be asked to input number which is good but the problem is how can I make that as numbers and letters for example 2x and put it in matrix
This is a really complicated task, which is prone to bugs. How do you want to treat "2x" compared to "x2"? If "x" is a variable,...

13日 前 | 0

Load more