Control Theory Enthusiast

Solved

Pizza!

Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

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

20 days 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

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

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

20 days 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

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

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

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

2 months ago | 0

| accepted

Solved

Number of toolboxes?

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

2 months 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!

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

2 months ago

Solved

Basic arrays operations.

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

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

3 months 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

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

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

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

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

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

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

3 months 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

3 months ago | 1

Answered

Back-calculating a variable in equation to give a value of zero

k = 1; % outside the loop % inside the loop F(k) = ... %rest remains unchanged k = k+1;

Back-calculating a variable in equation to give a value of zero

k = 1; % outside the loop % inside the loop F(k) = ... %rest remains unchanged k = k+1;

4 months ago | 0

| accepted

Answered

V2X simulation in Matlab

Check this out : https://www.mathworks.com/matlabcentral/answers/526314-model-to-create-v2x-applications#answer_433103

V2X simulation in Matlab

Check this out : https://www.mathworks.com/matlabcentral/answers/526314-model-to-create-v2x-applications#answer_433103

4 months ago | 0