Answered
Is it possible to call Matlab from Java asynchronously ?
See e.g. <http://www.rgagnon.com/javadetails/java-0014.html> for starting a process in Java. Then provide the function to be run...

9 years ago | 0

Answered
How to split a 3D matrix in two volumes separated by an arbitrary plane
To be nitpicking: "matrices" are 2D by definition. For 3D there is only the general name "array". What is the contents of the...

9 years ago | 0

| accepted

Answered
Ad on explorer is not working!
Perhaps this helps: * <https://www.mathworks.com/matlabcentral/answers/290671-add-on-explorer-currently-unavailable> * <htt...

9 years ago | 0

Answered
My GUI is not reading an input array in the edit box.
If you know for sure, that the input in the text field is something like 1:100 (pattern: '%g:%g') you can create a dedicated con...

9 years ago | 1

Answered
Presenting simultaneously 40 images, non overlapping.
As usual a rejection method to determine random areas without overlap: function Pos = GetPositions count = 0; suc...

9 years ago | 1

Answered
Close (all) Variable Editor windows?
This closes all docked and undocked ArrayEditors: desktop = com.mathworks.mde.desk.MLDesktop.getInstance; Titles = desk...

9 years ago | 16

| accepted

Answered
Converting for loop to vectors
I assume you do not mean "to vectors", but "vectorizing". Most likely you want to accelerate the code. Let's start with some cle...

9 years ago | 0

| accepted

Answered
xlswrite too large imput
The documentation explains: Input matrix, specified as a two-dimensional numeric or character array, or, if each cell cont...

9 years ago | 1

Answered
how to combine matrix column and saving them as a separate text file?
A = randi(1000,100); B = randi(1000,100)*5; for k = 1:100 Data = [A(:, k), B(:, k)]; FileName = sprintf('f...

9 years ago | 0

Answered
matching values by comparing different length vectors
Another guess: A = [1 4 5]; % Ignore the transpose here A1 = [10 20 30]; B = [1 3 8 9]; B1 = [100 200 300 400];...

9 years ago | 0

Answered
Function with varying number of for loops
See <https://www.mathworks.com/matlabcentral/answers/333926-recursive-function-for-replacing-multiple-for-loops> Do not use a...

9 years ago | 1

Answered
obtaining an array containing arrays
nLoop = 5; nValue = 4; Result = zeros(nLoop, nValue); % Pre-allocate! for k = 1:nLoop A = randi(10, 1, nValue)...

9 years ago | 1

Answered
Putting multiple graphs one after the other in a short area
See: * <https://www.mathworks.com/matlabcentral/fileexchange/2884-zoombox> * <https://www.mathworks.com/matlabcentral/fileex...

9 years ago | 0

| accepted

Answered
Mersenne Twister RNG init_by_array
No, this is not possible in Matlab. As far as I know, you can seed it with 32 bits only - but I'm still such surprised about thi...

9 years ago | 0

| accepted

Answered
I have 2 coordinates (x1,y1),(x2,y2) how can i write line equation plot and how can i know angle of that equation with respect to reference line like x=1
What have you tried so far? Plotting seems to be easy: line([x1, x2], [y1, y2]) See: |doc line| There are differen...

9 years ago | 0

Answered
How to import specific columns from huge csv file?
Accessing a text file columnwise is a very tedious job, even for a computer. Therefore creating huge text files as e.g. CSV is a...

9 years ago | 0

Answered
how solve index exceed matrix dimension??
On my computer the code runs fine. Perhaps you have redefined a builtin function like |eye|, |disp|, |circshift| or |round| as a...

9 years ago | 0

| accepted

Answered
I have 20 different structures with different names but identical fields. How can I create a loop to reference each different structure?
@Chris: Blame the 3rd party. It is really ugly to provide data consisting of variables called "M10_T8", which obviously hide par...

9 years ago | 0

Answered
How to update area on iteration process?
file = 'rice.png'; I = imread(file); TBD = im2uint8(id(:)); T = graythresh(I2); Th = uint8(255*T1); ...

9 years ago | 0

Answered
Help me to fix the error " Array dimensions must match for binary array op"
Well, what is your question? You cannot subtract a [240, 432, 3] array from a [720,1280, 3] array. This is not defined mathemati...

9 years ago | 0

Answered
How to vectorise the filter function with multiple window-sizes?
You can save 25% runtime by calculating the |srqt()| only of the used values and create the padded signal once only - and some s...

9 years ago | 1

| accepted

Answered
How to get minimum value among more than two matrix
Do not store the arrays in different variables, but as an array: A = [1 2 3;0 0 5] B = [3 2 3;0 0 3] C = [1 5 3;0 0 2...

9 years ago | 0

Answered
Mex file crash after many run
Do not use a |long| to catch the output of |mxGetScalar|, which replies a double. |int| is not a good choice also for |a| and |b...

9 years ago | 1

| accepted

Answered
Error using loadlibrary, no supported compiler or SDK was found despite installed .NET 4.6 SDK
You do not need the .NET SDK, but a "compiler or SDK". "SDK" means "Software Development Kit", such that it is not enough to ins...

9 years ago | 0

Answered
How do I shift the axes labeling in matlab?
You cannot control the position of the tick labels. Does changing the tick length help? <https://www.mathworks.com/help/matlab/r...

9 years ago | 0

Answered
How can I compare the scale of two y axis in a subplot and adjust them to each other?
Perhaps this helps: <https://www.mathworks.com/help/matlab/creating_plots/customize-graph-with-two-y-axes.html>

9 years ago | 0

Answered
How to calculate number of function evaluation used?
function fx = f(x) persistent Count if isempty(Count) Count = 0; end if nargin == 0 % Reply counter and rese...

9 years ago | 0

Answered
how to delete file in a folder from a datapath on mysql table?
All you need is a |delete()| command with the file name. Unfortunately it is not clear, where the file name is stored. Perhaps y...

9 years ago | 0

Answered
Is interpolation faster in Simulink or Matlab?
You can use the compiled Mex version <https://www.mathworks.com/matlabcentral/fileexchange/25463-scaletime FEX: ScaleTime>.

9 years ago | 0

| accepted

Load more