Risolto


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

quasi 9 anni fa

Risolto


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

quasi 9 anni fa

Risolto


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

quasi 9 anni fa

Risolto


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

quasi 9 anni fa

Risolto


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

quasi 9 anni fa

Domanda


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

oltre 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 9 anni fa | 1 risposta | 0

1

risposta