Community Profile # Paul

Last seen: Today 2011 이후 활성

#### Statistics

All
• • • • • • • 배지보기

#### Content Feed

보기 기준

답변 있음
Why does transforming transfer matrix into complex vector transfer function lead to NaN ?
Recreating the result %% Calculation of Transfer Function % Parameters Lf_1 = 5.6e-3; Rf_1 = 0.1; Cf_1 = 1.61e-05; L_1 ...

약 9시간 전 | 0

답변 있음
Manipulation of complex expressions
The final substitution into U_2 needs to be changed as shown below. syms('R', 'positive') syms('C', 'positive') syms('omega',...

약 13시간 전 | 1

| 수락됨

답변 있음
How do you get up to first n characters in a string?
s_arr = ["a";"ab";"abc";"abcd";"abcde"] s_arr(strlength(s_arr)>3) = extractBefore(s_arr(strlength(s_arr)>3),4)

1일 전 | 0

답변 있음
How to fix the sym/solve error
What version are you using? Seems to work ok here, but w/o any references to Maple. which -all solve z = [-6.41 -12.4 2.143 1...

1일 전 | 0

| 수락됨

답변 있음
I don't seem to understand the feedback function of matlab
The feedback() function returns the LTI system with input u and output y. Other functions are used to determine the output of t...

1일 전 | 0

답변 있음
Taking second partial derivative symbolically with diff()
This line DV_N1(j,k) = diff(V_N,w_n(j),w_n(k)); doesn't look correct. The third argument to diff() should be n, which tells d...

1일 전 | 0

답변 있음
Some of Analog Filter Design block's parameters seems invalid when fetched with get_param()
Two options. Option 1: ws = get_param(gcb,'MaskWSVariables'); ws will be 1-dimensional structure array with fields Name and V...

2일 전 | 1

| 수락됨

답변 있음
Transform a MIMO system to state space.
Therer really isn't a need to use tf2ss anymore. The functions tf(), ss(),and zpk() can be used to convert from one form to ano...

3일 전 | 0

| 수락됨

답변 있음
How to concatenate using for loop?
Preallocate an empty matrix with 231 columns and then use doc vertcat each time through the loop

3일 전 | 0

답변 있음
Calculate steady state error for unit step and ramp input for Zero order hold
The by-hand calculations do not appear to be correct. A quick way to get an idea if the calculations for the step input are corr...

4일 전 | 0

답변 있음
What's the Best Way to Symbolically Define the Periodic Extension of a Finite Duration Signal?
The Symbolic Math Toolbox function mod() changed behavior in 2020b so that (it appears) that such a function can now be easily d...

5일 전 | 0

답변 있음
Multiplying all 2D square matricies in a 3D matrix
Easier than putting that loop in a function? function mprod = matprod(T,h) % should do some input checking to verify that 1 <=...

6일 전 | 0

| 수락됨

답변 있음
Add a dynamic amount of symbolic variables into a script
numvars = 5; % for example V = sym('V',[1 numvars])

7일 전 | 1

| 수락됨

답변 있음
solve a system of equations symbolically
It looks like there are two equations with three unknowns for which there are many solutions. So solve() gives the results for ...

8일 전 | 0

답변 있음
Symbolic ODEs aren't symbolic?
I think the fundamental problem is that dsolve() can't find a solution. Then the error results because it doesn't know how to de...

8일 전 | 0

답변 있음
Generate all possible combinations summing up to a given number
n = 3; [C{1:n}] = ndgrid(0:n); C = cell2mat(cellfun(@(x)(reshape(x,[],1)),C,'UniformOutput',false)); C(sum(C,2) == n,:)

8일 전 | 0

| 수락됨

답변 있음
How to generate continuous time domain signal with different start and end time?
By "continuous time domain signal" do you mean signal defined symbolically (otherwise, I'm not sure what's meant by "continuous"...

8일 전 | 0

답변 있음
How to call the function based on the simulink model?
Since you're using 2020b, try changing your sim() command to: out = sim('zad3cw2_sim','SrcWorkspace','current') This should pr...

9일 전 | 0

답변 있음
Create a matrix of matrices
Would an ordinary 3D matrix do the trick? You can access the elements via normal indexing. As far as i'm aware, you'd have to wr...

9일 전 | 0

| 수락됨

답변 있음
Show free variables in solution(s) instead of zeros
The way to parameterize the solutions returned from solve() is to use the ReturnConditions flag. Here is the code clear all; c...

9일 전 | 0

| 수락됨

답변 있음
How to find the maximum value of constant, so that my function doesnt go over a certain value?
Based on your statement that the answer should be around 30-31, I'm guessing that you want to find the value of K such that the ...

10일 전 | 0

답변 있음
Matlab transpositions from formula
Maybe you really mean to put all those fractional exponents inside parentheses? For example: Tck = 4; Tck.^3/2 % or Tck.^(3...

12일 전 | 1

답변 있음
how to implement "2s+1" Tfcn in Simulink
Can't be done explicitly as you've found. Option 1: make the Tfcn (2*s + 1)/(c*s + 1) where c is small enough such that the out...

12일 전 | 0

답변 있음
When putting a variety of values in one at a time to an equation it outputs the right answer, but when I put in an array of values the answers are wrong
If you want y to be evaluated for each element of x, you need to use the "element-wise" operator ./ (note the dot) instead of /...

12일 전 | 0

| 수락됨

답변 있음
Integer eigenvalues in Matlab
Asusming that "a given (integer) matrix A" means that you know the values of the elements of A, then you can just use eig on the...

12일 전 | 0

답변 있음
Need help getting my delta functions to work
The problem is that nfft = 150; 0:0:nfft-1 is empty. What that line is bascially asking for is a vector of number from 0 to...

12일 전 | 0

답변 있음
How to plot several unit steps in a graph without doing it manually?
Are you looking for something like this? y2 = create_y_step(2) y4 = create_y_step(4) y8 = create_y_step(8) fplot([y2 y4 y8],...

13일 전 | 0

| 수락됨

답변 있음
Assigning values for a variable and solving symbolic equations numerically
You can use subs() and double(), at least for the "easy" versions of d0: syms d0 t positive h = 10; % Height of the tank [m] ...

14일 전 | 0

| 수락됨

답변 있음
Issue with simulating linear system using lsim inside a for loop
Each step in ReferenceModel has to use an intiial state that is the final state from the previous step. Using that term y0 is in...

14일 전 | 0

| 수락됨

질문

Why is a Question Closed?