Answered
ode45 with two 2nd order differential equation
<https://de.mathworks.com/help/symbolic/odetovectorfield.html>

2 months ago | 1

Answered
Solve a system of odes where equations are derived from a separate code (not directly given) using syms function
Hi, have a read here: <https://de.mathworks.com/help/symbolic/odetovectorfield.html> Best regards Stephan

2 months ago | 0

| accepted

Answered
Cannot use fzero function
i recommend to use fminunc: x=fminunc(@funct,pi/2); function y = funct(x) y=7.*sin(2.*pi.*x).^2 end

2 months ago | 1

Answered
Solving system of 3 nonlinear Equations
syms EPS0 E1 A1 E2 A2 RO e_y1 e_y2 e_z1 e_z2 I_y1z1 I_y2z2 M I_z1 I_z2 alfa fun1 = EPS0*(E1*A1 + E2*A2) - (1/RO)*(E1*A1*e_y1...

2 months ago | 0

| accepted

Answered
Creating transfer function (using tf) with unknowns in it
You might want to work with tuneable models / tuneable parameters.

2 months ago | 0

Answered
Find the intersection point between 2 curves
create a function handle depending from wave length, that subtracts both from each other. this is the objective function for usi...

2 months ago | 1

Answered
fmincon with function file
change your function, that it accepts x and p as input. use: x = x(1); y = x(2); for passing p to the function read her...

2 months ago | 0

Answered
why my deeplearning toolbox can not work
you have to install the pretrained Networks seperatly. Use the Add on Manager.

2 months ago | 0

| accepted

Answered
Sine function produces unexpected results
Hi, note: >> t = 0:0.1:1 t = Columns 1 through 8 0 0.1000 0.2000 0.3000 0.4000 0.5000 0....

2 months ago | 1

| accepted

Answered
how to get float answer and not a Fraction ?
Hi, symbolic calculatuions are always precise. If you want a float point answer, you have to tell it to matlab: % one way: so...

2 months ago | 0

Answered
Define functional bounds in FMINCON optimization
Define them as nonlinear constraint function: <https://de.mathworks.com/help/optim/ug/fmincon.html?s_tid=doc_ta#busog7r-nonlc...

2 months ago | 0

| accepted

Answered
How could normalize a matrix between 0 and 1.
result = normalize(x,2,'range')

2 months ago | 1

Answered
Simulation model of Kanban Production System with SimEvents
Did you see this example: <https://de.mathworks.com/help/simevents/examples/modeling-a-kanban-production-system.html>

2 months ago | 2

Answered
How to loop the fsolve for various sets of parameters
Hi, store the parameters in an array and call fsolve in a loop. In every run of the loop you solve for one set of parameters....

2 months ago | 0

| accepted

Answered
How to draw Fig. 4
Hi, maybe this is useful: https://de.mathworks.com/help/matlab/math/solve-bvp-with-two-solutions.html As shown in the link,...

2 months ago | 0

| accepted

Answered
for loop collecting output
Hi, it is not recommended to use i - since i is reserved for complex numbers. Perhaps use k or n or ii instead. I decided to us...

2 months ago | 0

Answered
bitorreduce is undefined.
bitorreduce is a part of Fixed Point Designer - if you have a valid license for it, install Fixed Point Designer. Otherwise you ...

2 months ago | 0

| accepted

Answered
Help on solving equation?
Hi, try: A1=1.825*10^6; Zi=67; M=123; B=50.29; a=5; Z=134; AO0=2.6; P0=54.6; C=12; Ka=2.45; V=10^((-A1*(Zi^2)*sqrt(M...

2 months ago | 0

| accepted

Answered
how to minimize set of values with genetic algorithm
Hi, you do not call ga here. Also your function would overwrite every input of x by the fixed values for x1...x5 inside your fu...

2 months ago | 1

| accepted

Answered
why doesnt matlab calculate this divisions
Hi, x,y are symbolic variables. Matlab shows them this way, due to accurracy. Insert a type cast to make them numbers: x...

2 months ago | 0

Answered
i need to delete a zero from a single row 10 column vector
A = [0 1 2 3 0 5] A = A(A~=0)

2 months ago | 0

| accepted

Answered
how to convert Frames into video?
<https://de.mathworks.com/help/matlab/import_export/export-to-video.html>

2 months ago | 0

Answered
ODE45: ODE Error using odearguments must return a column vector
dtmdt = (1/C_rad*((Qinj_td)- (C*(Tm-Tair).^n)))'

2 months ago | 0

Answered
ERROR: odearguments (line 90), ode45 (line 113)
add: yprime = zeros(4,1); before assigning values to yprime

2 months ago | 0

| accepted

Answered
how to select column from Table and create variable
Time = Trans{:,1:4}; Los = Trans{:,5};

2 months ago | 0

| accepted

Answered
solve single non linear
syms P B= 500*10^6; l = 1.55 *10^-6; R = 75; T = 300; eta = 0.9; Id = 5*10^-9; h = 6.625*10^-34; c=3*10^8; q= 1.6*10^...

2 months ago | 0

| accepted

Answered
how can i see the linear variation in the graph?
H = [ 1:2:11]; L = 0.0065; %K/m T0= 288.15; % till 11 km T = T0 - L.*H; %K plot(T,H,'-o')

2 months ago | 0

Answered
Applying Boundary Condition to ODE45
Hi, you can reverse tspan. If you for example use: tspan = [20 0] then the integration will be backwards and your con...

2 months ago | 0

| accepted

Answered
a and b constant
% Only needed if x,y are not column vectors x = reshape(x,[],1); y = reshape(y,[],1); % solve for a, b x = [x, ones(nume...

2 months ago | 1

Answered
Help me understand the Classifier App
Hi, see example 1 from this webinar: <https://de.mathworks.com/videos/machine-learning-with-matlab-100694.html> Also no...

2 months ago | 0

| accepted

Load more