Beantwortet
The real() command outputs a complex number (doesn't appear to change it).
In syms world, use isAlways to determine if an expression or variable is real, etc. syms x isAlways(in(x,'real')) assume(x,'r...

mehr als 3 Jahre vor | 2

Beantwortet
Using Matlab perform the convolution of the following signals of different duration and energy
Hi Ali, Assuming S1, S2, and S3 are continuous-domain signals, I think it would be better to compute the convolution integral u...

mehr als 3 Jahre vor | 0

Beantwortet
unexpected matlab operator error when plotting from a simulink matlab function
Hi Edoardo, Are you really trying to plot u vs. u? Wouldn't that just be a straight line? If I understand what you're trying ...

mehr als 3 Jahre vor | 0

Beantwortet
Convert string array to numetric.
If the data only contains 0's and 1's .. data = [ "01" "01" "10" "10" ...

mehr als 3 Jahre vor | 1

Beantwortet
What is the Memory Block actually useful for?
Hi Islam, Memory blocks are often used to remove algebraic loops. The doc talks about this concept, just do a search. Here's a ...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
Using Simulink from .m file
Ok. If F and Ma are constants, you should consider using a Constant block for each. Make the "Constant value" paramter F and Ma...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
Can MATLAB function blocks be set to run once per simulation instead of each time step if the outputs are used as inputs to a 1D look-up table?
That link includes three different solutions, not sure which one you're using. Having said that, not sure how the error message ...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Zero order hold for signal reconstruction
Perhaps set the method input to interp1 to 'previous'.

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to access the values of sym?
Not sure why feval is used. Just using solve with ReturnConditions solves for the range of b that satisfies both inequalities. ...

mehr als 3 Jahre vor | 0

Beantwortet
Simulink SImulation Inputs and Model Variables
Instead of using the StopFcn, maybe you can use setPostSimFcn functionality

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to extract number of matrices with all elements zero and the indexes of those matrices in a struct
Hi Abdullah, The Question use the term "cell" but it looks like the data only uses structures. If that's the case, then .... C...

mehr als 3 Jahre vor | 0

Beantwortet
Finding the modulus margin for three different open loop systems through matlab?
Hi Yarno, I'm not aware of any function that will compute the modulus margin (which is too bad). But one way to get what should...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Sinusoidal Frequency Response of a Transfer Function
If the system were bounded-input-bounded-output (BIBO) stable, then the steady state output in response to input y(t) = A*sin(w*...

mehr als 3 Jahre vor | 0

Beantwortet
cos block error (simulink)
Base Simulink doesn't have a block that implements functions cosd or cospi. Maybe some other toolbox does. If not, both of tho...

mehr als 3 Jahre vor | 0

Beantwortet
I cannot call parameter value from workspace to Simulink matlab function block
Hi @mg Make the function like this: function y = AAA( var1,param1) BB= var1 CC = param1 * BB y=CC Then, follow t...

mehr als 3 Jahre vor | 0

Beantwortet
Lsim function returns an array filled with Nan
Hi Gabriel, Recheck the model. As written it has two unstable poles way out in the right half plane. That will be very difficul...

mehr als 3 Jahre vor | 0

Beantwortet
How to get a minimal realization of the syms based expressions?
Hi Aditya Have you considered converting TF to an lti system object? Better yet, is there really a need to use symbolic math a...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to implement a look up table in simulink which can accept variable SIZE data as inputs
@Ganesh Iyer Accroding to the doc, the LUT Dynamic block doesn't accept variable size signals. I tried the following approach,...

mehr als 3 Jahre vor | 2

| akzeptiert

Beantwortet
Solving system of 2 non linear equations
syms x y real eq1 = 0.00014/(3.85E-05*cos((x-y)*0.006))-(0.196*0.026*tan((x-y)*0.0062)*tanh(x*0.026))/0.006+0.196-0.00014/3.85E...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Inverse Z-Transform of F(z) How to set ROC?
No, we can't specify the ROC for iztrans, which always assumes the time domain sequence is causal. Same issue with ilaplace. Ho...

mehr als 3 Jahre vor | 0

Beantwortet
Riemann Siegel Theta Equation
Hi bil, Is this what you're looking for? syms t real theta(t) = angle(gamma(sym(1)/sym(4) +1i*t/2)) - log(sym(pi))/2*t tsol ...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
Varying input into a transfer function in simulink
Hi Jake, It looks like you're tring to vary the value of A between runs, not during a run. In this case, I think you want some...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Flexible symbolic function definition
I'm still not sure what you want. Maybe this? syms a b c vars = [a b c]; len_vars = length(vars); % might want to use numel ...

mehr als 3 Jahre vor | 0

Beantwortet
How to convert from rad/sec to Hz in bode plot, and what can i understand from the bode plot shown?
To plot in Hz, rather than rad/sec. Option 1: %[m,p,w] = bode(Gvd); % w - rad/sec %f = w/2/pi; % f - Hz %subplot(...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to Dynamically change Model Workspace variables for changing block parameters
Assuming the Question is in regards to this block, Rigid Transform, it seems that dynamically changing the parameters of the blo...

mehr als 3 Jahre vor | 0

Beantwortet
integration of a vector
I'm not sure what "sigma sign" is, but running here, without any manipulation of integrand, does not yield a result that contain...

mehr als 3 Jahre vor | 0

Beantwortet
Plotting a velocity vector field
Here is how you can plot what I thinkg your want using quiver3 over a 3D cube. Should be able to adapt it as needed. Check its d...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
Operator '>' is not supported for operands of type 'tf'
Hi Salah Gvd is a transfer function. It looks like you want to evaluate Gvd at a set of frequencies and then operate on that re...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
I need to resample the ECG signal at a lower frequency in order to apply some QRS detection algorithms
The following functions may be of interest: downsample , decimate , resample

mehr als 3 Jahre vor | 0

Beantwortet
SAMPLE TIME , SIMULATION TIME , STEPSIZE IN DETAIL
Assuming this Question is in regards to Simulink: SIMULATION TIME: Refers to the master clock of the Simulink simulation. SAMP...

mehr als 3 Jahre vor | 0

Mehr laden