Community Profile

photo

Jan


Last seen: 1일 전 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
  • Grand Master
  • Revival Level 4
  • Promoter
  • Commenter
  • Explorer
  • Personal Best Downloads Level 4
  • Editor's Pick
  • First Review
  • 5-Star Galaxy Level 5
  • First Submission
  • 36 Month Streak
  • Thankful Level 4

배지보기

Content Feed

보기 기준

답변 있음
If statement in a for loop
The if Commadn needs a scalar condition. Because NewDist(:) < 1 is a vector, Matlab inserts an all() automatically. So your code...

약 11시간 전 | 1

| 수락됨

답변 있음
check ismember for each element individually
You want to get a logical vector for each element, which is TRUE for the matching elements. Then this is efficient: a = [1 2 3 ...

1일 전 | 0

| 수락됨

답변 있음
How do I run a custom function when my toolbox gets installed?
How is the toolbox "regularly distributed"? It is usual, that a toolbox or software has a "configure" function to set up the en...

2일 전 | 0

답변 있음
how to implement this in a better way or what is the mistake
Use the debugger: dbstop if error Run your code afterwards until Matlab stops at the error. Then check: size((xs-X)/r) size(...

3일 전 | 0

답변 있음
Applying 'if' condition within location-dependent thermal Properties
After defining ro_ult = @(location,state) ro_d-(ro_d-ro_s)*exp(location.y/0.06); ro_ult is a function handle, which expects tw...

3일 전 | 0

답변 있음
add different number of zeros in the beginning of a matrix
The output cannot be a matrix, as Dyuman Joshi told you already, because in a matrix all rows must have the same number of eleme...

4일 전 | 1

답변 있음
How do i end my code
You have showed some code, which runs once only. The output shows, that this function is called again afterwards, but we do not ...

4일 전 | 0

답변 있음
How to use the MATLAB radio button to switch between 2 matrices
Check the value of the radio buttons in the callback, which starts the computations. Then use the wanted matrix accordingly. A ...

4일 전 | 0

답변 있음
How to simply the code
With some guessing: Value = cat(1, C{:, 2}); Index = find(Value >= 2, 1, 'first') - 1; if ~isempty(Index) % [EDITED] T...

4일 전 | 0

| 수락됨

답변 있음
non linear coupled diff equation
What about simplifying the equations? 1. dx/dt = -(r+r1)/L1*x - dy/dt * (L12/L1) 2. dy/dt = -y*r2 - dx/dt * (L12/L2) 1. int...

4일 전 | 0

| 수락됨

답변 있음
Indexing every value from matrix not only unique values
Of course you can use find(): A = [2, 2, 4, 1, 3; ... 3, 1, 10, 100, 200]; % 200 added to match number of elements per ...

4일 전 | 1

| 수락됨

답변 있음
Converting text file to struct
Your text file is almost valid Matlab code: only the trailing semicolons are removed. Now you try to write some code, which inte...

4일 전 | 1

답변 있음
how to Concatenate big string matrices of different sizes
With some bold guessing: % [UNTESTED] Please povide a small test data set keyIndex = 1; % Guessing, that the "case number" ...

4일 전 | 0

답변 있음
Unable to perform assignment because the size of the left side is 1-by-201 and the size of the right side is 200-by-1
Replace: ts = -prePeak:1/fs:posPeak; by ts = linspace(prePeak, postPeak, 201); But as far as I can see, you use ts only to m...

4일 전 | 0

답변 있음
There was an unexpected exception
The error message suggests to read the log file. So please read the log file and post a copy of the important information you fi...

4일 전 | 0

답변 있음
Error using eig Input matrix contains NaN or Inf.
The error message is clear: The input of eig() cannot contain NaN or Inf. Without seeing your code, the readers cannot guess, w...

4일 전 | 0

답변 있음
Matrix sequence go diagonal
n = 6; % Or if you want: input ('sequence_matrix_'); v = zeros(1, n+1); % Pre-allocation v(2) = 1; % I...

4일 전 | 0

답변 있음
Sensitivity Analysis for a ODE
Sensitivity means, that you vary the initial values or parameters by a small value and compare the results of the integration. D...

5일 전 | 1

| 수락됨

답변 있음
dde23 solver gets stuck in an infinite loop (I think?)
dde23 cannot stuck in an infinite loop. But it is easy to provide a system, which has a pole, such that the step size gets tiny ...

6일 전 | 0

답변 있음
I have 132 potential positions in a wind farm layout and I have to place 66 turbines on these positions. I want to know how to make combinations to place these 66 turbines.
The notes of dpb and David mean, that the number of possible solutions is too large to be useful, if you want to test all of the...

6일 전 | 0

답변 있음
MATLAB crashes when I use any sound commands
The OpenGL flags are for managing the graphics, but your problem concerns the sound. Did you update the sound drivers already?

7일 전 | 0

답변 있음
make a subsubfolder in a newly made subfolder
[filepath, name, ext]= fileparts(dcmlist{jj}); % Extract file name mkdir(fullfile(nufolderpath, name, 'edn'));

8일 전 | 0

| 수락됨

답변 있음
copy file not working as it should
Use the debugger to find out, what's going on: for kk = 1 :numel(bmplist) if contains(bmplist{kk}, ptt) sourceFile =...

8일 전 | 0

답변 있음
Derivative of a function in a particular point
Use one of the quotients of differences to get a numerical approximation of the derivative: x = 1.2345; h = sqrt(eps); dy_r...

8일 전 | 0

답변 있음
How to convert a cell array to a compatible matrix?
CC = {rand(9,9), rand(5,4), rand(5,4), rand(6,4), rand(6,4), rand(8,4), rand(8,4), rand(9,4), rand(9, 4); ... rand(4,5), ra...

8일 전 | 1

| 수락됨

답변 있음
Dimensions of arrays being concatenated are not consistent.
Use the debugger to check your code: dbstop if error Start your program after typing this in the command window. When Matlab s...

8일 전 | 0

답변 있음
insert zero into matrix
You cannot "insert" a 0 in row 170, if the vector has 96 rows only. You can append zeros only: x = rand(96, 1); x(89:170) = 0;...

8일 전 | 0

| 수락됨

답변 있음
Break A While loop using a status Button
Insert a drawnow command inside the loop to let Matlab update the GUI. A small simplification: app.CANMSGStatusLamp.Color = 'B...

9일 전 | 1

질문


Are the CC BY-SA 3.0 and BSD-3-clause license compatible?
Code published in the Answers forum is covered by the "Creative Commons Attribution Share Alike 3.0 license", also called "CC BY...

9일 전 | 답변 수: 0 | 0

0

답변

답변 있음
speed up ismember with two-dim data
function Test_Felix X = TestData; Y = TestData; % Original method: tic; mat_overlap = NaN(length(X), length(Y)); for ii ...

9일 전 | 0

| 수락됨

더로드