Working in Automotive domain

Professional Interests: Matlab, Simulink ,State flow, S- Function , GUI, m-scripting, TLC , Embedded C, Automotive domain, OBD..

Solved

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

2 years ago

Solved

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

2 years ago

Question

Blocks changes color if clicked when model is running

Matlab 2007 and TargetLink. when I am running my model and click on any block it changes it color to green permanently! I ...

3 years ago | 0 answers | 0

Question

Difference between RTW and TargetLink

Somebody can explain difference between RTW and TargetLink ways of generating code Thank you in advance!

4 years ago | 1 answer | 0

Question

Read SignalBuilder in Excel sheet

I wanted to read entire signal builder and write it in excel, i tried [time, data, signames, groupnames] =signalbuilder(block)...

4 years ago | 0 answers | 0

Solved

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]

4 years ago

Solved

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

4 years ago

Solved

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

4 years ago

Solved

Area of an Isoceles Triangle

An isosceles triangle has equal sides of length x and a base of length y. Find the area, A, of the triangle. <<http://upload...

4 years ago

Solved

Length of a short side

Calculate the length of the short side, a, of a right-angled triangle with hypotenuse of length c, and other short side of lengt...

4 years ago

Solved

Determine Whether an array is empty

Input a matrix x, output y is TRUE if x is empty, otherwise FALSE.

4 years ago

Solved

Try 1.5.4: Celsius to Fahrenheit

Write a program to convert an input given in Celsius to Fahrenheit. Examples: Input celsiusValue = 100 Output fahrValu...

4 years ago

Solved

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

4 years ago

Solved

Area of an equilateral triangle

Calculate the area of an equilateral triangle of side x. <<http://upload.wikimedia.org/wikipedia/commons/e/e0/Equilateral-tr...

4 years ago

Solved

Assigning a sum

* Write a statement that assigns numCoins with numNickels + numDimes.

4 years ago

Solved

Add two numbers

Calculate the sum of two numbers. Example input = [2 3] output = 5

4 years ago

Solved

Plus x: A first program

_Solve this problem in Mathwork's online Cody system._ Write a statement that assigns y with 5 plus x. Ex: If input x = 2,...

4 years ago

Solved

Circle area using pi

Write a statement that assigns circleArea with the circle's area given circleRadius. Use the built-in mathematical constant pi. ...

4 years ago

Solved

Get the length of a given vector

Given a vector x, the output y should equal the length of x.

4 years ago

Solved

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

4 years ago

Solved

radius of a spherical planet

you just measured its surface area, that is the input.

4 years ago

Solved

Circle area using pi

Given a circle's radius, compute the circle's area. Use the built-in mathematical constant pi.

4 years ago

Solved

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.

4 years ago

Solved

Pizza!

Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

4 years ago

Solved

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

4 years ago

Solved

Determine if input is odd

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

4 years ago

Solved

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

4 years ago