Community Profile

Teo Protoulis

Last seen: 7 månader ago Active since 2017

All

Content Feed

View by

Question

Solving Ordinary Differential Equations using Mass Matrix
I am simulating a system of 14 ODEs in the form of mass matrix representation. I have a function that computes the mass matrix b...

ungefär ett år ago | 0 answers | 0

0

Question

Store value of variable computed in ODE Solver at the specified time steps.
I am simulating a system using the ode15s(..) solver. Code is like this: tspan = 0:0.01:10; options = odeset('RelTol',1e-7,'Ab...

ungefär ett år ago | 1 answer | 0

1

Question

How to use ODE solvers for a 2nd order differential equation with a Mass Matrix ?
I would like to simulate a system which comes at the following form: where the Mass Matrix (M) is a 2x2 m...

ungefär ett år ago | 1 answer | 0

1

Question

Slope of Bode plot
Is there any way in order to add slope display for the magnitude plot of a system's bode diagram ?

nästan 2 år ago | 1 answer | 1

1

Question

How to store sequence of bits as a bit stream and use the least possible memory ?
I am implementing a huffman encoding procedure which for example encodes the decimal number -5 as '100010'. Until now I have imp...

ungefär 2 år ago | 3 answers | 1

3

Question

Remove chattering from signal
I have the signal shown at the attached image. I want to remove the chattering which I think is high-frequency compared to the s...

ungefär 2 år ago | 1 answer | 0

1

Question

How to plot PWM signal with specific duty cycle and frequency ?
Is there any way of plotting a PWM signal when the duty cycle and the frequency is known ?

mer än 2 år ago | 1 answer | 0

1

Question

ODE Solver with array value parameter
I need to solve the following differential equations: where x1 and x2 are the states of the system and y is the input of th...

mer än 2 år ago | 1 answer | 1

1

Question

Find out range of servo rotation
I am controlling a servo motor with Arduino and Matlab. The servo motor changes its position if the input values belong to the i...

mer än 2 år ago | 1 answer | 0

1

Question

Use values of matrix in ode function
I am using ode45() to solve a differential equation like this: [t,state] = ode45(@odefun,tspan,0); Now I want to solve another...

mer än 2 år ago | 0 answers | 0

0

Question

Convert points coordinates from camera screen to integer positions (pixels) of image.
I have to write a function which takes as inputs the size of the camera screen HxW, the size of the canvas MxN and the coordinat...

mer än 2 år ago | 0 answers | 0

0

Question

How to add arrows to the phase plane produced ?
I have the following matlab code that produces the phase plane for the state variables and I want to add arrows in order to show...

ungefär 3 år ago | 1 answer | 0

1

Question

Keep getting this error and I cannot figure out why: Dimensions of arrays being concatenated are not consistent.
I have the following code trying to solve differential equation of second order: [t,X] = ode45(@(t,X) odefun_4(t,X,u), [0 ...

ungefär 3 år ago | 1 answer | 0

1

Question

How to display multiple images on the same axis system ?
I have an Nx3 array with the coordinates of the vertices of N triangles which I have to color and then display the whole object ...

mer än 3 år ago | 1 answer | 0

1

Question

How to calculate product of two arrays in O(nlogn) ?
I have 3 arrays: u = randn(n,1); w = randn(m,1); T = toeplitz( u(m:n), u(m:-1:1) ); m,n follow this restriction: ...

nästan 4 år ago | 0 answers | 0

0

Question

Why do I keep getting errors: No such file or directory when I install Signal Processing toolbox ?
I am trying to install the Signal Processing Toolbox but I constantly get errors stating that: No such file or directory. I crea...

nästan 4 år ago | 1 answer | 0

1

Question

How can I draw a particular line pixel by pixel ?
I have the below code in order to draw the line: y = m*x + b. I want to draw the line pixel by pixel using the code below: ...

nästan 4 år ago | 1 answer | 0