Community Profile

Volkan Yangin

Yildiz Technical University

Last seen: 6 Tage ago Active since 2015

Content Feed

View by

Question

Where is my mistake on ga command in SIMULINK?
Hi, I am trying to use "ga" in SIMULINK, but i cannot perform it correctly. Error message: Function handle cannot be used her...

etwa 2 Monate ago | 1 answer | 0

1

Question

Why do i get an error with coder.extrinsic?
Hi, I have very complicated matrices and vectors which consist of "dirac". To run dirac command in SIMULINK, i use coder.extrin...

3 Monate ago | 1 answer | 0

1

Question

How can i solve this optimization problem?
Hi, My cost function is: clear all clc syms delta_Uk F = rand(4,5); Xf = rand(5,1); phi = rand(4,2); Q = rand(4,4); R_b...

3 Monate ago | 1 answer | 0

1

Question

Is it possible to make inactive some of lines?
Assume that A = [a*b;... %line 1 a*b^2;... %line 2 a*b^3;... %line 3 ] Is it possible to generate...

5 Monate ago | 1 answer | 0

1

Question

How can i repeat a formula without for loop?
Hi, I want to repeat my formula according to p value. For this purpose, for loop can be easily used, but i should not implement...

5 Monate ago | 1 answer | 0

1

Question

How can i integrate this expression which includes matrices?
Hi, I have two matrices and will use them to have discrete form of state space. For this purpose, i have to implement some of i...

5 Monate ago | 1 answer | 0

1

Question

How can i define sind, cosd etc. in SIMULINK?
Hi, In SIMULINK, we can convert the angle from radian to degree, but there is no block about sind, cosd or atand. Why does not ...

10 Monate ago | 1 answer | 0

1

Question

Why does not coefficients vector include zero?
Hi, In this code, cf should be [3 2 0], but the output is different. What is the reason of this? Thanks, clear all clc syms...

11 Monate ago | 1 answer | 0

1

Question

How can i use symbolic variables which were created as a vector?
Hi, x_opr=[1 2 3 4 5 6 7 8 9]; syms sv sv=sym('x',[1 numel(x_opr)]) Output of this command is: sv = [ x1, x2, x3, x4, x5,...

11 Monate ago | 1 answer | 0

1

Question

How can i select correct initial points to use fsolve effectively?
Hi, I try to solve 3 nonlinear equations and use fsolve. Solution may change because of selection of initial points. Additional...

12 Monate ago | 1 answer | 0

1

Question

Is there any missing in my simulation via lsim?
Hi, I have a state space model below and my inputs are u1=[0.1 0.1] and u2=[1000 1000] for t=[0 0.01]. I have created a simulat...

12 Monate ago | 1 answer | 0

1

Question

How can i obtain response of MIMO for different 2 input?
Hi, You can see my arbitrary state space model below. First input should be 0.1*step, and second one 100*step. How can i defi...

12 Monate ago | 1 answer | 0

1

Question

How can i get sum of the responses of multi input system?
Hi, For linear systems, we can implement superposition procedure to obtain result of any state space system for multiple inputs...

12 Monate ago | 1 answer | 0

1

Question

Why are some of the outputs' first values ​​not equal to zero?
Hi, My state space system contains 6 outputs and some of them's first values are not zero. In my opinion, when t=0; first value...

etwa ein Jahr ago | 1 answer | 0

1

Question

How can i remove "==" from symbolic equation?
Edit: I have solved my problem with rhs. Hi, I have created a symbolic equation via isolate command. Resulting equation is...

etwa ein Jahr ago | 1 answer | 0

1

Question

How can i find equilibrium points of 2 ODEs?
Hi, I have 2 ODEs like this: syms x1 x2 ode1=- 10*x2 - (9668*sin((pi*((317467494955027*(18*x1 - (2961*x2)/125))/(112589990684...

etwa ein Jahr ago | 1 answer | 0

1

Question

How can i fix this ode45 error: Not enough input arguments.
Hi, I have two odes and use ode45 to solve them simultaneously. At first ode, there are two state variables: x1 and x2, but sec...

etwa ein Jahr ago | 1 answer | 0

1

Question

How can i use symbolic equations in ode45
In my code, i tried to convert my symbolic function to numeric to solve it via ode45, but took this error message: Error using ...

etwa ein Jahr ago | 1 answer | 0

1

Question

How can i use dsolve and symbolic expressions in for loop?
Hi, In my code, i have to change initial conditions for each step to solve the diff. eqs., so i use for loop. To solve the eqs...

etwa ein Jahr ago | 1 answer | 0

1

Question

How can i solve these ODEs?
Hi, I have two ODEs with 2 initial conditions. I have created code for this, but have a problem: Why do i see X1 and X2 at the...

etwa ein Jahr ago | 1 answer | 0

1

Question

How can i make equal two matrices?
Hi, xx0 = [(5347071735127577*t)/2251799813685248 + 10, 10 - (867684789143429*t)/8796093022208] [ 56 - (49822173224577*t...

etwa ein Jahr ago | 1 answer | 0

1

Question

How can i get any response of this state space model?
Hi, I want to get response of my state space model for any input i create. For this purpose, i use lsim command, but take error...

etwa ein Jahr ago | 1 answer | 0

1

Question

Is there any way to get numerical result from symbolic function?
Hi, I have a smybolic function created by syms command and at the next steps in my code, i should get numerical output by using...

etwa ein Jahr ago | 3 answers | 0

3

Question

How can i find results of functions for symbolic points?
Hi, I have 2 different function and i don't know how i can get function results for 3 symbolic points. Final state of the funct...

etwa ein Jahr ago | 1 answer | 0

1

Question

Combine of two matrices
Hi everbody I have two matrices like these: A=[10 12 14 16 18] B=[1 3 5 7 9] I should combine two matrices as: ...

mehr als 4 Jahre ago | 1 answer | 0

1

Question

How can i manipulate matrix like this?
EDIT: I have solved the problem with using if-end loop, but if you share alternative solutions if you have, i will be very happy...

mehr als 4 Jahre ago | 1 answer | 0

1

How can i create matrix automatically?
for ... elements=[1 1 2 2 3 3 4 4]; if numel(gap)<=numel(elements); matrix=elements(1:numel(gap)); end ...

mehr als 4 Jahre ago | 0

Question

How can i create matrix automatically?
Hi everbody I should create a matrix by using number of element of any gap like as the example: If gap has: *3 element...

mehr als 4 Jahre ago | 2 answers | 0

2

Question

How can i round numbers to multiple of any number?
Hi everbody There are commands for rounding of numbers in MATLAB like ceil, floor etc., but if we should round the numbers to...

mehr als 4 Jahre ago | 1 answer | 2