Community Profile

photo

Peter Babu


Last seen: 대략 4년 전 2013년부터 활동

통계

All
  • Thankful Level 1
  • First Answer
  • Commenter
  • Creator
  • Promoter
  • Solver

배지 보기

Content Feed

보기 기준

문제를 풀었습니다


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

6년 초과 전

문제를 풀었습니다


matlab indian players
answer is one of the indian matlab player(just for fun dont take serious)

8년 초과 전

질문


How to add a S-Function Builder block programatically into a model.
How to add a S-Function Builder block programatically into a model. add_block('builtin\S-Function Builder','sys','Position',[...

9년 초과 전 | 답변 수: 0 | 0

0

답변

문제를 풀었습니다


Close MATLAB with keyboard
Close MATLAB with keyboard without using mouse

9년 초과 전

문제


Get the variable value from a string and generate sum
Get the variable value from a string. Example. x = 'A=10' y = 'B=20' Result = (x+y) Result = 30

9년 초과 전 | 0 | 솔버 수: 18

문제를 풀었습니다


Make one big string out of two smaller strings
If you have two small strings, like 'a' and 'b', return them put together like 'ab'. 'a' and 'b' => 'ab' For extra ...

9년 초과 전

문제


Initialize a varible with an integer value from a another variable which is assigned with a character value.
Initialize a varible with an integer value from a another variable which is assigned with a character value. ex: Test = 'c'...

9년 초과 전 | 0 | 솔버 수: 15

문제를 풀었습니다


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

9년 초과 전

문제를 풀었습니다


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

9년 초과 전

문제를 풀었습니다


Length of the hypotenuse
Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<http://upload....

9년 초과 전

문제를 풀었습니다


Is this triangle right-angled?
Given three positive numbers a, b, c, where c is the largest number, return *true* if the triangle with sides a, b and c is righ...

9년 초과 전

문제를 풀었습니다


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

9년 초과 전

문제를 풀었습니다


Who is the smartest MATLAB programmer?
Who is the smartest MATLAB programmer? Examples: Input x = 'Is it Obama?' Output = 'Me!' Input x = 'Who ?' Ou...

9년 초과 전

문제를 풀었습니다


Create a row array using double colon operator
Create a row array from 9 to 1, using the double colon operator.

9년 초과 전

문제를 풀었습니다


Detect a number and replace with two NaN's
Write code which replaces the number 1 with two NaNs. Example X = [ 1 2 NaN 4 1 3 7 NaN 1 4 NaN 2] ...

9년 초과 전

문제를 풀었습니다


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

9년 초과 전

문제를 풀었습니다


Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

9년 초과 전

문제를 풀었습니다


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]

9년 초과 전

문제를 풀었습니다


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

9년 초과 전

문제를 풀었습니다


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

9년 초과 전

문제를 풀었습니다


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

9년 초과 전

문제를 풀었습니다


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

9년 초과 전

문제를 풀었습니다


Is my wife right?
Regardless of input, output the string 'yes'.

9년 초과 전

문제를 풀었습니다


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

9년 초과 전

문제를 풀었습니다


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

9년 초과 전

문제를 풀었습니다


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

9년 초과 전

답변 있음
function can not retrive varaible value from other function
Make the variable to global. Check the below code. function 1() global x; x = 10; x = x+10 return function 2()...

9년 초과 전 | 0

답변 있음
Could there be a demo on using canoe I/O from vector canoe block in simulink library
In Vector Canoe please choose menu => Configuration => Options=>General=>File Locations=> Location of user data: You will fin...

9년 초과 전 | 0

질문


Access Matlab base workspace variables from perl
Is it possible to access Matlab base workspace variables from perl ?

거의 10년 전 | 답변 수: 1 | 0

1

답변

질문


How to add new parameter to Simulink.Signal property window?
How to add new parameter to Simulink.Signal property window? Example : To add a field 'Value'

10년 초과 전 | 답변 수: 0 | 0

0

답변

더 보기