Resuelto


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

alrededor de 12 años hace

Resuelto


inner product of two vectors
inner product of two vectors

alrededor de 12 años hace

Resuelto


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

alrededor de 12 años hace

Resuelto


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

alrededor de 12 años hace

Resuelto


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

alrededor de 12 años hace

Resuelto


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

alrededor de 12 años hace

Resuelto


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

alrededor de 12 años hace

Resuelto


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

alrededor de 12 años hace

Resuelto


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

alrededor de 12 años hace

Resuelto


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

alrededor de 12 años hace

Resuelto


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

alrededor de 12 años hace

Resuelto


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

alrededor de 12 años hace

Resuelto


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

alrededor de 12 años hace

Resuelto


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

alrededor de 12 años hace

Resuelto


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

alrededor de 12 años hace

Resuelto


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

alrededor de 12 años hace

Resuelto


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

alrededor de 12 años hace

Resuelto


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

alrededor de 12 años hace

Resuelto


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

alrededor de 12 años hace

Resuelto


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

alrededor de 12 años hace

Resuelto


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

alrededor de 12 años hace

Resuelto


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

alrededor de 12 años hace

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

alrededor de 12 años hace | 1

| aceptada

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

alrededor de 12 años hace | 4

Respondida
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')...

alrededor de 12 años hace | 0

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

alrededor de 12 años hace | 0

| aceptada

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

alrededor de 12 años hace | 4

| aceptada

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

alrededor de 12 años hace | 0

| aceptada

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

alrededor de 12 años hace | 1

| aceptada

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

alrededor de 12 años hace | 0

| aceptada

Cargar más