Question


how to add colmun to vector
hello how can i add to my colmn vector using for loop ? for exmaple i have this vector [0;0] and i want it to grow by one...

7 years ago | 3 answers | 0

3

answers

Question


how to solve state space eqution with Euler method ?
hello i am trying to solve this eqution x_diff=A*x+B*U clc; clear all; R=5;L=10e-3;C=10e-6;U=5; A...

7 years ago | 0 answers | 0

0

answers

Question


ode numerical answer with euler-method
hello i am trying to solve ode with Euler’s Method this state equtin x_dot=A*x+B*U when x_dot=2x1,A=2x2,x=2x1,b=2x1,U=1x1 . ...

7 years ago | 1 answer | 0

1

answer

Question


discrete ode solver plot
hello i am using in my program ode45 function ,how ever it does not give me the right plot , is there a discrete solver of ode ?...

7 years ago | 1 answer | 1

1

answer

Question


how to use values from struct in short way ?
hello i have this code : clear all; clc; Values_Of_The_Circuit(1).P_out_sepic=100; Values_Of_The_Circuit(1)...

7 years ago | 1 answer | 0

1

answer

Question


how to see t in ode function
hello i am using ode command but I cant see the output t , for exmaple i want to see how variable t is displaying in the command...

7 years ago | 1 answer | 0

1

answer

Question


using t in the ode function
hello i am using the function of ode 45 but if for exmpale I i want to give value by the change of t,for exmaple i have this cod...

7 years ago | 1 answer | 0

1

answer

Question


object orianted programing (OOP ) cant understand
hello I started to learn progrmaing withh oop becouse me coude became too long , now i have problems understandg how to use it c...

7 years ago | 2 answers | 0

2

answers

Question


SAVING DATA FROM A LOOP THAT DOES NOT START FROM ONE OR NOT POSITIVE INTEGERS OR LOGICALS
hello for exmplae i want to start a loop from zero like this : { for i=0:0.1:10 y(i)=i*10 ...

7 years ago | 1 answer | 0

1

answer

Question


how to make symbolic answer better looking ?
hello I used solve function to solve a an eqution how ever the answer is very long for exmaple here is the answer (R*R1...

7 years ago | 1 answer | 0

1

answer

Question


how insert values of constants after using "solve" command
hello lets say i have this code : syms x y c X=[x ;y] A=[3 -9; c 4] B=[-42 ;2 ] eqn=B==A*X...

7 years ago | 1 answer | 0

1

answer

Answered
how to change values from other script ?
first of all thank each of you people for answering me . second i am new at matlab, so i will show the you the codes that i wro...

7 years ago | 0

Question


how to change values from other script ?
hello lets say i have a scripte named A( * _the script A is function_*) and in this script there is a value X=5 , and i have ano...

7 years ago | 3 answers | 0

3

answers

Question


how to solve 4 state equation ?
A_a=[0 0 0 1/(C1);0 -1/(R*C) 0 0;0 0 -R1/(L1) 0;-1/(L2) 0 0 0] B_a=[0;0;(1/L1);0] u=12 dx/dt=(A_a)*x+...

7 years ago | 2 answers | 0

2

answers

Question


using solve function and getting 0-by-1
hello i am having this set of 4 differential first order equations : ode1(t) = diff(x(t), t) == (36552913157447*x(t))...

7 years ago | 1 answer | 0

1

answer

Answered
solving state variable equation in matlab
ye i tried to use ode system but i cant understand how to write it.could you write me example for second order code ?

7 years ago | 0

Question


solving state variable equation in matlab
hello i am trying this eqution : dx/dt=A*x+B*u y=C*x while A is matrix 4X4,B is matrix 4X1,C is matrix 1X4,and u ...

7 years ago | 4 answers | 0

4

answers

Question


how to use variable from function ?
hello i dont understand how to use variable from function here is exmaple : function []=my_fun(x) a=22 end b=a+2 ...

7 years ago | 1 answer | 0

1

answer

Question


simulink:how to find max/min of scope graph?
hello I am using simulink for my project , I need to know the max and min of this graph (the yellow lines I drew in the paint pr...

7 years ago | 1 answer | 0

1

answer

Question


plot graph from array
i got an array of 100 raws and 9 colms . how can i plot the data from this array ?

7 years ago | 1 answer | 0

1

answer

Question


how to enter values to array using loop
hello , I want to make a loop for exmpale from 1:1:100 and then enter each number into an array of each number of array . for ex...

7 years ago | 3 answers | 0

3

answers

Question


how to run simulink simulation from matlab script
hello i need to run simulink simulation from matlab, how to do it using matlab command in script ?

7 years ago | 4 answers | 1

4

answers

Question


table function , how to save previous data ?
hello i have a project and i want to save all my data in table command. so if i write this commant : DC=table(input('enter d...

7 years ago | 0 answers | 0

0

answers