Answered

Help In Separation of objects in an image into different images

Check this code: clc clear all close all x=imbinarize(rgb2gray(imread('Capture.JPG'))); imshow(x); [L n]=bwlabel(x); fo...

Help In Separation of objects in an image into different images

Check this code: clc clear all close all x=imbinarize(rgb2gray(imread('Capture.JPG'))); imshow(x); [L n]=bwlabel(x); fo...

1 hour ago | 0

Question

Is the code for binary logistic regression is correct using glmfit? I am new in this domain , so confused a bit

%% clc clear all close all warning off %% g=[2.7810836 2.550537003 0 1.465489372 2.362125076 0 3.396561688 4.400293529 0...

2 months ago | 0 answers | 0

Solved

Converting binary to decimals

Convert binary to decimals. Example: 010111 = 23. 110000 = 48.

4 months ago

Answered

covariance and correlation

Execute the below code , in th cova variable covariance & in the corr variable , correlation result will be stored... clc clea...

covariance and correlation

Execute the below code , in th cova variable covariance & in the corr variable , correlation result will be stored... clc clea...

4 months ago | 0

Answered

Write a MATLAB program to sketch the following discrete-time signals in the time range of –10 ≤ n ≤ 10. Please label all the graph axes clearly. If the sequence is complex, plot the magnitude and angle separately. i) x(n) = u(n) – u(n – 3)

n1=-10:10; x=(n1>=0); n2=n1+3; y=x; u=min(min(n1),min(n2)); t=max(max(n1),max(n2)); r=u:1:t; z1=[]; temp=1; for i=1:len...

Write a MATLAB program to sketch the following discrete-time signals in the time range of –10 ≤ n ≤ 10. Please label all the graph axes clearly. If the sequence is complex, plot the magnitude and angle separately. i) x(n) = u(n) – u(n – 3)

n1=-10:10; x=(n1>=0); n2=n1+3; y=x; u=min(min(n1),min(n2)); t=max(max(n1),max(n2)); r=u:1:t; z1=[]; temp=1; for i=1:len...

4 months ago | 0

Answered

k nearest neighbor regression function

clc clear all close all x=input('Enter the x coordinates:'); y=input('Enter the y coordinates:'); z=[]; a=input('Enter the...

k nearest neighbor regression function

clc clear all close all x=input('Enter the x coordinates:'); y=input('Enter the y coordinates:'); z=[]; a=input('Enter the...

4 months ago | 0

Submitted

K-means clustering without using built-in function

k mean algorithm without using built in functions in MATLAB

5 months ago | 5 downloads |

Solved

Prime Letters = Removing

Given a string, remove all the letters which in ASCII Code are prime numbers. For Example: s1 = 'Determine which array e...

6 months ago

Solved

Given a window, how many subsets of a vector sum positive

Given a vector: [1 0 -1 3 2 -3 1] and a window of 2, A sliding window would find: 1 + 0 = 1 0 - 1 = -1 ...

6 months ago

Solved

Is this is a Tic Tac Toe X Win?

For the game of <https://en.wikipedia.org/wiki/Tic-tac-toe Tic Tac Toe> we will be storing the state of the game in a matrix M. ...

6 months ago

Solved

Find the two most distant points

Given a collection of points, return the indices of the rows that contain the two points most distant from one another. The inpu...

6 months ago

Solved

Find the Oldest Person in a Room

Given two input vectors: * |name| - user last names * |age| - corresponding age of the person Return the name of the ol...

6 months ago

Solved

Crop an Image

A grayscale image is represented as a matrix in MATLAB. Each matrix element represents a pixel in the image. An element value re...

6 months ago

Solved

Phoneword Translator

Given an alphanumeric telephone number (Ex. 1-800-COLLECT), return the purely numeric phone number as a vector. This problem use...

7 months ago

Solved

Simple polynomial evaluation

Compute the value of a polynomial of degree n with all coefficients '1', at value x. n is always n>=0. p(x)=1+x+x^2+...+x^n...

7 months ago

Solved

Polynomial Multiplication

Multiply two polynomial equation.Given polynomial coefficients a and b.

7 months ago

Solved

Make a checkerboard matrix

Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Examp...

9 months ago

Solved

Longest Divisor Run

Given the vector a, find the longest run of consecutive numbers that can be evenly divided by the same number d where d > 1. ...

9 months ago

Solved

7 segment LED display

Given a whole number, output how many segments would be lit up to display it on a 7 segment LED display (see Wikipedia: <http://...

9 months ago

Solved

Bubble sort

Write your own bubble sort function ( <https://en.wikipedia.org/wiki/Bubble_sort>) to sort all elements in x in ascending order....

10 months ago

Solved

Nearest Numbers

Given a row vector of numbers, find the indices of the two nearest numbers. Examples: [index1 index2] = nearestNumbers([2 5 3...

10 months ago

Solved

Return the first and last character of a string

Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...

10 months ago

Solved

Remove all the consonants

Remove all the consonants in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill'; Output s2 is 'a ...

10 months ago

Solved

Too mean-spirited

Find the mean of each consecutive pair of numbers in the input row vector. For example, x=[1 2 3] ----> y = [1.5 2.5] x=[1...

10 months ago

Solved

Draw 'F'

Draw a x-by-x matrix 'F' using 1 and 0. (x is odd and bigger than 4) Example: x=5 ans= [1 1 1 1 1 1 0 0 0 0 ...

10 months ago

Solved

Draw 'D'.

Draw a x-by-x matrix 'D' using 0 and 1. example: x=4 ans= [1 1 1 0 1 0 0 1 1 0 0 1 1 1 1 0]

10 months ago

Solved

Draw 'H'

Draw a x-by-x matrix 'H' using 1 and 0. (x is odd and bigger than 2) Example: x=5 ans= [1 0 0 0 1 1 0 0 0 1 ...

10 months ago

Solved

Draw 'C'.

Given x as input, generate a x-by-x matrix 'C' using 0 and 1. example: x=4 ans= [0 1 1 1 1 0 0 0 ...

10 months ago

Solved

Draw 'J'

Given n as input, generate a n-by-n matrix 'J' using 0 and 1 . Example: n=5 ans= [0 0 0 0 1 0 0 0 0 1 0 0 ...

10 months ago

Solved

Draw a 'N'!

Given n as input, generate a n-by-n matrix 'N' using 0 and 1 . Example: n=5 ans= [1 0 0 0 1 1 1 0 0 1 1 0 ...

10 months ago