Answered
how to solve a second order differential equation using Euler's method?
It is worth to be nitpicking: % x0 is the initial guess No, x0 is the initial value of the trajectory when you consider t...

8 years ago | 0

Answered
how can i alphabetize an array without using the built in sort or min or max?
A simplification to crop the words to have the same length: function less = isLessWord(A, B) if length(A) < length(B) ...

8 years ago | 0

Answered
Error using mex Undefined symbols for architecture x86_64: "_mxErrMsgTxt"
I guess, you have taken the code from <https://sites.google.com/site/yeoyeo02/software/sphericaldemonsrelease>. The first line o...

8 years ago | 0

Answered
Possible solution to this problem
A bold guess: Data = [0, 2.3, 2.3, 2.3; ... 0, 6.5, 6.5, 6.5; ... 0, 3.4, 3.4, 3.4; ... 0,...

8 years ago | 0

Answered
MATLAB 2015 and later problem with figure management
Setting the DefaultFigureCreateFcn globally is brute. Note that it is applied for all dialog boxes also. Such global settings ha...

8 years ago | 1

Answered
Same code poor performance on different server with same RAM and processors
The processors are different. The E5-2670 v3 has AVX2, but the ES-2697 v2 has not. But this should not result in a factor of 10....

8 years ago | 0

Answered
Why minGW not work as expected?
The error message is clear: The 2nd argument of |mxCreateNumericArray| is expected to be a |mwSize*|, but it is a |int*| in your...

8 years ago | 0

| accepted

Answered
why it takes too long to install matlab r2018 packages ?
There can be many reasons. Maybe the server of MathWorks is busy. Or your connection was fast yesterday, but not today - perhaps...

8 years ago | 0

Answered
Unassigned output arguments - How to handle the 'Cancel' button in the App Designer
What about inserting a dummy value for |data1|: if isempty(userInput) data1 = []; % <== inserted return end ...

8 years ago | 1

| accepted

Answered
Error in opening .m files
Restore the Matlab folder from your backup. If you do not have a backup - bad idea. Try to install Matlab again without a furthe...

8 years ago | 0

Answered
GUI How to put a javacomponent in an uipanel?
Try to set the Parent in the |javacomponent| call: jRangeSlider = com.jidesoft.swing.RangeSlider(1,10,2,7); % min,max,low,...

8 years ago | 0

| accepted

Answered
How to expose a function call trail &/or debugging mode when compiled as .net
What is the exact difference between "crash" and "hung up"? An infinite loop is both. If the M functions have a proper error ...

8 years ago | 0

| accepted

Answered
multiple GUIs on the same figure
Matlab can handle multiple open figures easily. So the best solution to avoid the need to closing a figure before opening anothe...

8 years ago | 0

| accepted

Answered
How to find the maximum values from each column 2 and 3 and find the corresponding values from column 1?
find corresponding values from column 1 for those maximum values in Column 2 and 3 This would be: [out1, index1] = m...

8 years ago | 0

| accepted

Answered
How can I play audio file located in a certain path?
No, there is not one command for this, but three: * <https://www.mathworks.com/help/matlab/ref/audioread.html audioread> * <...

8 years ago | 1

| accepted

Answered
How to resolve the Errors regarding Undefined function 'real' for input arguments of type 'matlab.ui.Figure'.
According to the error message, your |x| is a handle of a figure. Then |real()| is not defined to convert it. If you post the...

8 years ago | 0

Answered
Is there a possibility to join the strings out of cells in cells?
There is no standard function to solve this special problem. Therefore a loop is the best and easiest idea. I do not understa...

8 years ago | 0

Answered
Converting the 3D Matrix to 2D Matrix
The general reordering of elements can be done by: y = reshape(permute(reshape(x, Size1), Order2), Size3) In your case (...

8 years ago | 0

| accepted

Answered
Creating a set of equally spaced cylinders with common centre
You can use |cylinder| to get the coordinates of one cylinder and apply some arithmetic to translate and rotate them. This mi...

8 years ago | 0

Answered
In this interaction I am not considering the values of U equal to ' w ' but I also do not want to take values of U that are at a distance of 10 percent low and above the values of w.. Can someone tell me what I should add to the code to achieve this?
Unfortunately |ismembertol| uses a relative tolerance considering the largest element of the inputs. You need the relative toler...

8 years ago | 0

| accepted

Answered
read few lines from one *.m file and jump to another *.m file
This is not the purpose of program code. If you need only some lines of a specific function, create a copy of this functions and...

8 years ago | 0

| accepted

Answered
Running bash commands in MATLAB command window
|system| is the way to go. "It doesn't work" does not allow to understand, what you have done, what you see and what you want in...

8 years ago | 0

Answered
How do I import EEG (format- .hdf5) data to Matlab?
A hint: Why not asking an internet search engine for "Matlab import hdf5"? I get some useful links on top of the list, but I hes...

8 years ago | 0

Answered
Why I display this error?
It sounds like the images have different sizes. Use |imresize| to adjust the dimensions. A more detailed answer is possible, ...

8 years ago | 1

| accepted

Answered
Sorting the elements of a matrix, Part 3
If you want the sorting on 2x2 sub-matrices, create 2x2 sub-matrices at first: AA = reshape(A, 2, 2, 2); BB = sort(AA, 2...

8 years ago | 0

| accepted

Answered
White artifacts in colorbar for PDF/EPS plots
The white diagonal line is not created by MATLAB, but by the PDF viewer. It vanishes, if you use e.g. display it with Acrobat re...

8 years ago | 0

| accepted

Answered
What is the need of calculating mean,variance for an image
Mean and variance of what? The R, G and B channels of a color image? Or of the intensities of gray channels? This can be needed ...

8 years ago | 0

Answered
parts of the graphs are missing
You remove the points from the same x, y and z values step by step. Store the original values in x0, y0, z0 instead: [x0, y...

8 years ago | 0

| accepted

Answered
how can i solve matrix differential equation in ode45 i send the code i am using .... is there any problem in my code or there is a different way to solve
It is hard to decide, if the code is correct, if you do not explain, what it should do. |ode45()| is for numerical integrations...

8 years ago | 0

Answered
Piecing a Puzzle together in Matlab
You can concatenate two arrays horizontally and vertically by the |cat()| command: x = rand(2, 2); y = rand(2, 2); h ...

8 years ago | 0

Load more