Answered
What does the command A <- A[,-1] do ?
I have no idea, most of all because it is not a MATLAB command. # There is no "<-" operator in Matlab # You cannot apply an ...

8 years ago | 1

| accepted

Answered
plz rectyfy the code
Your code is nearly unreadable. Split the lines, apply a proper indentation (Ctrl-A, Ctrl-I in the editor) and insert meaningful...

8 years ago | 0

Answered
How to get individual image from video file with the .mat format?
MAT files are created by Matlab and can contain data of any class and shape. Knowing the class of the single images is not suffi...

8 years ago | 0

| accepted

Answered
Switch between 3 different ODE using event functions
[t,y,te,ye,ie] = ode45(@(t,y) eqmi(t,y), [tstart tend], y0, odeset('Events', @ZustandI)); [t,y,te,ye,ie] = ode45(@(t,y) eqm...

8 years ago | 1

| accepted

Answered
How to find out the minimum positive value of 100x100x100 matrix?
X = randn(100, 100, 100); % Test data X(X <= 0) = inf; [minX, index] = min(X(:)); Now use |index| to get the ot...

8 years ago | 2

Answered
I would like to use a picture from a page for my bachelor thesis.
This is the public forum. The contributors post comments and answers voluntarily. To contact the official support team, use the ...

8 years ago | 0

Answered
grouping of M-files in editor
The editor does not offer a method for grouping. Are you sure it is useful to have so many file open simultaneously? It might be...

8 years ago | 0

| accepted

Answered
Algorithm optimization: do not use for loop
Creating the temporary arrays |somme_norme(1:i-1,:)| is cruel! Remember how much work this is for n=16384000. If I guess, that |...

8 years ago | 0

Answered
.m files are not opening in editor
Did you read this: <https://www.mathworks.com/matlabcentral/answers/93468-why-is-a-new-instance-of-matlab-opened-when-i-double-c...

8 years ago | 0

| accepted

Answered
"Linear" algorithm for griddedInterpolant
Of course the output is predictable and even exactly defined as expected. If you extrapolate the values, the marginal linear seg...

8 years ago | 0

| accepted

Answered
How to calculate the mean of each row from several columns?
a = rand(10, 1); b = rand(10, 1); c = rand(10, 1); m = (a + b + c) / 3 Or less efficient: m = mean([a, b, c...

8 years ago | 2

| accepted

Answered
New figure doesn't appear but its results get adjusted in old figure (1st figure) with old name. give solution?
The debugger is your friend: <https://www.mathworks.com/help/matlab/matlab_prog/debugging-process-and-features.html Matlab: Debu...

8 years ago | 0

Answered
How to fill excel cell color using MATLAB command, and not by the actxserver method?
There is no chance to interact with Excel without using the actxserver. So please explain, why you want to avoid this. Until fur...

8 years ago | 0

| accepted

Answered
How to get a return value(or exit code) from matlab
What about writing a file inside Matlab and using its contents from the Windows Command prompt? Use a function instead of a s...

8 years ago | 1

| accepted

Answered
speed up the code
This is slightly faster: tic for r = 1:64 for c = 1:64 Neighbour = InputOverlap(r:r+2*Radius, c:c+2*Radius...

8 years ago | 0

| accepted

Answered
Understanding nargout(@plot) and detecting "varargout-only" functions
|plot| is a built-in command. It can have 1 output argument, such that |nargout(@plot)| is expected to reply 1. But surely p...

8 years ago | 1

Answered
Calculate standard deviation for different groups
If you want to set the x_bar values of the formula to |mean(Measurement_y)|, why not implementing this as function? functio...

8 years ago | 0

| accepted

Answered
Get n-th value from a double array in a cell array
Why do you get the indices of non-empty cells, if you check again, if the length is greater than |MinUpdates|? The latter is suf...

8 years ago | 0

| accepted

Answered
Help with extracting certain lines from a text file?
Str = fileread('Thinker.txt'); CStr = strsplit(Str, '\n'); match = strncmp(CStr, 'vertex ', 7); % or 'vertex.' ? ...

8 years ago | 1

Answered
Problem in purchasing Signal Processing Toolbox
This is the public forum. For question concerning your license or buying toolboxes, ask the official support of MathWorks. See t...

8 years ago | 0

Answered
Passing a temporary parameter from time step to time step using ode113?
This is a job for a |persistent| variable: function dx = RSDGL(t, x) persistent zero_old if isempty(zero_old) ze...

8 years ago | 1

| accepted

Answered
How to save figure in pdf without margins?
The value of |a| depends on the wanted size of the PDF. You can choose it freely to what you need. To remove the border use: ...

8 years ago | 1

Answered
Why is this wrong?
figure axes xv = linspace(log(5e5), log(1e7), 100); yv = linspace(log(0.6), log(2000), 100); [X, Y] = mesh...

8 years ago | 2

| accepted

Answered
Finding the frequency of each number in a string
If you mean: s = [1,4,2,4,4,1] su = unique(s); n = histc(s, su)

8 years ago | 0

Answered
find value of matrix by position
I *guess*, that the elements of |bb| are the row indices related to |aa|, and the column index is the corresponding column of |b...

8 years ago | 0

| accepted

Answered
Find the string into an special bracket
* ^ is the start of the string, not of the searched pattern. * Equivalently $ is the end of the string, not the pattern, too. ...

8 years ago | 0

| accepted

Answered
How can I clear the RAM memory used by MATLAB without closing the window?
There are 2 causes for an exhausted RAM: # The code requires more RAM than you have. # There is a memory leak in the code. W...

8 years ago | 1

| accepted

Answered
how can i increase the number of my data?
It is not clear what you are asking for. Maybe one of these 2 idea help you: 1. Change the x values: x = 1:10; ...

8 years ago | 0

| accepted

Answered
Checking file or data integrity
Maybe with <https://www.mathworks.com/matlabcentral/fileexchange/31272-datahash FEX: DataHash> or <https://www.mathworks.com/mat...

8 years ago | 0

| accepted

Answered
How to upload Children of Axes from array
Do not try to manage the 'Children' property, but simply store the list of handles in an array. Then set the 'Visible' property ...

8 years ago | 1

Load more