Answered
Adding Two Arrays Alternatively to make Third Array
% Arbitrary test data: ForceX = rand(64, 1) + 1i * rand(64, 1); ForceY = rand(64, 1) + 1i * rand(64, 1); % Methode 1: Forc...

6 years ago | 0

Answered
how to string scalar or character vector a text
You need Matlab R2018b to define stringe with double quotes. The screen shot looks like R2018a. Then use single quotes to create...

6 years ago | 0

Answered
why elseif (i==1) && j==m condition went unexecuted?
The condition "i==1 && j==m" appears twice: if i==1 && j==m % First time A(1,1)=1; elseif (i==...

6 years ago | 0

| accepted

Answered
What font do you code in?
Andale Mono and Bitstream Vera Sans Mono.

6 years ago | 2

Answered
Why Matlab does not read the input value?
This piece of code is called repeatedly. This shown code seems to be fine, so the behavior is caused the code, which calls this ...

6 years ago | 0

Answered
uiopen vs audioread, is there an advantage to one over the other for .wav files?
The function uiopen and audioread have two different jobs. While the first opens Matlab files with the apropriate application, t...

6 years ago | 0

Answered
Slow SizeChangedFcn or ResizeFcn
The first version was not sufficient in all cases. In addition it is required to prevent a repeated entering of the code: funct...

6 years ago | 1

| accepted

Answered
Slow SizeChangedFcn or ResizeFcn
One solution is to ignore the built-in resize methods and use a specific WindowsButtonDownFcn to emulate a resizing. But reinven...

6 years ago | 0

Answered
Is it possible to programmatically check whether MATLAB has been started with the "-nodisplay" option?
See also: https://www.mathworks.com/matlabcentral/answers/407059-if-matlab-desktop-elseif-matlab-nodesktop : usejava('desktop')...

6 years ago | 3

Question


Slow SizeChangedFcn or ResizeFcn
When a SizeChangedFcn or ResizeFcn takes some time, the figure size can be changed, until the display is updated. Example: func...

6 years ago | 2 answers | 1

2

answers

Answered
Vector between vectors in intervals
Remark: The inputs vectors are not normalized and only almost orthogonal: format long g v1 = [-0.0345; 0.9984; -0.0447] v2 ...

7 years ago | 0

Answered
Can anyone help me with the "Axis rotation sequence for the Euler angles"
The rotation matrix for the Euler angles in the order XYX is: s1 = sin(alpha); c1 = cos(alpha); s2 = sin(beta); c2 = cos(bet...

7 years ago | 1

Answered
Matlab has encountered an internal problem and needs to close.
The message teels you: If this problem is reproducible, please submit a Service Request via: http://www.mathworks.com/...

7 years ago | 0

Answered
Use the time step within ode15s
If the function to be integrated requires the time steps of the solver, something went wrong. I'm convinced that this is a logic...

7 years ago | 0

| accepted

Answered
Keep getting error message on my ODE function
u0 = [P0, zeros(1, N + 1)];

7 years ago | 0

| accepted

Answered
Eulers method for system of linear equations
h = 0,1; % ^ you mean 0.1 with a dot There is no need to create the accleration as array. Reply a scalar instead: funct...

7 years ago | 0

Answered
Skipping files in a set
What does "files 132, 290, and 404" mean? Are these the indices in rightfiles, or are these parts of the file name? rightfiles=...

7 years ago | 0

Answered
How to sum over indices?
If you assume, that something is wrong, mention, what you observe. This is better than letting the readers guess, what the probl...

7 years ago | 1

| accepted

Answered
How can I convert a binary fraction to decimal?
'11001' means: 1*2^0 + 0*2^1 + 0*2^2 + 1*2^3 + 1*2^4 or: [1,1,0,0,1] * 2 .^ (4:-1:0).' (this is what happens inside bin2dec - ...

7 years ago | 3

| accepted

Answered
How do I install MinGW for old Matlab R2007?
Matlab R2007 is not supported under Windows 7. MinGW is not supported for Matlab R2007. In consequence the combination of a mode...

7 years ago | 0

Answered
How do you form a while function using a function file and then using the function file to form a sequence by performing this operation?
Change n directly and collect the output in the vector v by inserting it at the index end+1: function v = collatz(n) v = n; w...

7 years ago | 0

| accepted

Answered
Using parfor in a sparse setting
The help page "Troubleshoot Variables in parfor-Loops" explains the problem: A = [1;2;3;4;nan;nan;nan;nan;nan;10;11]; B = na...

7 years ago | 0

| accepted

Answered
Speed up nested loops
This line is expensive: normal_vector = ((cross(P_all(k-t,:),P_all(k,:)) / ... (norm(cross(P_all(k-t,:),P_all(k,:)))))); ...

7 years ago | 1

| accepted

Answered
Table of Matlab release features
Editing by editors are welcome! Please use ASCII and do not touch %[AUTO... line and final %}: %[AUTO_EXTRACT:VersionList] ...

7 years ago | 4

| accepted

Discussion


Table of Matlab release features
After reading Rik's comment I looked for a list of Matlab releases and their corresponding features. Wiki: Matlab contains an ex...

7 years ago | 7

Question


Table of Matlab release features
After reading Rik's comment I looked for a list of Matlab releases and their corresponding features. Wiki: Matlab contains an ex...

7 years ago | 2 answers | 6

2

answers

Answered
Why is my code showing an error? Why is the line deleted?
The shown code does not reproduce the problem. We cannot guess reliably, why one of the obejcts in h is deleted. But a weak gues...

7 years ago | 0

Answered
variable size matrix and converting letters to numbers
"user enter a variable size matrix": It depends on how you want to implement this: by a GUI, as Matlab code, as text file, in Ex...

7 years ago | 0

| accepted

Answered
Help on understanding the following matlab code ?
Step by step: flipud(xt): This flipps the order of elements vertically. Try it: x = rand(3,2) flipud(x) min(Y, [ ], 2) : fin...

7 years ago | 0

| accepted

Answered
Resuming from "keyboard" command?
Using debug commands for an interaction with the user is a really bad design. A dynamic modification of the workspace is very fr...

7 years ago | 0

Load more