自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 今日练习cody之分享

Problem 5. Triangle Numbersfunction t = triangle(n)t=0; for i=1:n t=t+i; endendProblem 1035. Generate a vector like 1,2,2,3,3,3,4,4,4,4function ans = your_fcn_name(x)ans=[];for i=1:x b=repmat(i,1,i); ans=[ans b];endendProble

2022-04-18 20:40:36 375

原创 今日cody之练习

Problem 1451. Symmetry of vectorfunction y = symmetry(x) n=length(x); for i=1:n if x(i)==x(n-i+1) y=1; else y=0; end endendProblem 1430. Create an n-by-n null matrix and fill with ones certain posi

2022-04-15 14:37:36 422

原创 今日学习之matlab

Problem 2020. Area of an Isoceles Trianglefunction A = isocelesArea(x,y)a=sqrt(1-(y/(2*x))^2) A = 0.5*x*y*aendProblem 2023. Is this triangle right-angled?function flag = isRightAngled(a,b,c)x=[a b c];y=sort(x);a=y(1);b=y(2);c=y(3);if any(a^

2022-04-14 19:45:41 243

原创 继续学习matlab

Problem 2867. Matlab Basics - Rounding IIIfunction y = round_ten_thou(x) y =round(x,-4) ;endProblem 2866. Matlab Basics - Rounding IIfunction y = round_3_d_p(x) y =round(x,3) ;endProblem 2559. Check that number is whole numberfunction y

2022-04-11 18:40:30 242

原创 坚持学习matlab,虽然自己的编程能力很低,但是我还是要继续学

Problem 43294. Can we make a triangle?function flag = Is_Triangle(a, b, c)if a+b>c&&a+c>b&&b+c>a flag=true;else flag=false;endendProblem 43599. Find the sides of an isosceles triangle when given its area and height

2022-04-10 19:58:21 544

原创 【无标题】cody分享,希望自己能坚持分享,坚持学习matlab

Problem 2869. There are 10 types of people in the worldfunction y = yearraey(x) x=dec2bin(x);y=0; while 1 ret = 1; for i=1:length(x)/2 if (x(i)~=x(end-i+1)) ret=0; break; en

2022-04-09 20:58:17 353

原创 cody分享续上

cody分享

2022-04-09 20:46:29 277

原创 【无标题】cody练习分享

Problem 1971. Remove element(s) from cell arrayfunction y = remove_from_cell_array(x,to_remove)x(to_remove)=[];y = x;endProblem 1899. Convert a Cell Array into an Arrayfunction y = your_fcn_name(x) y=[x{:}];endProblem 967. Split a string i..

2022-04-09 20:34:35 376

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除