dipanka tanu sarmah
Followers: 0 Following: 0
Statistiques
RANG
17 746
of 295 495
RÉPUTATION
2
CONTRIBUTIONS
0 Questions
3 Réponses
ACCEPTATION DE VOS RÉPONSES
0.00%
VOTES REÇUS
1
RANG
of 20 240
RÉPUTATION
N/A
CLASSEMENT MOYEN
0.00
CONTRIBUTIONS
0 Fichier
TÉLÉCHARGEMENTS
0
ALL TIME TÉLÉCHARGEMENTS
0
CONTRIBUTIONS
0 Publications
CONTRIBUTIONS
0 Public Chaîne
CLASSEMENT MOYEN
CONTRIBUTIONS
0 Point fort
NOMBRE MOYEN DE LIKES
Feeds
A résolu
Return unique values without sorting
If the input vector A is [42 1 1], the output value B must be the unique values [42 1] The *values of B are in the s...
environ 7 ans il y a
Count number of specific values in matrix
along with this if you want to count the number of NaN ,(if there any) use nnz(isnan(m))
environ 7 ans il y a | 1
A résolu
Return elements unique to either input
Given two numeric inputs a and b, return a row vector that contains the numbers found in only a or only b, but not both. For ex...
environ 7 ans il y a
A résolu
Replicate elements in vectors
Replicate each element of a row vector (with NaN) a constant number of times. Examples n=2, A=[1 2 3] -> [1 1 2 2 3 3] ...
environ 7 ans il y a
A résolu
Find the largest value in the 3D matrix
Given a 3D matrix A, find the largest value. Example >> A = 1:9; >> A = reshape(A,[3 1 3]); >> islargest(A) a...
environ 7 ans il y a
A résolu
Check if number exists in vector
Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...
environ 7 ans il y a
A résolu
Generate a vector like 1,2,2,3,3,3,4,4,4,4
Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2...
environ 7 ans il y a
A résolu
Getting the indices from a vector
This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to <http://www.mathworks....
environ 7 ans il y a
A résolu
Cell Counting: How Many Draws?
You are given a cell array containing information about a number of soccer games. Each cell contains one of the following: * ...
environ 7 ans il y a
A résolu
Reverse the Words (not letters) of a String
*Description* Change the words of a string such that the words appear in reverse order. You may assume that the string is a n...
environ 7 ans il y a
A résolu
Number of 1s in a binary string
Find the number of 1s in the given binary string. Example. If the input string is '1100101', the output is 4. If the input stri...
environ 7 ans il y a
A résolu
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...
environ 7 ans il y a
A résolu
Scoring for oriented dominoes
Given a list of ordered pairs, and the order they should be placed in a line, find the sum of the absolute values of the differe...
environ 7 ans il y a
A résolu
Implement simple rotation cypher
If given a letter from the set: [abc...xyz] and a shift, implement a shift cypher. Example: 'abc' with a shi...
environ 7 ans il y a
A résolu
Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]
environ 7 ans il y a
Is there a way to obtain desired index without using 'find'?
you can use the following function : function posX = findPosition(x,y) posX=[]; for i =1:length(x) p=x-y; ...
environ 7 ans il y a | 0
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 7 ans il y a
A résolu
The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".
environ 7 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 7 ans il y a
A résolu
Find the numeric mean of the prime numbers in a matrix.
There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...
environ 7 ans il y a
A résolu
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...
environ 7 ans il y a
find repeating numbers
function y = repeated(x) for i=1:length(x) if length(find(x==i)) >=2 y{i,1}=x(i); y{i,2}=length(find(x==i)) ...
environ 7 ans il y a | 0
A résolu
Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0
environ 7 ans il y a
A résolu
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...
environ 7 ans il y a
A résolu
Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.
environ 7 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 7 ans il y a
A résolu
Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...
environ 7 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 7 ans il y a
A résolu
Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...
environ 7 ans il y a