dipanka tanu sarmah
Followers: 0 Following: 0
Statistik
RANG
17.746
of 295.448
REPUTATION
2
BEITRÄGE
0 Fragen
3 Antworten
ANTWORTZUSTIMMUNG
0.00%
ERHALTENE STIMMEN
1
RANG
of 20.227
REPUTATION
N/A
DURCHSCHNITTLICHE BEWERTUNG
0.00
BEITRÄGE
0 Dateien
DOWNLOADS
0
ALL TIME DOWNLOADS
0
BEITRÄGE
0 Beiträge
BEITRÄGE
0 Öffentlich Kanäle
DURCHSCHNITTLICHE BEWERTUNG
BEITRÄGE
0 Highlights
DURCHSCHNITTLICHE ANZAHL DER LIKES
Feeds
Gelöst
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...
etwa 7 Jahre vor
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))
etwa 7 Jahre vor | 1
Gelöst
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...
etwa 7 Jahre vor
Gelöst
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] ...
etwa 7 Jahre vor
Gelöst
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...
etwa 7 Jahre vor
Gelöst
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,...
etwa 7 Jahre vor
Gelöst
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...
etwa 7 Jahre vor
Gelöst
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....
etwa 7 Jahre vor
Gelöst
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: * ...
etwa 7 Jahre vor
Gelöst
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...
etwa 7 Jahre vor
Gelöst
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...
etwa 7 Jahre vor
Gelöst
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...
etwa 7 Jahre vor
Gelöst
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...
etwa 7 Jahre vor
Gelöst
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...
etwa 7 Jahre vor
Gelöst
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]
etwa 7 Jahre vor
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; ...
etwa 7 Jahre vor | 0
Gelöst
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...
etwa 7 Jahre vor
Gelöst
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".
etwa 7 Jahre vor
Gelöst
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...
etwa 7 Jahre vor
Gelöst
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...
etwa 7 Jahre vor
Gelöst
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...
etwa 7 Jahre vor
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)) ...
etwa 7 Jahre vor | 0
Gelöst
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...
etwa 7 Jahre vor
Gelöst
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.
etwa 7 Jahre vor
Gelöst
Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...
etwa 7 Jahre vor
Gelöst
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...
etwa 7 Jahre vor
Gelöst
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...
etwa 7 Jahre vor
Gelöst
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...
etwa 7 Jahre vor