VB connection with Matlab
    2 次查看(过去 30 天)
  
       显示 更早的评论
    
 % I want to Use VB as a interface GUI to link with Matlab to solve   this function , could you tell me how 
 function [A] = Area(b,y,z)
 %|---------------------------------------------|
 %| Calculation of the area of a trapezoidal |
 % open-channel cross-section. 
 % 
  % Variables used: 
 % =============== 
 % b = bottom width (L) 
 % y = flow depth (L) 
 % z = side slope (zH:1V, dimensionless) 
 % A = area (L*L, optional in lhs) 
 % ---------------------------------------------
 A = (b+z*y)*y;
0 个评论
回答(0 个)
另请参阅
类别
				在 Help Center 和 File Exchange 中查找有关 Entering Commands 的更多信息
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!