Question

problems with using the laplace transform

hello everyone, I am trying to plot a system response (y(t)) to an input of u(t)=t*1(t). The laplace transform of u(t) is U(...

7 months ago | 1 answer | 0

Question

step response of a signal

hey, how can I insert a step signal type which isn't equal to one, but of a type const*1(t). the command step(sys) gives the...

7 months ago | 1 answer | 0

Question

using the transfer function for further calculation

hey I extracted the transfer function from my state space definition. now I want to multiply it (transfer function) with my (c...

7 months ago | 0 answers | 0

Question

wrong outcomes when using lsim and step function

hello everyone, I am trying to define a 2nd order system y''(t)+5y'(t)+6y(t)=15u(t) in the state space and get outcomes (y) for...

7 months ago | 0 answers | 0

Question

seeing the expression of the transfer function

hello, I have a system that is defined in the state space by the command - sys=ss(A,B,C,D); I am trying to extract the Transfe...

7 months ago | 0 answers | 0

Answered

more convenient way to present a result of a symbolic calculation

for some reason I don't get the desired result. the result I got: <</matlabcentral/answers/uploaded_files/139563/comparison%...

more convenient way to present a result of a symbolic calculation

for some reason I don't get the desired result. the result I got: <</matlabcentral/answers/uploaded_files/139563/comparison%...

8 months ago | 0

Question

more convenient way to present a result of a symbolic calculation

hello everyone, is there a more convenient/elegant way of presenting the result? I am adding the code: clear all clo...

8 months ago | 2 answers | 0

Question

defining a matrix that can contain symbolic variables

hello I have a matrix that have 5 columns that contain 0/1 in each cell and I am interested to add a column that contains expre...

9 months ago | 1 answer | 0

Answered

how to predefine a matrix with one unknown dimension

Thank you all. Both ways are good and I even learned some new elegant things.

how to predefine a matrix with one unknown dimension

Thank you all. Both ways are good and I even learned some new elegant things.

9 months ago | 0

Question

how to predefine a matrix with one unknown dimension

hey everybody I am interested in predefining a matrix with unknown dimension. I know that the matrix should have 15 rows (numb...

9 months ago | 3 answers | 0

Answered

using the trapz function

according to <https://uk.mathworks.com/help/matlab/ref/trapz.html> I can only give the trapz function the y values of y(x). That...

using the trapz function

according to <https://uk.mathworks.com/help/matlab/ref/trapz.html> I can only give the trapz function the y values of y(x). That...

9 months ago | 0

| accepted

Question

using the trapz function

hey, I am trying to understand how the trapz works. I am trying to compare its results to an exact solution, but for some reaso...

9 months ago | 2 answers | 0

Question

a problem while using an anonymous function

hello, I can't understand what's wrong. I will appreciate any help. I have a problem while trying to using the integral fun...

9 months ago | 2 answers | 0

Question

mixing randomly existing values in a vector

hello I have a vector of 10 components - [1 1 1 1 1 1 0 0 0 0] I want to randomly (a uniform distribution is preferred) mixing...

9 months ago | 2 answers | 0

Answered

2 coupled second order equations

Thank you all for your answers. I read each one and learned a lot.

2 coupled second order equations

Thank you all for your answers. I read each one and learned a lot.

10 months ago | 0

Answered

problem figuring out 2 different solutions

thank you very much!!! you have no idea how you helped us.

problem figuring out 2 different solutions

thank you very much!!! you have no idea how you helped us.

10 months ago | 0

Question

problem figuring out 2 different solutions

hello everyone, my friend and I have to hand out our HW today, and can't understand why after going over and over again on ou...

10 months ago | 2 answers | 0

Answered

2 coupled second order equations

Sorry guys but I still can't understand if the code I wrote os feasible...

2 coupled second order equations

Sorry guys but I still can't understand if the code I wrote os feasible...

10 months ago | 0

Answered

syntax error with using the ode45 function

first of all, thank you for replying. by the way, I am trying to learn Matlab by myself and not an experienced user of it. s...

syntax error with using the ode45 function

first of all, thank you for replying. by the way, I am trying to learn Matlab by myself and not an experienced user of it. s...

10 months ago | 0

Question

syntax error with using the ode45 function

<</matlabcentral/answers/uploaded_files/134132/error_message.JPG>> hello, I can't understand what I am doing wrong. the m...

10 months ago | 2 answers | 0

Question

2 coupled second order equations

Hello everyone, I have a problem of 2 coupled second order equations of the form that is described in the photo I attached. By ...

10 months ago | 3 answers | 0

Question

error in using the sum function

I am getting an error I can't understand. I attached the code and a photo. thanks! clear all close all clc m...

10 months ago | 2 answers | 0

Question

finding all the maximum/minimum and their corresponding x values

hello I want to know how I can find all the max values (even if there are many same maximums, like [1 2 3 6 6 6]) of a vector a...

10 months ago | 1 answer | 0

Question

step by step running of matlab

hello, is there a way of running matlab, so I can see each step it does. I would like to point out that I want to see any actio...

10 months ago | 2 answers | 0

Answered

solving a second order linear differential equation

thank you very much... sometimes it's not about the code, but the mathematics :-)

solving a second order linear differential equation

thank you very much... sometimes it's not about the code, but the mathematics :-)

10 months ago | 0

Question

solving a second order linear differential equation

hello everybody, I was trying to solve a simple pendulum second order linear differential equation of the form y''=-(g/l)*sin(y...

10 months ago | 2 answers | 0

Question

simple question regarding ezplot

hey why explot( , ,'r') doesn't work? I want the graph to be with a red color.

10 months ago | 1 answer | 0

Question

question for a beginner

hey, when using syms y(x) do I define both y and x as symbolic? I thought that I have to write it this way - syms y(x) x

10 months ago | 1 answer | 0