Answered
Find the layer the minimum number occurs
array=randi(10,4,4,3); [rows colm z]=size(array); for j=1:z; num(j)=sum(sum(array(:,:,j)==1)+sum(array(:,:,j)==2)+sum...

8 years ago | 0

Answered
How to plot specific point on plot?
You can do that by using Markers Detail <https://www.mathworks.com/examples/matlab/mw/graphics-ex39715892-display-markers-at-max...

8 years ago | 0

Answered
How to get a number in matlab
m1=.1+.8*1i; m2=.5+.8*1i; A=(m2-conj(m2)).*(m1-m2).*(m1-conj(m2)).*(m1.^2+conj(m1).^2)+m1^2.*(m1-conj(m1)).*((m1-m2).*(c...

8 years ago | 0

| accepted

Answered
how to increse no digits after decimal point?
fprintf('%.12f', ans) %Upto 12 floating points, you can change the value range <</matlabcentral/answers/uploaded_files/1307...

8 years ago | 0

| accepted

Answered
how can xor first pixel with second and second with third and so on (for binary image)
image=imread('image_name.image_format'); %e.g. im1.jpg bw_image=im2bw(rgb2gray(image)); [row colm]=size(bw_image); fo...

8 years ago | 0

| accepted

Answered
how to import multiple file and calculate a mean?
%Save all files in symmetrically before doing the operation %Names for example f1,f2,f3... %Save the folder of files...

8 years ago | 0

Answered
Why my generated matrix has a square bracket at every line?
kuu =@(x,y) -ku*sin(x)*cos(y), -ku*sin(x)*sin(y), kz; <</matlabcentral/answers/uploaded_files/130677/11.png>>

8 years ago | 1

Answered
Error in '''''Invalid first data argument''''
clc clear all close all; rp=10; N=10^-6; idx=1; Is3=zeros(1,length([0:5:40])); for sp=0:5:40 ...

8 years ago | 0

| accepted

Answered
please how do i load images from a folder to a cnn model? each time i try it, i get the error message: Struct contents reference from a non-struct array object.
% Please save all images name in symmetrically before doing the operation % names for example im1,im22,im33... %Save ...

8 years ago | 0

| accepted

Answered
why i'm getting the error-Subscript indices must either be real positive integers or logicals? in the last line code
clc clear all l=0.5; u=5; q=0.2; e=1; s=30; c=1; n=0:0.1:40; % not used here a=l./(2*u*(l+q...

8 years ago | 0

Answered
Can someone please help me?
Check <https://in.mathworks.com/matlabcentral/answers/416500-i-have-this-error-and-i-don-t-know-how-to-solve-it-can-someone-help...

8 years ago | 0

| accepted

Answered
Sharpness of an image
For finding the Sharpness Estimation From Image Gradients, you can use <https://in.mathworks.com/matlabcentral/fileexchange/3239...

8 years ago | 0

| accepted

Answered
I have this error, and I don't know how to solve it.Can someone help me please?
The complete code is available in <%20%20The%20complete%20code%20is%20available%20in%20%3Chttps://bit.ly/2BVT6Z3%20this%20Book%3...

8 years ago | 1

Answered
Could someone explain the squeeze function
Question: would it be possible to extract the row 1 column 2 value from each layer of myimage? *Yes* data1=myimage(1,2,:...

8 years ago | 0

| accepted

Answered
Does using the randperm function affect the probability?
*No* p=randperm(n) returns a row vector containing a random permutation of the integers from 1 to n inclusive. depending on ...

8 years ago | 0

Answered
How to work on the white region of this binary mask?
Yes You can do that easily, Considering binary_image.jpg as a binary image BW1=binary_image; binary_image(BW1==1)=your d...

8 years ago | 0

Answered
Can anyone provide me with the matab code for Huffman encoding to compress an image?
Check <https://in.mathworks.com/matlabcentral/answers/56071-how-can-i-do-huffman-encoding-in-image-compression here> Also <h...

8 years ago | 0

Answered
How do I normalize each row from dataset below?
normalized=normr(data)

8 years ago | 0

| accepted

Answered
Is it possible to reduce contrast in certain region of an image
Decide the region of Interest Like Draw an ellipse over the image to specify the region of interest, using the imellipse functio...

8 years ago | 0

Answered
I have been faced with the 'Index exceeds array bounds'. How can I solve it?
function f=fibonacci2(max) f(1)=0; f(2)=1; k=3; while f < max f(k)=f(k-1)+f(k-2); if f (k) > m...

8 years ago | 1

| accepted

Answered
What is the difference between rand and randi when using it in a 3D array
Its similar as usual, *rand* for uniformly distributed random number including floatings numbers, whereas *randi* for integers.

8 years ago | 6

| accepted

Answered
How to save all the generated figures automatically from a Matlab code to a specified folder in my computer?
Inside the loop, after Figure generated, here k loop counts fig=figure destination='D:\Kalyan Works\Matlab Work\folder...

8 years ago | 0

| accepted

Answered
How to detrend the signal
y=detrend(signal_name); More detail <https://in.mathworks.com/help/matlab/ref/detrend.html here>

8 years ago | 0

| accepted

Answered
Can I make matlab not show the type after a command in the command line?
>> {1,'hej'}; Just use Semicolon at the end of statement.

8 years ago | 0

Answered
How to convert this .mat file to .xls or.dat file?
%Rename the mat file to some simple name say file1.mat (Not Mandatory) mat_file=load('file1.mat'); f=fieldnames(mat_file...

8 years ago | 0

Answered
The number of samples to overlap must be less than the length of the segments
%@Walter sir already mentioned define Window length and lenght of fft, its works fs =16000; t=0:1/fs:0.5; signal=2*...

8 years ago | 0

| accepted

Answered
How to remove this concave?
% You can change the thresholds values as per your requirements/More accurate BW=im2bw(rgb2gray(imread('bin1.png')));...

8 years ago | 1

| accepted

Answered
filtering ECG signal using 4th order low pass filter
You can try in following way- For detail visit <https://in.mathworks.com/help/dsp/ug/removing-high-frequency-noise-from-an-ecg-s...

8 years ago | 1

| accepted

Answered
Swap 3 random elements in an array
% I have tried this only swap two elements or even numbers, definite swap with each other is only possible in even numbers. ...

8 years ago | 1

Answered
Reading 100 image in a loop and save them in a Matrix
% Save all images name in a sequence manner before doing the operation % names for example im1,im2,im3... %Save ...

8 years ago | 0

Load more