필터 지우기
필터 지우기

How can you ask matlab to switch a set of input parameters of an array to solve different set of equations each time?

조회 수: 1 (최근 30일)
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개)

Ngoc Thanh Hung Bui
Ngoc Thanh Hung Bui 2018년 4월 18일
편집: Ngoc Thanh Hung Bui 2018년 4월 18일
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?

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by