matlab programming for engineers(2nd)书籍源码,这是一本很好的学习MATLAB编程书

源代码在线查看: junk.m

软件大小: 475 K
上传用户: kinder121
关键词: programming engineers matlab MATLAB
下载地址: 免注册下载 普通下载 VIP

相关代码

				x = 5;
				y = -2 
				
				if x >= 0 & y >= 0
				   fun = x + y;
				elseif x >= 0 & y < 0
				   fun = x + y^2;
				elseif x < 0 & y >= 0
				   fun = x^2 + y;
				else
				   fun = x^2 + y^2;
				end
				 
				disp (['The value of the function is ' num2str(fun)]);
							

相关资源