Answered
I have an image on which I want to find the intensity profiles of multiple lines along the horizontal direction.
IntensityProfiles = YourImage(RowNumbers, :, :); Densities = mean(IntensityProfiles, 2);

4 years ago | 0

| accepted

Answered
How many multiplications in one convolution
For a 1D convolution, one step in a convolution involves as many multiplications as min() of the lengths of the two parameters (...

4 years ago | 0

| accepted

Answered
writematrix: missing "newline" option...
writematrix() does not support any ways to configure the end of line. However, if the issue issue is windows vs linux, then you...

4 years ago | 0

Answered
im trying to remove noises on a grayscale image usid medfilt2 but im getting this error
Your file 24.tif is not a grayscale image. It might be an RGB image. It might be a Gray + Alpha image. It might be an RGB + Al...

4 years ago | 0

| accepted

Answered
Plot values ​​for different time steps in table
perstep = 10498; col2 = YourTable{:,2}; col3 = YourTable{:,3}; L = numel(col2); full_steps = floor(L / perstep); left_ove...

4 years ago | 0

Answered
convolution, unrecognized function ir variable 'UP'
UP = BandPass; Insert that line before the line where the error is occuring.

4 years ago | 0

Answered
Matlab won't output all values of my code into a Microsoft Excel Table
x = 1; y = -4.0; Those are scalar, and each time you assign to those variables you assign a scalar. When you lo...

4 years ago | 0

Answered
Weird vertical artifacts appearing when saving images
normalize() with range 0 to 60 produces double precision output in the range 0 to 60. When you imwrite double precision then ...

4 years ago | 0

Answered
Having issues with precision output of symbolic expression for a Legendre polynomial.
sympref('FloatingPointOutput', 0)

4 years ago | 1

| accepted

Answered
Interpolation from a table by using two variables
data = [ NaN 0 3000 6000 0 0 0 0 0.1 0.4340 0.45120 0.47110 0.2 0.39540 0.40990 0.42670 ...

4 years ago | 1

| accepted

Answered
How to convert a table from degree to radians?
a = [-10 -0.65 -5 -0.21 0 0.22 5 0.58 10 0.92 15 1.16 20 1.80]; b = a(:,1); c = a(:,2); brad = de...

4 years ago | 0

Answered
Add boxes to surf() function output
warp()

4 years ago | 1

| accepted

Answered
separate noise from audio
I recently encountered an article that described how for the last few decades, the UK has been recording the very small changes ...

4 years ago | 1

Answered
How to create the matrix for every image pixel from HSI image in matlab?
<https://www.mathworks.com/matlabcentral/answers/853385-reading-a-raw-file-from-a-hyperspectral-camera-using-envi-information#an...

4 years ago | 0

Answered
How to flip an array without using the flip command ?
If the vector V length is N then the first output is V(N), the second is V(N-1), the third is V(N-2).... You should be able t...

4 years ago | 0

Answered
R-square and the F statistic... error
MHL(r, :) is a row. You transpose it to a column and pass it as the second parameter to regress(). That is a column vector, not ...

4 years ago | 0

| accepted

Answered
i can't get my while loop to work
while ~(isequal(RunAgain, 0) || isequal(RunAgain, 1))

4 years ago | 0

Answered
Looking for an Auto Differentiation package can be easily used as a function
No, the available package would require changes to your data structure. <https://www.mathworks.com/help/deeplearning/ug/deep...

4 years ago | 0

Answered
Alternative to the sort function
<https://www.mathworks.com/matlabcentral/answers/49226-how-to-apply-a-mean-filter-for-3x3#comment_2111490> and look for bogosort...

4 years ago | 0

| accepted

Answered
I am getting unrealistic values using vpasolve
As a third parameter to vpasolve pass in a 5 x 2 array of constraints, lower bounds and upper bounds. In particular f should be ...

4 years ago | 0

Answered
Script stuck running forever
I doubt that code is creating an unending loop. I think it *much* more likely that the ode is "stiff" for at least a range ...

4 years ago | 0

Answered
Why did I receive these error messages? Unrecognized field name "angle1". angle1=180-handles.angle1; gui_mainfcn(gui_State, varargin{:}); feval(varargin{:});
What happens if edit3_Callback has not been executed yet, so you have not stored anything in handles.angle1 ?

4 years ago | 0

Answered
Finding column index of the first instance of 1
C = sum(cumprod(~X, 2),1) + 1; C will be one more than the number of columns for any row that has no 1.

4 years ago | 0

| accepted

Answered
I want to eliminate a variable in an array based in its order.
index = 0; while ~isempty(Vector) for k=1:3 index = mod(index,length(Vector)) + 1; end Vector(index) ...

4 years ago | 0

Answered
Reshape a multidimensional matrix keeping one size constant
reshape(A, [], 91) reshape(A, [], 5, 25) %probably not what you want reshape(A, 5, 25, []) %probably not what you want ...

4 years ago | 0

| accepted

Answered
Do I need to install toolboxes, or Matlab alone is enough for most uses?
If you are referring to installing a system compiler such as MinGW: I personally only need to compile things (with MEX) about on...

4 years ago | 1

Answered
"urlencode" function with char error
MATLAB does not offer a function with that name. It offers only matlab.net.internal.urlencode

4 years ago | 0

| accepted

Answered
Matlab 2D plotting by using given points
Caution: you had 0,71 instead of 0.71 y=[0.74,0.71,0.68,0.64,0.59,0.53,0.48,0.42,0.35,0.29,0.21,0.17,0.11,0.065,0.047,0.016,0.0...

4 years ago | 1

| accepted

Answered
How to fix an error in my code?
if strcmp(arith_operator, '+')

4 years ago | 0

Load more