Question


What can we do with the thread "license-manager-error-9"?
The thread why-do-i-receive-license-manager-error-9 is not useful anymore. The huge page reacts extremely slow and many users ad...

3 years ago | 5 answers | 0

5

answers

Answered
Loop for plot vectors
A = [20 10 80 805 82.1420812600000 20 10 80 815 82.5962426700000 20 10 80 825 83.0389831800000 20 10 80 835 83.46...

3 years ago | 0

| accepted

Answered
how to use if loop to determine to make a plot
function output = myfcn(input1, input2, input3) if nargin < 3 doPlot = true; % Default if 3rd input is not provided else ...

3 years ago | 1

Answered
How can I apply an operation to every row of a matrix?
If R is e.g. a linear transformation expressed as a [2 x 2] matrix: coor = rand(162, 2); a = 2 * pi / 180; R = [cos(...

3 years ago | 1

| accepted

Answered
Add time stamp in seconds
The text() command inserts text in an axes. Then the text is displayed on the screen. This does not modify the image in any way....

3 years ago | 1

Answered
Can the efficienty of this code be improved, either computationally or just in terms of lines of code?
A0 = [2; 3; 1; 2; 2; 3; 1; 2; 2; 3]; B0 = [4.10047; 7.44549; 3.62159; 6.56964; 2.87221; 4.51231; 4.01697; 5.60534; 5.5440; 7.07...

3 years ago | 0

| accepted

Answered
How to convert matrices of different sizes in a for loop into a single column vector?
... PhaseC = cell(1, nLevels); for k = 1:nLevels ... PhaseC{k} = acos(subband./amp); end Phase = cat(2, PhaseC{:})...

3 years ago | 0

Answered
How to keep only a new modification in an array using for loop?
a = [1 0 0 1 1 0 0 1 0]; new = repmat(a, numel(a), 1); for j = 1:numel(a) if new(j, j) == 0 new(j, j) = 1; ...

3 years ago | 0

| accepted

Answered
License checkout failed after cloning my HDD
Use a clone tool like CloneZilla, which duplicates the volume ID also. [EDITED] The volume ID can be modified by the computer a...

3 years ago | 0

Answered
How can I generate a matrix of pseudo-random floating point values from a uniform distribution(5, 8), but without range() function and other ToolBoxes?
Does this mean, that you cannot use rand()? range() is trivial to replace: rrange(2)-rrange(1)

3 years ago | 0

| accepted

Answered
How to rename a lot of mfiles in a folder
folder = 'D:\something'; files = dir(folder); files = file(~[files.isdir]); % Files only! for k = 1:numel(files) %...

3 years ago | 0

Answered
Speeding up matrix operations
Matlab calls optimized libraries to solve linear algebra operations. These libraries are based on BLAS and LAPACK, but modern ve...

3 years ago | 1

Answered
Power of a binary matrix
If you really define the matrix multiplication with mod(A*B, 2): A = randi([0,1], 11, 11); % Test data, use your "a" tic %...

3 years ago | 1

Answered
Power of a binary matrix
[EDITED] This is not the multiplication wanted by the OP - I leave it for educational reasons. Assuming, that you mean the us...

3 years ago | 1

Answered
How to get calculated variables from ode function?
The function to be integrated computes these values. You have all required inputs as output of ODE23S already. Use them as input...

3 years ago | 0

Answered
How to write data horizontally in matlab using xlswrite to express meaning like excel
'A2:A4' specifies 3 elemente in a row.

3 years ago | 0

| accepted

Answered
Automatically load a struct from a struct with a variable name
file = 'test1.mat' [~, name] = fileparts(file); values = load(file); subStruct = values.(name); a = subStruct.a; ...

3 years ago | 0

Answered
Problem understanding this "for" loop
Before the loop xx is pre-allocated to the maximum number of iterations. The for loop runs from 1 until MAXITER. The variable o...

3 years ago | 1

Answered
How to to add column 3rd+4th, 6th+7th and 9th+10th from a 8x12 matrix?
C1 = B(:, 3) + B(:, 4); C2 = B(:, 6) + B(:, 7); C3 = B(:, 9) + B(:, 10); Or maybe: C = B(:, [3,6,9]) + B(:, [4,7,10])

3 years ago | 0

Answered
How to filter out files with a list of specific string in UIGETFILE command?
As far as I can see, the file pattern [x] is not implemented in uigetfile: xlsfile = uigetfile('EF[AI]*.xls', 'Select Excel fil...

3 years ago | 0

Answered
Hold on and Hold off command keeps all plots on subsequent graphs
clear clears the variuables of the workspace. clc clears the command window. Both do not have any connection to the state of the...

3 years ago | 0

Answered
Compiled mex file raises memory issue
Avoid using int as dimensions. Call mxCreateNumericArray as explained in the documentation: mxArray *mxCreateNumericArray(mwSiz...

3 years ago | 1

Answered
How to prevent triggering 'SizeChangedFcn' callback too many times?
See this solution: https://www.mathworks.com/matlabcentral/answers/570829-slow-sizechangedfcn-or-resizefcn#answer_475105

3 years ago | 1

Answered
Analyzing different sections of an array
Either reshape the array: x = rand(20, 100); y = reshape(x, 20, 10, 10); m = mean(x, 2); % If you want the mean value over b...

3 years ago | 0

| accepted

Answered
How to perform svd without using the inbuilt function?
You can find working solutions in the FileExchange: https://www.mathworks.com/matlabcentral/fileexchange/12674-simple-svd htt...

3 years ago | 0

Answered
How do I take audio from Youtube and play it on Matlab?
As far as I know you cannot extract the sound directly in Matlab. Use an external tool like youtube-dl .

3 years ago | 0

Answered
uninstalling old version error
If the installation is corrupted, the uninstallation can fail. Then install this version again overwriting the existing installa...

3 years ago | 0

Answered
Subtracting a value in a 3D array with all values in another 3D array
A = rand(5,6,7); B = rand(6,7,8); D = min(A(:).' - B(:), [], 1); Result = reshape(D, size(A)); If the intermediate matrix A(...

3 years ago | 1

| accepted

Answered
How to determine how many random numbers were generated, using Mersenne twister?
The direct solution is to modify the function joeblow1 and joeblow1 such, that they count the created random numbers. Another o...

3 years ago | 0

Answered
how i can fix the problem of isPrimitiveRoot ?
Open the documentation: doc isprimitiveroot or online: https://www.mathworks.com/help/symbolic/isprimitiveroot.html Scroll d...

3 years ago | 0

| accepted

Load more