Community Profile

photo

Gautam

Last seen: Today 2015년부터 활동

Followers: 0   Following: 0

통계

All
  • First Review
  • Knowledgeable Level 2
  • Revival Level 1
  • First Answer
  • Solver

배지 보기

Feeds

보기 기준

문제를 풀었습니다


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

거의 4년 전

답변 있음
I'm doing predictive torque control in simulink, while running I'm getting error as variable x_opt is not fully defined on some execution paths. How to correct the program? Can any one send the code for it?
The error would indicate that when you create your function and if you have implemented if-elses or multiple ifs and in one of t...

거의 4년 전 | 0

답변 있음
Nonlinear State-Space simulation
1) You can use ode45 for solving these equations in MATLAB (Refer the examples here to understand how to use ode45 for solving n...

거의 4년 전 | 0

답변 있음
Add dates in x-axis
Referring the doc: datetick is useful when plotting numeric values that are serial date numbers. Days is just an array of numbe...

거의 4년 전 | 0

| 수락됨

답변 있음
Livescript: having an output below a section
Click on the option 'Output inline' on your live-script

거의 4년 전 | 0

| 수락됨

답변 있음
Writing an Optimization Problem
I know you want to find optimal values of x&y, but while using fmincon or any of the optimization routines, you should pass only...

거의 4년 전 | 2

답변 있음
how to delete (all) Requirement Traceability links of Stateflow transition-lines by command
I'm assuming that you have your 55x1 array of transition objects with you. Post that you can use 'rmi' API to programmatically h...

거의 4년 전 | 0

| 수락됨

답변 있음
Fixing errors to run an electric vehicle simulation
There is a 'solver configuration' block in Simscape -> Utilities library. You need to add it to any part of your Simscape networ...

거의 4년 전 | 0

답변 있음
How to take user input values to create a row vector and column vector?
Try inputdlg instead. a = str2num(char(inputdlg('Enter a: '))); b = str2num(char(inputdlg('Enter b: '))); c = a*b;

거의 4년 전 | 0

| 수락됨

답변 있음
Extract Text from Model Info Block
You can use get_param to query info populated in 'Model Info' block in your model. For instance, if the name of the model is 'sa...

거의 4년 전 | 0

문제를 풀었습니다


Interpolator
You have a two vectors, a and b. They are monotonic and the same length. Given a value, va, where va is between a(1) and a(end...

대략 4년 전

문제를 풀었습니다


"mirror" matrix
Create n x 2n "mirror" matrix of this type: Examples For n = 2 m = [ 1 2 2 1 1 2 2 1 ] For n = 3 m = ...

거의 5년 전

문제를 풀었습니다


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

거의 5년 전

문제를 풀었습니다


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

거의 5년 전

문제를 풀었습니다


Distance walked 1D
Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...

7년 초과 전

문제를 풀었습니다


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

7년 초과 전

문제를 풀었습니다


The Goldbach Conjecture
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...

7년 초과 전

문제를 풀었습니다


Which values occur exactly three times?
Return a list of all values (sorted smallest to largest) that appear exactly three times in the input vector x. So if x = [1 2...

7년 초과 전

문제를 풀었습니다


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

7년 초과 전

문제를 풀었습니다


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

7년 초과 전

문제를 풀었습니다


Sort a list of complex numbers based on far they are from the origin.
Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

7년 초과 전

문제를 풀었습니다


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

7년 초과 전

문제를 풀었습니다


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

7년 초과 전

문제를 풀었습니다


Nearest Numbers
Given a row vector of numbers, find the indices of the two nearest numbers. Examples: [index1 index2] = nearestNumbers([2 5 3...

7년 초과 전

문제를 풀었습니다


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]

7년 초과 전

문제를 풀었습니다


Back and Forth Rows
Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...

7년 초과 전

문제를 풀었습니다


Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

7년 초과 전

문제를 풀었습니다


Project Euler: Problem 1, Multiples of 3 and 5
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23...

거의 8년 전

문제를 풀었습니다


Project Euler: Problem 10, Sum of Primes
The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below the input, N. Thank you <http:/...

거의 8년 전

문제를 풀었습니다


Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

거의 8년 전

더 보기