A résolu


Sorted highest to lowest?
Return 1 if the input is sorted from highest to lowest, 0 if not. Example: 1:7 -> 0 [7 5 2] -> 1

environ 12 ans il y a

A résolu


inner product of two vectors
inner product of two vectors

environ 12 ans il y a

A résolu


All capital?
Are all the letters in the input string capital letters? Examples: 'MNOP' -> 1 'MN0P' -> 0

environ 12 ans il y a

A résolu


Pascal's Triangle
Given an integer n >= 0, generate the length n+1 row vector representing the n-th row of <http://en.wikipedia.org/wiki/Pascals_t...

environ 12 ans il y a

A résolu


Return a list sorted by number of occurrences
Given a vector x, return a vector y of the unique values in x sorted by the number of occurrences in x. Ties are resolved by a ...

environ 12 ans il y a

A résolu


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

environ 12 ans il y a

A résolu


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

environ 12 ans il y a

A résolu


Remove the vowels
Remove all the vowels in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill' Output s2 is 'Jck nd Jll wn...

environ 12 ans il y a

A résolu


Cell joiner
You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...

environ 12 ans il y a

A résolu


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

environ 12 ans il y a

A résolu


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

environ 12 ans il y a

A résolu


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

environ 12 ans il y a

A résolu


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

environ 12 ans il y a

A résolu


Given an unsigned integer x, find the largest y by rearranging the bits in x
Given an unsigned integer x, find the largest y by rearranging the bits in x. Example: Input x = 10 Output y is 12 ...

environ 12 ans il y a

A résolu


Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

environ 12 ans il y a

A résolu


Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

environ 12 ans il y a

A résolu


Add two numbers
Given a and b, return the sum a+b in c.

environ 12 ans il y a

A résolu


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

environ 12 ans il y a

A résolu


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

environ 12 ans il y a

A résolu


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

environ 12 ans il y a

A résolu


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

environ 12 ans il y a

A résolu


How to find the position of an element in a vector without using the find function
Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for. Examples: fin...

environ 12 ans il y a

A répondu
Introducing a border/outline to objects in an image.
Irgb = imread('ap78s9.jpg'); Igray = rgb2gray(Irgb); Ibw = im2bw(Igray,graythresh(Igray)); Ifill = imfill(Ibw,'holes'...

environ 12 ans il y a | 1

| A accepté

A répondu
how to insert elements in listbox?
*In openingfcn* function untitled_OpeningFcn(hObject, eventdata, handles, varargin) handles.output = hObject; handles...

environ 12 ans il y a | 4

A répondu
How to get the barcode region to red color??
Hi, Kim I agree with you. To determine the barcode just use boundingbox from regionprops :) Irgb = imread('15wmqe9.jpg')...

environ 12 ans il y a | 0

A répondu
Textscanning and exporting several text files
Hi, Liisa Look at line data = textscan(fid, '%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f'); Did you mean data = textscan...

environ 12 ans il y a | 0

| A accepté

A répondu
how to insert elements in listbox?
Hi, Usama. Maybe you are seeking for something like this? <<http://i1196.photobucket.com/albums/aa410/nasa078/Mathworks/GU...

environ 12 ans il y a | 4

| A accepté

A répondu
How to save a variable which changes runtime in Matlab?
Did you mean : clear; for i = 1 : 3 s(i) = i; if i == 1 save indice.mat s; else ...

environ 12 ans il y a | 0

| A accepté

A répondu
How to get the barcode region to red color??
When use the first image (vertical barcode image), I just simply try to change the position of *abs(dIx)* and *abs(dIy)* int...

environ 12 ans il y a | 1

| A accepté

A répondu
Pattern Recognition with Perceptron
Hi, Benard A perceptron can be created with the *newp* function. Eq: net = newp(PR,S,TF,LF); - PR is m x 2 matrix of [...

environ 12 ans il y a | 0

| A accepté

Charger plus