当前位置:网站首页>Matlab construction operation example
Matlab construction operation example
2022-06-30 14:50:00 【Tongxuan Shangjing programmer】
Problem description : Take out from the low position s The number on the middle even digit , Form a new number and put it in t And output as an integer .
for example : When s Medium The number of :7654321 when ,t Medium The number of :642.
clc;clear;
s=input(' Please enter s:');
y=ceil(log10(s));
s=num2str(s);
for i=1:floor(y/2)
t(i)=s(2*i);
end
t=str2num(t);
disp(t);
边栏推荐
- Detailed explanation of settimeout() and setinterval()
- Text matching - [naacl 2021] augsbert
- 浅析卧式加工中心上不规则台阶孔存在问题
- Clear the route cache in Vue
- 【BUUCTF】[GXYCTF2019]Ping Ping Ping1
- 文本匹配——【NAACL 2022】GPL
- DB2 SQL Error: SQLCODE=-206, SQLSTATE=42703
- For loop and promise to solve the problem of concurrent callback
- Text matching - [naacl 2022] GPL
- CCF string matching (Full Score code + problem solving ideas + skill summary) March 3, 2014
猜你喜欢

1 figure to explain the difference and connection between nodejs and JS

LIS error: this configuration section cannot be used in this path

day02
![[buuctf] [actf2020 freshman competition]include](/img/42/50439290177fdea5f431e315cac1a1.jpg)
[buuctf] [actf2020 freshman competition]include

2021 geek challenge Web

Laravel upload error

CCF adjacent number pairs (Full Score code + problem solving ideas + skill summary) 201409-1

How to use Alibaba Vector Icon

PS dynamic drawing
![【BUUCTF】[GXYCTF2019]Ping Ping Ping1](/img/dc/4d87dfb0c2fa9cd75b54e092fd3971.jpg)
【BUUCTF】[GXYCTF2019]Ping Ping Ping1
随机推荐
立式加工中心调试的步骤
Repair of incorrect deletion of win10 boot entry
PS dynamic drawing
【BUUCTF】[GXYCTF2019]Ping Ping Ping1
高清机械原理 · 机械设计经典动图
JS delete the objects in the array and specify to delete the objects
Svn password forgetting solution
[buuctf] [geek challenge 2019] secret file
Introduction to the construction and development of composer private warehouse
Double pointer palindrome string
CCF date calculation (Full Score code + skill summary) February 2, 2015
分布式--OpenResty+lua+Redis
Querywrapper in mybaits plus
Invalid argument during startup: Failed to open the . conf file: redis-window
CCF string matching (Full Score code + problem solving ideas + skill summary) March 3, 2014
数控加工中心打刀缸工作原理及故障处理
Effect of shadow around the block after mouse over
V3 03_ Getting started
Steps for commissioning of vertical machining center
Larave8 JWT API expiration custom error return