已解决


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

7 years 前

已解决


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

7 years 前

已解决


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

7 years 前

已解决


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 years 前

已解决


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

7 years 前

提问


getting MISRA C:2012 Rule 10.1 warning in model advisor with bitwise operation in stateflow
Hi, I am using R2015b with embedded coder, and I am getting Model advisor warning on MISRA C:2012 saying bitwise operations on ...

8 years 前 | 0 个回答 | 0

0

个回答

提问


Embedded Coder / Simulink & Stateflow : how to force inputs to be passed by reference?
Is there way to reuse the same memory location of the input for the outputs - essentially passed by reference? The use case I h...

8 years 前 | 1 个回答 | 0

1

个回答