Question

Getting Both Symbolic Output and Numeric Output

I would like to generate symbolic expressions representing the computations involved in a snippet of code (shown below), while s...

4 years ago | 1 answer | 0

Question

Rigid Transform to Get Rotation About X-axis

Consider the figure below: <</matlabcentral/answers/uploaded_files/48471/Screen%20Shot%202016-03-25%20at%203.25.54%20PM.png>>...

5 years ago | 0 answers | 0

Question

Brushless DC Motor Not Modeled as Expected

I have been building up <https://drive.google.com/file/d/0B0ElH85QJC5WenBKdkw0cF9Vcms/view?usp=sharing a model for a DJI F450> q...

5 years ago | 1 answer | 0

Question

Change Revolute Joint Axis in SimMechanics

I am leveraging SimMechanics, SimElectronics, and Simulink to model a quadcopter system for an embedded system class project ( <...

5 years ago | 1 answer | 3

Question

Dynamics Simulation Inconsistencies in SimMechanics Model

I have been learning how to use SimMechanics and Simulink to model an F450 quadcopter system. I used SimMechanics Link for Solid...

5 years ago | 1 answer | 0

Question

Ideal Torque and Rotational Motion Sensors

I am trying to monitor the angular velocity and torque generated by a brushless DC motor. I am using the 'elec_brushless_dc_moto...

5 years ago | 1 answer | 2

Question

Unexpected Dynamics in SimMechanics Model

Hi community, I am in the process of learning Simulink, SimMechanics, and SimElectronics. I am leveraging these tools to mode...

5 years ago | 1 answer | 1

Solved

Column Removal

Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

8 years ago

Solved

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

8 years ago

Solved

Determine if input is odd

Given the input n, return true if n is odd or false if n is even.

8 years ago

Solved

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

8 years ago

Solved

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

8 years ago

Solved

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

8 years ago

Question

Row/Column Deletion Formatting

Though the title sounds quite trivial, I am confused as to how MATLAB formats the resulting matrix after a deletion. For inst...

8 years ago | 1 answer | 0

Question

Plotting a 3-D Function with Interpolated Shading

I am having issues with the *meshgrid* ( <http://www.mathworks.com/help/matlab/ref/meshgrid.html> ) function. I need X and Y to ...

8 years ago | 1 answer | 0