Beantwortet
Im getting the following error, even though the required vectors have been created!!
Hi, You try to calculate the <https://de.mathworks.com/help/matlab/ref/cross.html *|cross|*> products of 2 scalars. The initi...

mehr als 7 Jahre vor | 0

Beantwortet
Is this equation numerically solvable?
Hi, the following code will transform the equations into a form that can be solved with |ode45|. It creates a file _ode_syste...

mehr als 7 Jahre vor | 0

Beantwortet
Problem with connection in Simulink
Hi, the line color says which type of signal you deal with. That you have black lines ("normal" Simulink Signals) in an elect...

mehr als 7 Jahre vor | 0

Beantwortet
How initial value of solution can be provided for system solving by fsolve ?
Hi, try: q1=2; D=0.375; k=0.867; q2=2.9349; x0 = [-1 -1 -1 -1 2 2.5] options = optimoptions('fs...

mehr als 7 Jahre vor | 1

| akzeptiert

Beantwortet
Ensure same random coordinates do not appear twice
Hi, use <https://de.mathworks.com/help/matlab/ref/randperm.html *|randperm|*> for getting unique values: _For p = randperm...

mehr als 7 Jahre vor | 1

Beantwortet
How can I write equation?
Hi, y= linspace(0,2*pi); x=[0, 0.1, 0.5, 0.9]; [a,b] = meshgrid(x,y); r = (1-a.^2)./(1-a.*cos(b)); contourf(x,y,r)

mehr als 7 Jahre vor | 0

Beantwortet
I cant use audiowrite function in MATAB R2016a
Hi, this appears to be not a problem of Matlab. Try: audiowrite('C:\Path_you_are_allowed_to_write_in\ABC_REC.wav', wavda...

mehr als 7 Jahre vor | 1

Beantwortet
I am using 'idsolver' to solve a integro-differential equation. But having the problem when run the program "Undefined function or variable 'idsolver' ". How can I solve this problem?
<https://de.mathworks.com/matlabcentral/answers/95224-can-matlab-solve-integro-differential-equations> In the comments to thi...

mehr als 7 Jahre vor | 1

| akzeptiert

Beantwortet
my code is entering infinite loop when i am trying to solve differential equation using ode45 command , can some one help me fix this
Hi, You make your code inefficient by calculating constant values again and again in every iteration. Try this: syms E1 ...

mehr als 7 Jahre vor | 0

| akzeptiert

Beantwortet
problem with implementing non linear constraints in a minimization problem using genetic algorithms
Hi, the way to give nonlinear constraints to solvers like ga is described here: <https://de.mathworks.com/help/gads/constr...

mehr als 7 Jahre vor | 1

| akzeptiert

Beantwortet
Error when using the curve fitting tool
Hi, problably your script is named _fit.m_ - Rename your script. It is not a good idea to name scripts like the function name...

mehr als 7 Jahre vor | 1

Beantwortet
How to make a function and recall it in MATLAB Android application
Hi, inside the app at the top where you find _Commands_ there is a little arrow. Click it and go to _Files_. There are all th...

mehr als 7 Jahre vor | 0

| akzeptiert

Beantwortet
fmincon linear contraint doens't work for me
Hi, consider: A = [1 -1] b = -eps That means: 1*x(1) -1*x(2) < -eps This inequality will only be true if: ...

mehr als 7 Jahre vor | 1

Beantwortet
ODE solvers for R2016b
Hi, Most (all?) ode solvers are introduced before R2006a. In the documentation for 2016b is a list of ode solvers: <https:...

mehr als 7 Jahre vor | 0

Beantwortet
solve the binary integer (0,1) problem
If you want to get binary output there should be a possibility to add integer constraints for x(1)...x(6). In combination with l...

mehr als 7 Jahre vor | 0

Beantwortet
Symbolic manipulation and integration / not enough input argument
*Edit* Here is another approach, inspired by Walters answer: syms phi(t) g l eqn = diff(phi,t,2) + g/l * sin(phi) == 0;...

mehr als 7 Jahre vor | 0

Beantwortet
error in digraph while finding adjacency matrix
Hi, try: s = [1 2 5 7 1 3 6 8 2 4 3 4 6]; t = [2 5 7 9 3 6 8 9 4 6 4 5 7]; W=[1 2 3 4 1 2 3 4 2 3 2 3 3]; n...

mehr als 7 Jahre vor | 0

Beantwortet
How can solve this system of differential equations with two variables x, y? I will attach a photo to make it clearer.
Hi, this system can be integrated in a range of t=[0... ca. 0.247]: x0 = [1.44 0.48]; tspan = [0, 0.247]; [t, y] =...

mehr als 7 Jahre vor | 0

Beantwortet
How to solve the error ['model' parameter must be a string ]?
Hi, <https://de.mathworks.com/help/simulink/slref/sim.html?searchHighlight=Sim&s_tid=doc_srchtitle#bvfe92n-model *|sim|*> exp...

mehr als 7 Jahre vor | 0

| akzeptiert

Beantwortet
Undefined function or variable 'dct'
Did you take notice of the limitations for code generation for <https://de.mathworks.com/help/signal/ref/dct.html#bvk_tfg-1 *|dc...

mehr als 7 Jahre vor | 0

| akzeptiert

Beantwortet
Help with two 1st order diff eq
Hi, you missed to make a function handle from your vector field like shown <https://de.mathworks.com/help/symbolic/odetovecto...

fast 8 Jahre vor | 0

| akzeptiert

Beantwortet
how to simplify a algebra function
Hi, syms f(x) fun = f(x) == (x^2 + 1)^3 fun = collect(fun,x) results in: fun = f(x) == (x^2 + 1)^3 ...

fast 8 Jahre vor | 0

| akzeptiert

Beantwortet
Though the linspace has 100 points but it takes 131 points for soly(2,:) in bvp4c
Hi, see the documentation for <https://de.mathworks.com/help/matlab/ref/bvpinit.html *|bvpinit|*>: _x is a vector that spe...

fast 8 Jahre vor | 0

| akzeptiert

Beantwortet
Dear sir, How I can define a high order transfer function 1/(s*(T*s+1)^2) in simulink 2018 version? Thanks.
Hi, use the _Transfer Function Block_ and define the transfer function like described in the documentation for the <https://d...

fast 8 Jahre vor | 0

| akzeptiert

Beantwortet
what is the date of release of Matlab 2017b
Hi, you find a release history at <https://www.google.de/url?sa=t&source=web&rct=j&url=https://en.m.wikipedia.org/wiki/MA...

fast 8 Jahre vor | 0

Beantwortet
Division by zero in sym using subs
Hi, remove the 0 in the vector -L/2:1000:L/2 for example this way: po=1010*10^2; Dp=6*10^2; L=1000*10...

fast 8 Jahre vor | 2

| akzeptiert

Beantwortet
regarding the error in matlab
Hi, try: syms s x y z G_MOTA R_OTA C_OTA s g_mbuf C_gdMN ... C_gsMN g_mMN R_L C_L R_1 R_2 C_1 C_2 V_out V_in...

fast 8 Jahre vor | 0

Beantwortet
Unknown or unsupported solverType fmincon specified for this object
Hi, see the <https://de.mathworks.com/help/finance/portfolio.setsolver.html?s_tid=doc_ta#d120e212965 *|setSolver|*> documenta...

fast 8 Jahre vor | 1

| akzeptiert

Beantwortet
How can I extract a column from my database starting from the 2nd row
Hi, this is an example for n=5: a = (1:5)' b = a(2:end) which results in: a = 1 2 ...

fast 8 Jahre vor | 0

Mehr laden