How can you ask matlab to switch a set of input parameters of an array to solve different set of equations each time?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
How can you ask matlab to switch a set of input parameters of an array to solve different set of equations each time?
I am trying to create a matlab code that will be able to identify what parameters are needed for each equation and then switch to use to those parameters already identified. I'd like to achieve this in the program without using the command line.
1 Commento
Birdman
il 18 Apr 2018
In which program you want to achieve this? Simulink? What have you done so far?
Risposte (1)
Ngoc Thanh Hung Bui
il 18 Apr 2018
Modificato: Ngoc Thanh Hung Bui
il 18 Apr 2018
just use a for loop and a function, for examlple:
for i = 1:length(A) %A is your input array
%use if else for the condition of input parameter
equation_solve(A(i))
end
the question is too unspecificed, so that's all I got
Is this what you're looking for?
0 Commenti
Vedere anche
Categorie
Scopri di più su Loops and Conditional Statements in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!