A résolu


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

plus de 5 ans il y a

A résolu


Find the numeric mean of the prime numbers in a matrix.
There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

presque 6 ans il y a

A résolu


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

presque 6 ans il y a

A résolu


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

presque 6 ans il y a

A résolu


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

presque 6 ans il y a

Réponse apportée
switch controlled by signal
In case if one value to be given to the to selection input of switch block, you can use below options: Use constant block and ...

presque 6 ans il y a | 0

Réponse apportée
Set of SISO transfer functions to MIMO transfer function
As you want to create Transfer function model in MATLAB, you can use ‘tf’ function. For your case it will be: Numerator = {1,2...

presque 6 ans il y a | 0

Réponse apportée
Distance-Time data extraction
As per my understanding, as (distance<=0.5nm) and distance is 2nd column, so it should be: data = dlmread('Minimumdistance.txt'...

presque 6 ans il y a | 0

Réponse apportée
Increment goto name in Simulink
You can do it programmatically through add_block and set_param, as per my understanding. Please refer the following example. s...

presque 6 ans il y a | 0

Réponse apportée
How do I display logged local data of stateflow in Logic Analyzer
As per my knowledge, there is no such way in MATLAB R2018b to view local variables of Stateflow in Logic Analyzer. But yes, it...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
Simulink block for initialization
As per my understanding, you want to use one constant value while initializing and afterwards the feedback value. So, actually ...

presque 6 ans il y a | 0

| A accepté