⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ssts__tether_mmet_ii_discrete_number.m

📁 空间绳系卫星的仿真软件
💻 M
字号:
function [ location_list ]= SSTS__tether_MMET_II_discrete_number( N_number )

% /*M-FILE Function SSTS__tether_MMET_II_discrete_number MMM SSTSLAB */
% /*==================================================================================================
%  Simple Space Tether Simulation Laboratory Toolbox for Matlab 7.x
%
%  Copyright 2007 The SxLAB Family - Yi Chen - leo.chen.yi@gmail.com
% ====================================================================================================
%File description:
%
% to calculate the location of each point mass within the tether for MMET-II
%
% Input:
%  N_number = 20; in MMET-II
% 
% Output:
% location_list -- location list matrix
% 
% Example:
% >> [ location_list ]= SSTS__tether_MMET_II_discrete_number( 5 )
% 
% location_list =
% 
%          0.1000         0         0         0         0
%          0.1000    0.3000         0         0         0
%          0.1000    0.3000    0.5000         0         0
%          0.1000    0.3000    0.5000    0.7000         0
% N = 5    0.1000    0.3000    0.5000    0.7000    0.9000
% 
%===================================================================================================
%  See Also:   SSTS__plot_position3d
%              SSTS__plot_position
%              SSTS__tether_dumbbell_replot
%              SSTS_ln_function_singularity_replot
%===================================================================================================
%
%===================================================================================================
%Revision -
%Date        Name    Description of Change email                 Location
%22-Dec-2006 Yi Chen Initial version       leo.chen.yi@gmail.com Glasgow
%HISTORY$
%==================================================================================================*/

% SSTS__tether_MMET_II_discrete_number Begin
if ( nargin == 0 )

    N_number = 20;

end
location_list = zeros( N_number , N_number )*NaN;

for idx = 1 : 1 : N_number

    location_list( idx , (1:1:idx) ) = ( 2*(1:1:idx) - 1 )/2/idx;

end

%  figure
%  stem (location_list);
%  xlabel('Number of point masses - number');
%  ylabel('Length percentage of tether length - % ');
% SSTS__tether_MMET_II_discrete_number End

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -