matlab编程的问题,有代码,希望帮忙改下程序或者解释下程序

2025-03-09 13:41:57
推荐回答(2个)
回答1:

Simulink/Math Operations/Assignment: Assign values to specified elements of a multidimensional output signal. The index to each element is identified from an input port or this dialog. You can choose the indexing method for each dimension by using the "Index Option" Concatenate input signals of the same data type to create a contiguous output signal. Select vector or multidimensional array mode.In vector mode, all input signals must be either vectors or one-row [1xM] matrices or one-column [Mx1] matrices or a combination of vectors and either one-row matrices or one-column matrices. The output is a vector if all inputs are vectors. The output is a one-row or one-column matrix if any of the inputs are one-row or one-column matrices, respectively.In multidimensional mode, use 'Concatenate dimension' to specify the output dimension along which to concatenate the input arrays. For example, to concatenate the input arrays vertically or horizontally, specify 1 or 2, respectively, as the concatenate dimensions.

回答2:

这个问题比较难,这个跟matlab关系不大,主要是数学建模的思路得对了。
建议你找一些数学建模的书籍看看,思路打通后用哪种语言无所谓。