Answered

Binary image colouring to red

Refer to the link below. https://www.mathworks.com/matlabcentral/answers/49610-how-to-color-a-binary-image This may solve your...

Binary image colouring to red

Refer to the link below. https://www.mathworks.com/matlabcentral/answers/49610-how-to-color-a-binary-image This may solve your...

4 months ago | 0

Answered

How i can calculate conditional probability in matlab

Refer to the link below. https://www.mathworks.com/matlabcentral/answers/349387-how-to-calculate-conditional-probability This ...

How i can calculate conditional probability in matlab

Refer to the link below. https://www.mathworks.com/matlabcentral/answers/349387-how-to-calculate-conditional-probability This ...

4 months ago | 0

Solved

Determine whether a vector is monotonically increasing

Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

4 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 ...

4 months ago

Solved

Finding Perfect Squares

Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

4 months ago

Solved

Remove any row in which a NaN appears

Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

4 months ago

Solved

Most nonzero elements in row

Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

4 months ago

Solved

Select every other element of a vector

Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

4 months ago

Solved

Find state names that end with the letter A

Given a list of US states, remove all the states that end with the letter A. Example: Input s1 = 'Alabama Montana Nebras...

4 months ago

Solved

Remove all the words that end with "ain"

Given the string s1, return the string s2 with the target characters removed. For example, given s1 = 'the main event' your ...

4 months ago

Solved

Scrabble Scores

Given a word, determine its score in <http://en.wikipedia.org/wiki/Scrabble Scrabble>. The input string will always be provi...

4 months ago

Solved

Target sorting

Sort the given list of numbers |a| according to how far away each element is from the target value |t|. The result should return...

4 months ago

Solved

Find all elements less than 0 or greater than 10 and replace them with NaN

Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

4 months ago

Solved

Counting Money

Add the numbers given in the cell array of strings. The strings represent amounts of money using this notation: $99,999.99. E...

4 months ago

Solved

Extract leading non-zero digit

<http://en.wikipedia.org/wiki/Benford%27s_law Benford's Law> states that the distribution of leading digits is not random. This...

4 months ago

Answered

Excel Columns to Matlab Array

Refer to the below link. https://in.mathworks.com/help/matlab/ref/readmatrix.html https://in.mathworks.com/help/matlab/ref/xls...

Excel Columns to Matlab Array

Refer to the below link. https://in.mathworks.com/help/matlab/ref/readmatrix.html https://in.mathworks.com/help/matlab/ref/xls...

4 months ago | 0

Answered

Scrape Website using MATLAB

Yes, you can. There is an inbuilt function called webread() which will scrape the website and return the content in it. After th...

Scrape Website using MATLAB

Yes, you can. There is an inbuilt function called webread() which will scrape the website and return the content in it. After th...

4 months ago | 0

| accepted

Solved

Nearest Numbers

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

4 months ago

Answered

Pushbutton to load .mat file

Refer to the link below. https://www.mathworks.com/matlabcentral/answers/293889-how-to-load-a-mat-file-with-a-push-button-calc...

Pushbutton to load .mat file

Refer to the link below. https://www.mathworks.com/matlabcentral/answers/293889-how-to-load-a-mat-file-with-a-push-button-calc...

4 months ago | 0

| accepted

Solved

Determine if input is odd

Given the input n, return true if n is odd or false if n is even.

4 months ago

Solved

Pangrams!

A pangram, or holoalphabetic sentence, is a sentence using every letter of the alphabet at least once. Example: Input s ...

4 months ago

Solved

Kaprekar Steps

6174 is the <http://en.wikipedia.org/wiki/6174_%28number%29 Kaprekar constant>. All natural numbers less than 10,000 (except som...

4 months ago

Answered

Saving data from loops

There are two ways to do it. x = []; for i = 1:n x = [x; choice(i)] end Above code will append the value of choice at i...

Saving data from loops

There are two ways to do it. x = []; for i = 1:n x = [x; choice(i)] end Above code will append the value of choice at i...

4 months ago | 0

Answered

Is it possible to calculate ohm law with data acquired with a daq using matlab script?

Yes you can acquire voltage data using digital trigger. Following documentation explains how daq command can help you do the sam...

Is it possible to calculate ohm law with data acquired with a daq using matlab script?

Yes you can acquire voltage data using digital trigger. Following documentation explains how daq command can help you do the sam...

4 months ago | 0

Answered

how to get the license for the online matlab

Matlab Online is not a free software but requires license. If you have have a student version or any other version of Matlab, yo...

how to get the license for the online matlab

Matlab Online is not a free software but requires license. If you have have a student version or any other version of Matlab, yo...

4 months ago | 0

Solved

Pattern matching

Given a matrix, m-by-n, find all the rows that have the same "increase, decrease, or stay same" pattern going across the columns...

4 months ago

Solved

QWERTY coordinates

Given a lowercase letter or a digit as input, return the row where that letter appears on a <http://en.wikipedia.org/wiki/Keyboa...

4 months ago

Solved

Which doors are open?

There are n doors in an alley. Initially they are all shut. You have been tasked to go down the alley n times, and open/shut the...

4 months ago

Solved

Remove the small words from a list of words.

Your job is to tidy up a list of words that appear in a string. The words are separated by one or more spaces. Remove all words ...

4 months ago