Resuelto


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

más de 4 años hace

Resuelto


Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
The given function returns the index of the maximum value in a given matrix. such as X=[4,3,4,5,9,12,0,5] Ans= 6 if maxim...

más de 4 años hace

Resuelto


If-then-else
Complete the function below such that if the value of x is in the range 10 to 14, inclusive, the value 18 is assigned to y. Oth...

más de 4 años hace

Resuelto


Is the input divisible by 3?
Return true if the input is divisible by 3 and false if not.

más de 4 años hace

Resuelto


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]

más de 4 años hace

Resuelto


How to subtract?
*&plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn* * Imagine you need to subtract one...

más de 4 años hace

Resuelto


Matlab Basics - y as a function of x
Write a function to calculate y as a function of x, such that y = 6x^2 + 5x - 2

más de 4 años hace

Resuelto


Matlab Basics - Set unwanted parts of a vector to zero
Consider a vector x, of length >= 7, write a script to set elements 2, 5, and 6 to zero. Example x = [1 2 3 4 5 6 7] --> ...

más de 4 años hace

Resuelto


Remove the Zero
Given an array n, remove all zeros

más de 4 años hace

Resuelto


Back to basics 25 - Valid variable names
Covering some basic topics I haven't seen elsewhere on Cody. Given a string, return true if it is a valid MATLAB variable nam...

más de 4 años hace

Resuelto


Back to basics 26 - Keywords
Covering some basic topics I haven't seen elsewhere on Cody. Return a cell array of strings of all MATLAB keywords.

más de 4 años hace

Resuelto


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

más de 4 años hace

Pregunta


AD9361 Transceiver Help with FastLock Profile
I am trying to use the fastlock profiles on the 9361 for my development. I have the E310 system object, but it cannot re-tune f...

casi 5 años hace | 1 respuesta | 0

1

respuesta

Respondida
[DEPRECATED] What frustrates you about MATLAB?
Code Generation for HDL (or C) through a Simulink block. The ones index works fine in Matlab, but it has no place in code gen...

alrededor de 5 años hace | 1

Respondida
Why do I need to specify the datatype when I assign a variable in Embedded MATLAB block in Simulink 6.3 (R14SP3)?
This is a huge flaw. Code generation for C code, is almost always, targeted for integer manipulation. Why is it that Simulink ...

más de 5 años hace | 0

Respondida
How can I change the build folder of a model?
Simulink.fileGenControl has a nice help-file to do exactly what you wanted. You need to first get the current configuration: c...

más de 5 años hace | 1

Pregunta


Why does Simulink default to LCC Compiler instead of using Xilinx SDK toolchain and how do I correct the tool chain?
I have a wrapper function that contains C Code. I would like to deploy it on a USRP E310. Support packages are all properly in...

más de 5 años hace | 0 respuestas | 0

0

respuestas

Resuelto


Connect blocks in a model
Connect the blocks in the model to produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/connect-blocks...

más de 5 años hace

Resuelto


Make a low pass filter
Make a first order low pass filter that will filter out the high frequency oscillations for the given input signal. The cut-off ...

más de 5 años hace

Resuelto


Produce a cosine wave
Produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/cosine-eqn.png>>

más de 5 años hace

Resuelto


Fill a zeros matrix
The aim is to fill an array of all zeros given a numerical value and the index of row and columns for this value. 3 Inputs: ...

más de 5 años hace

Resuelto


Is my wife right?
Regardless of input, output the string 'yes'.

más de 5 años hace

Resuelto


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

más de 5 años hace

Resuelto


Remove the air bubbles
Given a matrix a, return a matrix b in which all the zeros have "bubbled" to the top. That is, any zeros in a given column shoul...

más de 5 años hace

Resuelto


Project Euler: Problem 6, Natural numbers, squares and sums.
The sum of the squares of the first ten natural numbers is, 1^2 + 2^2 + ... + 10^2 = 385 The square of the sum of the first ...

más de 5 años hace

Resuelto


Return the Fibonacci Sequence
Write a code which returns the Fibonacci Sequence such that the largest value in the sequence is less than the input integer N. ...

más de 5 años hace

Resuelto


Project Euler: Problem 2, Sum of even Fibonacci
Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 te...

más de 5 años hace

Resuelto


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.

más de 5 años hace

Resuelto


Given a 4x4 matrix, swap the two middle columns
If a = [1 2 3 4; 1 2 3 4; 1 2 3 4; 1 2 3 4]; then the result is ans = 1 3 2 4 1 3 2...

más de 5 años hace

Resuelto


Remove NaN ?
input -> matrix (n*m) with at least one element equal to NaN; output -> matrix(p*m), the same matrix where we deleted the enti...

más de 5 años hace

Cargar más