Answered
how to create binary matrix in matlab
For the First part of the question please refer to link here (@Walter Roberson's answer) Second part, this is broad way to expr...

7 years ago | 0

| accepted

Answered
Function in Separate File
Main Script: clear; clc; close all; %% Message Input message=input('Enter a message to encode: ', 's'); encryption_message=...

7 years ago | 0

| accepted

Answered
Please Help I am trying to get my add noise to my color image and then filter it out. Filtered channels don't retain the original picture.
Change this one, beacuse Red. Green ..are not in grayscale, see in worksspace or whos Red [yRed,x]=imhist(rgb2gray(Red)); [yGr...

7 years ago | 0

Answered
How can I extract only large connected region with eliminating unwanted lines in the segmented binary image?
How can I extract only large connected region ? largestBlob=bwareafilt(segmented_image, 1);

7 years ago | 0

| accepted

Answered
i use this for profile plot using selection but its not working
im=imread('test.jpg'); imshow(im); improfile; It open the imshow figure window with + cursor on it. Left Mouse click-number ...

7 years ago | 0

| accepted

Answered
How to make a Power Spectral Density plot
Read Here, the answer you are looking for Documentation

7 years ago | 0

Answered
How can I make an array with randomly choose from another matrix?
First One: A=[1 2 7 9] => how to build A like this> A=[1 1 2 2 7 7 9 9] result=repelem(A,2) 2nd One: >> A=[1 2 7 9]; >> ...

7 years ago | 0

| accepted

Answered
how to remove stars (background stars) from image?
Here forced all pixels (those all pixels having more than 150) to zero(black) You can edit the as per your requirements- im1=...

7 years ago | 0

| accepted

Answered
How do I remove the scattered noise from my Image?
You can do that in multiples ways- Use morphological operations (Documentation here) im=imread('image3.jpeg'); im2=im2bw(im); ...

7 years ago | 1

| accepted

Answered
subtracting images processing,
If you see the result image, its not exactly compleyely dark. If you subtract the similar pixel elements, definitely you get the...

7 years ago | 0

| accepted

Answered
How to draw equally sized squares
x=[-1, 1, 1, -1, -1]; y=[-1, -1, 1, 1, -1]; plot(x, y, 'r-'); fill(x,y,'b') hold on; r=1.0; th=linspace(0,2*pi) ; x=r*cos...

7 years ago | 0

Answered
Calculating Error and intercept on a log plot
ERROR Error using fit>iFit (line 127) X must be a matrix with one or two columns. Error in fit (line 108) [fitobj, goodness,...

7 years ago | 0

| accepted

Answered
How obtain coordinates of pixels within bwboundaries for each object?
Code for find the pixels of two withe segmented objects (Larger is object1 and circular object2) %Image raed, ensure that ima...

7 years ago | 0

Answered
algorithm for bwmorph(BW,'skel',Inf)?
Have you check in Matlab documentation, check here? You will get little idea of skel. Also you can check here, where two name o...

7 years ago | 0

Answered
Second Order ODE Error (Error in ode45 (line 115))
In the function file following line q is not defined ceq = sqrt(q*m*alpha*Fo/m/3/pi);

7 years ago | 0

Answered
fsolve will not work on my machine
Do the following; Save the function named as test.m function F=test(x) F=2*x+1; end 2. Call the function from diff...

7 years ago | 0

Answered
How can I fix this Imrotate error in my program?
imrotate(I, 180); Where I must be image, But in your case you rotatinng the I_graycolor= imshow(I_graycolor,map); figure window...

7 years ago | 0

Answered
please ineed help for this "Load the image ‘cameraman.tif’, find its dimensions and number of channels and display it."
img = imread('cameraman.tiff'); % Read the image [rows, colm, dim]=size(img); Here rows and clom gives the number of rows and ...

7 years ago | 0

Answered
error in test the retrain image
As you have use the following assignment inn function file img = imresize(img, [224, 224]); This way applies to grayscale ima...

7 years ago | 0

Answered
how to display different features with different color edges on a original image ?
I read your question two times, still If misundestood the question, let me know, I will delete the answer. I am doing here for...

7 years ago | 1

| accepted

Answered
encoding NRZ polar as square wave ?
Note: This same can be easily done without using for loop (recomended), but first try to understand the issue, where you did wro...

7 years ago | 0

| accepted

Answered
How to use matlab fuction in simulink
Save the following function file in same working directory (save file same name as fuction CalculPhases.m) function Phases =Cal...

7 years ago | 1

| accepted

Answered
How to compare or find out the P.S.N.R. value of two image.
For Gray level images, there are inbuilt psnr function there. For color image you can do the way PSNR_value=PSNR_rgb(noisyImag...

7 years ago | 0

Answered
error of Subscript indices must either be real positive integers or logicals, index exceeds matrix dimension,
There may be multiple error, I have noticed one immeditely You have defined dt1 as dt1=dx1/(a1*n); It return the value dt1...

7 years ago | 0

| accepted

Answered
Satisfying an equation using random numbers
theta=pi*(1/2-1*rand(1,10)); LHS=sqrt((1-sin(theta))./(1+sin(theta))); RHS=(1-tan(theta/2))./(1+tan(theta/2)); If your chec...

7 years ago | 0

Answered
MATLAB could not find modbus function
This modbus function introduced in R2017a

7 years ago | 0

Answered
Error opening .fig files
Have you tried this? fig1=openfig(figure_filename); %Only figure file name, ensure that figure in current directory

7 years ago | 0

Answered
How can i obtain the edge of an Image using Compass operator in matlab.. pls respond with matlab code
I have answered based on the defination from this paper (SOBEL COMPASS EDGE DETECTOR). hx=[-1 0 1;-2 0 2;-1 0 1]; hy=[-1 -2 -...

7 years ago | 0

Answered
change the graph from vertical to horizontal
As you did not provide A and B datas, you can do it in number of ways, which is suitable, please look on it. I have shown the ...

7 years ago | 2

| accepted

Answered
Enter matrix as table format in editor?
If I undestand the question, are you looking for this one or mat file?? M=[ 1 200 56; 67 0 34; 9 1123 467] Command ...

7 years ago | 0

Load more