Control Theory Enthusiast

Solved

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

20 dagen ago

Solved

~~~~~~~ WAVE ~~~~~~~~~

|The WAVE generator| Once upon a time there was a river. 'Sum' was passing by the river. He saw the water of the river that w...

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

ongeveer 2 maanden ago

Solved

Best Fit RMS

Given a set of data as x and y, find the <http://en.wikipedia.org/wiki/Root_mean_square RMS> value between the data and its best...

ongeveer 2 maanden ago

Solved

Back to basics - mean of corner elements of a matrix

Calculate the mean of corner elements of a matrix. e.g. a=[1 2 3; 4 5 6; 7 8 9;] Mean = (1+3+7+9)/4 = 5

ongeveer 2 maanden ago

Solved

Sum of the Matrix Elements

Add up all the elements in a NxM matrix where N signifies the number of the rows and M signifies the number of the columns. E...

ongeveer 2 maanden ago

Solved

Sum the elements in either diagonal of a square matrix

Sum the elements of a square matrix that lie on either the major diagonal or anti-diagonal. (Include all elements that are part ...

ongeveer 2 maanden ago

Solved

Sum of odd numbers in a matrix

Find the sum of all the odd numbers in a matrix. Example x = [2 3 5 7 1 4 11] y = 27

ongeveer 2 maanden ago

Solved

Say something funny

Say something funny, or not. Your solution will be (fully automatically and objectively) scored based on how clever or funny ...

ongeveer 2 maanden ago

Answered

How to input two signals to one transfer function?

I would suggest to create a state space system for the slider and then convert it to transfer function model. While defining s...

How to input two signals to one transfer function?

I would suggest to create a state space system for the slider and then convert it to transfer function model. While defining s...

3 maanden ago | 0

Answered

How can one accomplish a H∞ tuning of fixed-structure controllers using the command "hinfstruct" for a DISCRETE system.

It is because of MATLAB version. For 2015b, The documentation page for hinfstruct is: https://www.mathworks.com/help/release...

How can one accomplish a H∞ tuning of fixed-structure controllers using the command "hinfstruct" for a DISCRETE system.

It is because of MATLAB version. For 2015b, The documentation page for hinfstruct is: https://www.mathworks.com/help/release...

3 maanden ago | 0

| accepted

Solved

Number of toolboxes?

Return a number equal to the number of toolboxes available to the Cody solvers.

3 maanden ago

Solved

Number of Horns on a unicorn!

Calculate the number of horns on a *unicorn*! And I'm talking about a unicorn with not more than one horn on it!

3 maanden ago

Solved

Compare two input matrices

Check which input matrix has more elements. Return "1" if matrix A has more elements than matrix B. Otherwise return "0". Exa...

3 maanden ago

Solved

Basic arrays operations.

Apply element-by-element binary operation 'fun' to two arrays (A and B).

3 maanden ago

Solved

Multiply a column by a row

* Given a column vector C and and a row vector R. * Output a matrix M. * Every column of M equals to C multiplied by correspon...

4 maanden ago

Solved

CONVERT TAN TO SIN

In a right angle triangle ABC given the tan(A) then find sin(A) For example tan(A)=3/4 then sin(A)=3/5

4 maanden ago

Solved

Area of a pentagon

Given the side of a regular pentagon and its apothem return the area of pentagon. Remember the area of pentagon is calculate ...

4 maanden ago

Solved

Knights and Knaves (part 1)

This is a Matlab adaptation of the <http://en.wikipedia.org/wiki/Knights_and_Knaves Knights and Knaves> logical puzzles. You ...

4 maanden ago

Solved

Implement simple rotation cypher

If given a letter from the set: [abc...xyz] and a shift, implement a shift cypher. Example: 'abc' with a shi...

4 maanden ago

Solved

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

4 maanden ago

Solved

microseconds passed today

Calculate the amount of microseconds passed for a given date string. Return the value, rounded to the nearest integer, as a stri...

4 maanden ago

Answered

Time axis as x axis

When you do plot(signal) Matlab plots the signal values for each data point. But if your x-axis do not vary in the steps of ...

Time axis as x axis

When you do plot(signal) Matlab plots the signal values for each data point. But if your x-axis do not vary in the steps of ...

4 maanden ago | 0

Answered

How can I import my graph as a signal to Simulink?

Lookup table is what you need. Below is a link for a video on lookup tables: https://www.youtube.com/watch?v=HmfwKoFHrO4

How can I import my graph as a signal to Simulink?

Lookup table is what you need. Below is a link for a video on lookup tables: https://www.youtube.com/watch?v=HmfwKoFHrO4

4 maanden ago | 1