# Paul

**Statistics**

RANK**66**

of 271,201

REPUTATION**2,293**

CONTRIBUTIONS

**64** Questions

**851** Answers

ANSWER ACCEPTANCE **
42.19%
**

VOTES RECEIVED**276**

RANK

of 18,292

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

How to get z transfer function from difference equation?

Hi Vivianne, One workflow would go like this: Define the variables and signals. Note that x is a function of k syms y(k) z x(...

16 hours ago | 0

Sliding mode control simulink

Hi KAI, Do any of the integrators have a non-zero initial condition? Also, might want to consider using a variable step solver...

1 day ago | 0

| accepted

Having symbolic in a Matrix

Hi Felis, I didn't run the code because I don't know what inputs to provide. Does changing Z2 to a sym object solve the problem...

4 days ago | 0

| accepted

Find a specific characters in a string

Hi Miriam I'm not quite sure what you're looking for. However, transforming everything to strings might offer a path forward vi...

5 days ago | 0

How to find index of string inside a structure of cell arrays

Hi Andrew, Is this what you're looking for? load(websave('MyStruct.mat','https://www.mathworks.com/matlabcentral/answers/uploa...

5 days ago | 0

| accepted

Display Block shows truncated data

Hi Gajana, The warning is not telling the full story and may actually be incorrect. Fron the Display block doc page: "The Disp...

5 days ago | 0

How to find number of input and output ports of an unknown simulink model ?

Hi Shiv, I started out with this model with three subsystems. Then I ran this code: % Handles to the subsystems subsystems...

6 days ago | 1

| accepted

How to find cumulative distribution function from a given data set(vector)

Hi Shankul, I'm not sure what "I want the cdf vector" means. If that means the data that forms the cdf plot on the graph, then ...

6 days ago | 0

| accepted

Problem passing sine wave through if statement

Hi Matthew, The "Port 1" referenced in the error message is the first output port, not the input port. All output ports from th...

7 days ago | 0

| accepted

What is the physical interpretation of sos in Zp2sos function?

Hi Andi, Addresing the second part of your question: " why we need to do this" filtfilt will accept either transfer function (...

7 days ago | 0

why does my data kick up at the end after doing ifft(X)

Hi Joanne It will be easier for people to help if you post the data. Use the paper clip icon to attach it to your question as a...

7 days ago | 0

How to vectorize a complex function?

Hi Babak, Here is a one line solution. Whether or not it's more efficient/effective/clearer than the loop is an open question. ...

7 days ago | 0

Reduce length of sum of products of symbolic variables

Hi Moritz, Would you mind explaining why it's necessary to get the expression into a particular form? Recreating the expressio...

9 days ago | 0

| accepted

Not able to use the if condition as desired in simulink

The outputs of an If block can only drive If-Action subsystems. At a minimum, the limiter blocks need to be wrapped inside If-Ac...

9 days ago | 0

Plotting the frequency response of a bandpass filter around a frequency fc

The code as implemented uses the form of freqz with the w input in normalized frequency in units of rad. The w vector on input r...

9 days ago | 1

| accepted

How do I use methods from a class that works in matlab and use it in simulink?

How will the object instances be used in Simulink? This blog post and its follow-ups may be of interest.

10 days ago | 0

| accepted

Is there a zpk block in simscape?

Zero-pole-gain block in Simulink, don't know if there is a specialized or alternate version in Simscape.

11 days ago | 1

| accepted

Offset in filtered data when using filtfilt() Function

Thanks @Jan The filter, d, does not have unity gain at dc. fc = 0.4; d = designfilt("lowpassfir", 'PassbandFrequency', fc, 'S...

11 days ago | 1

complex ifft output for hermitian input

Hi Md. I didn't inspect the whole code, but did notice that the calcuation of timeResp seemed to have the ifft/ifftshift operat...

11 days ago | 1

| accepted

How can I evaluate a complex definite integral?

Hi Valentin, Shouldn't the lower bound on the integral be fg2, not 0? Don't see how the reult will be 0.2952. The integrand is ...

12 days ago | 1

| accepted

minreal tolerance not respected

Hi Daniel, As best I can tell after sifting through the code, tol is generally compared to the distance between the zero and po...

12 days ago | 1

Energy and Power of a Piecewise Function

Hi Iakovos, Try using piecewise to simplify things. syms t real x(t) = piecewise(-3 <= t <= 0, cos(sym(pi)*t),0 < t <= 2, 2, ...

12 days ago | 1

| accepted

DC gain for FIR high-pass filter using fir1

Hi Masao, Let's try the proposed methods. High-pass fir1 filter bhigh = fir1(500,5/750,'high'); [h0,w] = freqz(bhigh,1,0:.00...

13 days ago | 0

| accepted

Plotting sin (x/x) function in terms of Mag(dB) over Frequency

Hi IFECHUKWU, sin(x)/x can take on negative values, for example x = 5*pi/4; sin(x)/x Taking the log10 (as neeed for dB, not ...

13 days ago | 0

| accepted

DSP/IIR filter butterworth

Hi Steven, Here is the original code (with minor changes) fpass = 2500; fstop = 4000; As = 95; Rp=3; fs=44100; %Data wp=(fpas...

13 days ago | 1

| accepted

nonlinear variable state space observer pole placement

Hi Bernd, Matlab assumes by default that all sym variables are complex, and this assumption can sometimes lead to unexpected re...

14 days ago | 1

| accepted

How to mean data of second column with respect to the similar element in the first column

Check out splitapply. Applies directly to this problem.

16 days ago | 0

Problem with factoring a symbolic variable

If only one term contains Td_s, then syms T_u T_t T_s tau_u Tdd_u Tdd_t Tdd_s Td_u Td_t Td_s; eq = sin(T_s - T_u)*Td_s^2 + sin...

16 days ago | 0

MATLAB Answers Wish-list #5 (and bug reports)

I wish that the Categories feature be much more useful. Check out hte categorization of this Question: Scroll over the right ...

17 days ago | 0

Use Matlab Function Block to plot into figure created by Matlab Script

Hi Jannis, I got this model to work The code in the Matlab Function block is function y = fcn(u,t) persistent ax1 if ...

17 days ago | 0