# Paul

**Statistics**

RANK**126**

of 242,527

REPUTATION**762**

CONTRIBUTIONS

**40** Questions

**307** Answers

ANSWER ACCEPTANCE **
45.0%
**

VOTES RECEIVED**90**

RANK

of 16,996

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

Calculate the complementary bivariate normal.

I think you can use mvncdf as: Cb = mvndcf([alpha alpha],[inf inf],[0 0],[1 rho;rho 1])

20 hours ago | 0

In 3 axis gyroscope the output (Wmeas) contains error or the output is without error?

Are you asking about a speciic gyro model provided in Matlab or is this a general question? In either case, the input to the th...

3 days ago | 0

| accepted

How to write piecewise function in symbolic form?

Use &, not && syms x(t) x(t) = piecewise(-2 < t & t <= -1 , t+2, -1 < t & t <= 1, 1, 1 < t & t <= 2, -t+2, 0) fplot(x(t),'-o...

4 days ago | 0

fft tool - amplitude dependence vs. frequency

For pure sinusoidal signals, the "expected" result is only obtained when the length, N, of the FFT satisfies N = M*Fs/F1 where...

4 days ago | 0

| accepted

How to use a matrix of 12*12 to form a matrix of 96*96?

It's too bad we can't do something like this: B = [1 2;3 4]; repeats = 2; % use a smaller example % R = blkdiag(repmat({B},1,r...

4 days ago | 1

Simulink continue simulation from last timestep

Unclear why Matlab Function blocks would slow anything down, at least not as a general rule. Save and Restore operating points ...

4 days ago | 1

| accepted

Is there a way to input an array from the workspace into a Simulink model chunk by chunk/per simulation step?

Can you use a From Workspace block? Use your 20 x 3 array and uncheck the box for Interpolate Data.

5 days ago | 0

Can someone help me implement my Heaviside function into my Kuramoto model please?

The function H seems to do the opposite of what you want it do, i.e., it's zero over the desired range and one outside that rang...

5 days ago | 0

how to plot the result of convolution? ; used conv()

I assume you meant x(t) = sin(pi*t) (not sin(pi*x)). Let's rewrite: x(t) = sin(2 * pi / 2 * t). So x(t) has period T = 2 as ...

7 days ago | 0

designfilt and get the numerator and denominator coefficients of my filter

Trying to convert such a high order filter to a tf representation is likely not going to work well. Maybe consider implementing ...

8 days ago | 0

pulse train with gaussian pulses in an irregular interval

Can't the d input to pulstran be set to whatever offsets you want, random or otherwise? Taking the example from the pulstran do...

11 days ago | 0

Unable to find explicit solution to a very simple equation

The equation in the question is an inequality, but the supposed solution posed in the question is for an equality: syms x real ...

11 days ago | 1

| accepted

How to load matlabFunction output into Simulink

matlabFunctionBlock can be used to generate a block directly into the Simulink model from the symbolic expression. It will only...

12 days ago | 1

Solving nonlinear system of ode in Simulink

The best way IMO is to get the equations in the form xdotdot = f(p,u,x,xdot), which you already did. But what did you mean by "...

12 days ago | 0

How to count number of pulses in a signal in Simulink

Similar problem addressed in this link.

12 days ago | 0

Question

How do I get an Expression to Use the Value of a Variable that was Assigned after the Expression was Defined?

Suppose I assign to a sym as follows: syms z f g Define f in terms of z f = 2*z Now assign a value to z z = sym(2)*1i; But...

13 days ago | 1 answer | 0

### 1

answerHow to change Axes values to 'String' instead of 'numbers' on Simulink Scope?

Make the signal input to the scope a Simulink Enumeration type.

14 days ago | 1

| accepted

How to create a vector of symbolic variables with specific labeling

v = [1 2 3 5 7 9 10 12 18 29]; vsym = sym('x',[v(1) v(end)]); vsym=vsym(v)

14 days ago | 0

| accepted

speed up integrating the same function over many overlapping intervals?

In your question you said that fn is continuous. If it's sufficiently smooth, ideally with continuous first derivative, you can ...

14 days ago | 0

Fourier Transform in terms of frequency instead of angular frequency

WRT to the first part of your question, the answer is yes. The parameters of the Fourier transform can be set via sympref syms ...

15 days ago | 0

simulate free fall project, ode45, using reynolds no to get drag coefficient, recursive problem

Check your intiial conditions. At t = 0, ydot = 0, which yields Re == 0, which then yields isnan(C_D) == true, and subsequently...

15 days ago | 0

Issues with Simulink unit delay

Using a unit delay is probably not what you want, because the output of the delay is held constant until the next sample time. ...

15 days ago | 0

s domain to complex domain?

Some functions that may be of interest: doc freqresp doc abs

16 days ago | 0

LTI s domian to z domain tranformation

The c2d() function offers several options doc c2d

16 days ago | 0

How can I apply step signal input to a system after 20secs of delay?

Set the InputDelay property of the system to 20. If h is the system h.InputDelay = 20; step(h,opt)

16 days ago | 0

doublet responce of doublet input

Can you express the doublet as a sum of unit step functions, eahc of which are appropriately scaled and delayed? If so, and you...

16 days ago | 0

Using ODE45 with 4 states on a double particle pendulum

Hi Raaed, Why use symbolic when you alredy have a closed form expressions for the differential equations? Usually, the Symbolic...

16 days ago | 0

convert 1x1 double time series data of simout in matlab to 1441 x 1 double

You can convert the timeseries to ordinary Matlab variables time = simout.Time; data = simout.Data;

17 days ago | 0

How can I count how many times the position of a bouncing ball on the simulator hits 0?

Drag a Triggered Subsystem into the diagram. Connect the output of the <=0 block to the trigger input of the Triggered Subsyste...

18 days ago | 0

simulink-function block

This line (and others like it) doesn't do what you think it does: 68.832 < u <= 200 Consider: u = 203; 68.832 < u <= 200 Th...

18 days ago | 0

| accepted