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

3 years ago | 0

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

3 years ago | 0

| accepted

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

3 years ago | 0

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

3 years ago | 0

| accepted

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 0

| accepted

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

3 years ago | 2

| accepted

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

3 years ago | 0

| accepted

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

3 years ago | 0

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

3 years ago | 1

| accepted

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

3 years ago | 0

| accepted

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

3 years ago | 0

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

3 years ago | 0

| accepted

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 1

| accepted

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

3 years ago | 0

| accepted

Answered
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

3 years ago | 0

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

3 years ago | 0

Answered
Add delay to signal
Maybe this will help: Let's assume we have a simple FIR filter that takes the average of the current and two previous samples o...

3 years ago | 1

| accepted

Answered
Why wont the state-space block accept a mux input?
The B, C, and D matrices of the state space block indicate the state space model is expecting a single input to generate a singl...

3 years ago | 0

Answered
Getting wrong frequency from fft compared to curve fit
Hi @lior fridman Assuming you're only interested in the magnitude of the DFT, it looks like everything is correct except for no...

3 years ago | 0

Answered
Why am I receiving this error?
Assuming you want a numerical evaluation, check out these doc pages: log , exp

3 years ago | 0

| accepted

Answered
Implementation of varying-order integrator block in Simulink
Thanks for the link to the Varying Transfer Function block. I'm still not 100% sure what your're looking for. But maybe someth...

3 years ago | 0

Answered
about setting setBlockParameter (blkParam, paramVal)
A1. Gain and Position are block parameters. Position is a paramter that is common to all blocks. More info here Common Block Pro...

3 years ago | 0

| accepted

Answered
Can I believe the values of these large integers?
What happens if you change this line to work in symbolic world? It will be slow .... (couldn't run here, exceeded the 55 second ...

3 years ago | 0

Answered
How can I triple integral the matrix k between -h/2 to h/2, -b/2 to b/2, -a/2 to a/2 wrt. z,y,x respectively?
Hi Ahmed Try int clc clear all E=70*10^6; v=0.3; p=50*10^3; h=0.01; a=0.5; b=0.5; syms x y z B=-h*[6*x*(b-2*y)/(a^(3)...

3 years ago | 0

Load more