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
  • 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

View badges

Content Feed

Answered
how can i dowenload r2016b
Please contact the Matlab sales team. As far as I know, you can get trial versions of the newest version only, but MathWoorks m...

2 hours ago | 0

Answered
error: Index exceeds the number of array elements (1).
Do not use the name "sum" for a variable. Avterwards the function with the same name is shadowed: clear sum sum(1:10) % wor...

9 hours ago | 0

Answered
How to handle a large binary vector?
UINT8 oder Logical use 1 byte per value. 225 MB are usually fine. You can store the bits packed in UINT8 also, but this is harde...

10 hours ago | 0

Answered
I am trying to create an array h of size 1001 which can store value of 2 integrals
gl=10; gr=10; N=1000; L=10; l=10; syms x; i = 1; f = gl * (7 / 44) * (exp((-1 * (L-N) * i) / (N * l * cos(x)))); B = vpa...

1 day ago | 1

| accepted

Answered
"Unrecognized function or variable 'filename'. Error in audioread (line 82) filename = convertStringsToChars(filename);'
A very bold guess: Are you working with admin privileges? Did you open the file audioread.m and overwrite the first line of cod...

1 day ago | 0

Answered
How can I get image file in web app?
You are not the only person with this problem. See: https://www.mathworks.com/matlabcentral/answers/884084-problems-with-uigetfi...

1 day ago | 0

Answered
generate a sine and cosine wave with 4 cycles .
0:1:3 is [0,1,2,3]. This is less than 4 cycles. 4 cycles mean: x = 0:0.1:8*pi stem() is working. plot(x,y, '.') is an option a...

1 day ago | 0

| accepted

Answered
matlab percentage always showing zero
After: p = p ./ numel(I), sum(p) is not 1.0, but 0.333. You do not want to divide by numel(I), but by numel(Red), or equivalentl...

1 day ago | 0

Answered
How to pre-allocate a matrix (from cell) when dimensions change
Simplify C=cell2mat(B(r)); to C = B{r}; This creates a cheap shared data copy, so C does not occupy additional memory: it re...

2 days ago | 0

Answered
Element wise cell division
S{i,j} ./ (S{i,j} - V{i,j}) = 1 ./ (1 - V{i,j} ./ S{i,j}) and for all V and S the division V ./ S replies the elements -6.

2 days ago | 1

Answered
"Unrecognized function or variable 'filename'. Error in audioread (line 82) filename = convertStringsToChars(filename);'
Your variable "info" is a struct, not a char vector or string. info = audioinfo('Off of Newton Exit 17.wav'); [Y, FS] = aud...

2 days ago | 0

Answered
plz help how can repetition rows matrix
a = [1 0 0; 0 0 1; 0 1 0]; rows = size(a, 1); n = 5; index = rem(0:n-1, rows) + 1 b = a(index, :)

2 days ago | 0

| accepted

Answered
Creating Matrix provided elements
A = rand(4) + 1i * rand(4); A = A + A'; % Hermitian % Convert to vector: D = diag(A).'; L = triu(A, 1); Lf = L(L ~= 0...

2 days ago | 1

| accepted

Answered
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...

3 days ago | 1

| accepted

Answered
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 ...

4 days ago | 0

| accepted

Answered
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...

5 days ago | 0

Answered
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(...

5 days ago | 0

Answered
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...

5 days ago | 0

Answered
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...

6 days ago | 1

Answered
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 ...

6 days ago | 0

Answered
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 ...

6 days ago | 0

| accepted

Answered
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...

6 days ago | 0

| accepted

Answered
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...

6 days ago | 0

| accepted

Answered
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 ...

6 days ago | 1

| accepted

Answered
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...

6 days ago | 1

Answered
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" ...

6 days ago | 0

Answered
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...

6 days ago | 0

Answered
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...

6 days ago | 0

Answered
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...

6 days ago | 0

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

6 days ago | 0

Load more