Answered
"index exceeds matrix dimensions" when using str2double
Text scan replies a cell vector as output. Therefore the first index "angle{*i*, 3}" is misplaced: for i=1:n fprintf(s...

9 years ago | 1

| accepted

Answered
Put elements into corresponding locations of upper triangular matrix
Start with nested loops: v = 1:6; n = round((sqrt(8 * numel(v) + 1) - 1) / 2); M = zeros(n, n); c = 0; for i2 =...

9 years ago | 3

| accepted

Answered
Same procedure for different matrices
Use a subfunction: A = {rand(23, 25), rand(22,25)}; B = zeros([2, 2, numel(A)]); for iA = 1:numel(A) B(:, :, iA)...

9 years ago | 0

Answered
out of memory in perms.m
The problem occurres, because the output is too large to be held in the available memory. |perms| works with doubles internal...

9 years ago | 0

Answered
How add multi line title to figure (not to plot)?
The name of the figure appears in the border of the window. There is only space for a single line. Do you want to the figure tit...

9 years ago | 0

Answered
Running a for loop across a matrix row of data
Please post the *complete* error message. Currently the readers have to guess, which line is causing the problems. I guess it is...

9 years ago | 0

| accepted

Answered
Why Function Keyword is invalid here in line 14
Function definitions are allowed in function files, as nested functions in modern Matlab versions, and inside scripts since 2017...

9 years ago | 0

Answered
How to check convertibility to logical values that do not raise an error in the if statement
Numerical, logicals and char scalars can be converted to a logcial. function isLS = islogicalable(x) isLS = (numel(x) ==...

9 years ago | 0

| accepted

Answered
is multi threading possible in MATLAB
Many commands, e.g. |sum| is multi-threaded internally already: beyond a specific data size, the work is distributed to multiple...

9 years ago | 4

Answered
Open up import tool through GUI
Do you mean the |uiimport(filename)| function? Then you can insert this command in the callback of the wanted GUI element. See <...

9 years ago | 0

Answered
How to go over from Latex to Matlab
No. There is no LaTeX2Matlab function. And if there is one, it would be unlikely that it creates nice and efficient code. Note t...

9 years ago | 2

Answered
I'm new to Matlab. Could someone help me how to convert a pseudocode to MATLAB code? Thank you!
No, this cannot be solved reliably. See the initial part: N (h); for each node i ∈ N (h) do if ((d(i,dop) <d (h,d...

9 years ago | 0

Answered
Passing variable to function with similar name
Don't do this. To juggle with a pile of variables having a magic key in their name is a really bad idea. Even extracting variabl...

9 years ago | 0

Answered
How should I organize my MATLAB files?
* If the project is large (>1000 lines of code), a version control is recommended to support debugging and development. * Keepi...

9 years ago | 3

Answered
How to set size of actual plot area so that axis labels don't change axis lengths?
Do you mean setting the size of the |axes| object? See the <https://www.mathworks.com/help/matlab/ref/axes-properties.html#zm...

9 years ago | 0

| accepted

Answered
Installing models on an offline computer
Did you search in the forum at first? Even an internet search engine might be useful to find e.g. * <https://www.mathworks.c...

9 years ago | 0

Answered
How to shrink large matrix by summing
With <https://www.mathworks.com/matlabcentral/fileexchange/24812-blockmean FEX: BlockMean>: x = rand(17400, 43200); % Thi...

9 years ago | 1

| accepted

Answered
How to make the code more efficient: Group experimental result into 3 groups
Some ideas for nicer code: indexLoc =at.Valindex(:,i).'; BB = length(indexLoc {1,1}); You access |indexLoc{1,1}| ...

9 years ago | 1

| accepted

Answered
I got different error messages each time I run the code
sum(i)=sum(L) The first time this statement is reached, the command |sum| is applied to the scalar |L|, which is |l(1)|. Be...

9 years ago | 0

Answered
DB Explorer Browser geht nicht
This problem is explained by Oracle <https://www.oraexcel.com/oracle-11gR2-ORA-01424/lang-de>: Fehlercode: ORA-01424 Bes...

9 years ago | 0

Answered
how can I load a figure without it appearing?
You forgot to explain, how you store the figure and some data in a MAT file. This is not trivial. See <https://www.mathworks....

9 years ago | 1

| accepted

Answered
GUIDE slider callback within another running callback won't update handles altered during the slider callback
function handles = slider_Callback(hObject,eventdata,handles) No, callbacks do not have output arguments. If you change ...

9 years ago | 0

| accepted

Answered
How to earn reputation at mathworks
There are two kind of reputation in this forum: # The official reputation points (called RP now), which is described above an...

9 years ago | 6

Answered
How can I read very large JP2 images(several GB)
Sorry for this dumb answer: You *need* the RAM to process the data. Did you consider to install more RAM? There might be some...

9 years ago | 0

Answered
Need help in MATLAB GUI
Do not use |global| variables, because they make your life much harder. Globals are always a shot in your knee. Prefer storing t...

9 years ago | 1

Answered
My structure fields are not displaying in the variable viewer.
Which Matlab version are you using? It looks like a bug of the WorkSpace browser. Then upgrading to a newer Matlab version will ...

9 years ago | 0

Answered
Matlab code for the following
Is this a homework? If so, what have you tried so far? You need 2 lines of code only and revealing the solution might be counter...

9 years ago | 0

Answered
How to disable error messages when typing CTRL+C?
What happens if you call the P-Code through a C-Mex function an <https://www.mathworks.com/help/matlab/apiref/mexcallmatlabwitht...

9 years ago | 0

Answered
Group data into bins with irregular sizes / Track peaks
Omit the details about cristallography or if the numbers are peaks, because for Matlat they are just numbers. You have 60'000...

9 years ago | 1

Load more