Community Profile

# Richard Zappulla

### .

Last seen: etwa ein Jahr ago Active since 2016

All

#### Content Feed

View by

Solved

Determinants
Given a square matrix(A), find the determinant(d). For example: A = [1,3;4,5] d = 1*5-4*3 = -7

etwa 5 Jahre ago

Off-The-Shelf compatibility can be found here: <https://www.mathworks.com/programs/products/simulink-real-time/supported/hardwar...

etwa 5 Jahre ago | 0

You can use the "From File" block in the Simulink/Sources Group. Note, this will incrementally read from the MAT file. This also...

etwa 5 Jahre ago | 0

Solved

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

etwa 5 Jahre ago

Enabling a subsystem in a multi rate Simulink model at specific time or with a delay
To me, it sounds like you are trying to use the enabled sub-systems and pulse generators as a "scheduler" of sorts. I am not su...

etwa 5 Jahre ago | 0

Why function gradmag isn´t working for me?
|gradmag| is not standard MATLAB function. If downloaded it from the file exchange or GITHUB, make sure the folder in which it ...

etwa 5 Jahre ago | 0

As for saving the data, I would suggest using a "To File" block (under the "Sinks" folder). In the image below, I used a vector ...

etwa 5 Jahre ago | 0

Matlab function input define
In my opinion, I would look at passing function handles into your function for |X|, |Y|, or |Z|. The workflow would look someth...

etwa 5 Jahre ago | 0

Anyone know where this simulink block comes from? Not in my library
The block you have there is a "To Workspace" block which was renamed "Input Voltage". It is located in the "Simulink\Sinks" fold...

etwa 5 Jahre ago | 0

Time to frequency domain
Hi, For converting the data to the frequency domain, I would suggest using the |fft()| function. The examples from the MATLAB...

etwa 5 Jahre ago | 0

Solved

Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

etwa 5 Jahre ago

Solved

Is the Point in a Circle?
Check whether a point or multiple points is/are in a circle centered at point (x0, y0) with radius r. Points = [x, y]; c...

etwa 5 Jahre ago

How do I set a flag on Simulink?
You can use a relay block in the Discontinuities folder. You input your signal, |f|, into the block and set the |Switch On Point...

mehr als 5 Jahre ago | 1

| accepted

How do I create a function and run it.
Every function in MATLAB uses the following structure: function [ouput_vars] = foo(input,vars) % % Code goes here.... ...

mehr als 5 Jahre ago | 3

| accepted

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

mehr als 5 Jahre ago

Solved

Length of the hypotenuse
Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<http://upload....

mehr als 5 Jahre ago

Solved

Set the array elements whose value is 13 to 0
Input A either an array or a vector (which can be empty) Output B will be the same size as A . All elements of A equal to 13...

mehr als 5 Jahre ago

Solved

Compute the step response of a DC motor
Compute the step response of a DC motor shown below <<http://blogs.mathworks.com/images/seth/cody/dc-motor.png>> The param...

mehr als 5 Jahre ago

Solved

Produce a Fibonacci sequence
Construct a diagram that generates the Fibonacci sequence: 1, 1, 2, 3, 5, 8, 13, 21, 34.....up to 377 The Fibonacci sequ...

mehr als 5 Jahre ago

Solved

Counting pulses in a signal
Count the number of pulses that are the result of summing each pulse generator block. Pulse Generator blocks produce a recurr...

mehr als 5 Jahre ago

Solved

Add damping to a mass spring system
Model an ideal mass-spring-damper system shown below where the spring is initially stretched. <<http://blogs.mathworks.com/im...

mehr als 5 Jahre ago

Solved

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

mehr als 5 Jahre ago

Solved

Model a simple pendulum
Model a simple pendulum of length 200cm with bob of mass 100g and plot the position in degrees. The pendulum starts at 30 degree...

mehr als 5 Jahre ago

Solved

Model a falling body
An object is falling freely from a height of 22 meters under the force of gravity. <<http://blogs.mathworks.com/images/seth/c...

mehr als 5 Jahre ago

Solved

Model a mass spring system
Model an ideal mass-spring system shown below where the spring is initially stretched. <<http://blogs.mathworks.com/images/se...

mehr als 5 Jahre ago

Solved

Make a half wave rectifier
Produce a signal that outputs the given sine wave source when it is greater than zero and outputs zero when it is less than zero...

mehr als 5 Jahre ago

Solved

Make a full wave rectifier
Produce a full wave rectifier waveform for the given sine wave source. For a sine wave input, the output of the full wave rec...

mehr als 5 Jahre ago

Solved

Square Diagonal
If n is the given number, then make a diagonal matrix of size 2*2 with the square of that number.

mehr als 5 Jahre ago

Solved

Y=X
Given an input variable x, output a variable y that is equal in value to x. Example: Input x = 1 Output y is 1 Inp...

mehr als 5 Jahre ago

Solved