为什么在电脑上下载matlab总是出现error8
答案:2 悬赏:40 手机版
解决时间 2021-02-19 18:01
- 提问者网友:战魂
- 2021-02-19 02:48
为什么在电脑上下载matlab总是出现error8
最佳答案
- 五星知识达人网友:不甚了了
- 2021-02-19 03:41
#include
int main()
{
float a, b;
char c;
printf("please enter two number and operator:\n");
scanf_s("%d %d %c", &a, &b,&c);
switch (c)
{
case '+':printf("%d", a + b); break;
case '-':printf("%d", a - b); break;
case '*':printf("%d", a * b); break;
case '/':printf("%d", a / b); break;
default;
}
return
int main()
{
float a, b;
char c;
printf("please enter two number and operator:\n");
scanf_s("%d %d %c", &a, &b,&c);
switch (c)
{
case '+':printf("%d", a + b); break;
case '-':printf("%d", a - b); break;
case '*':printf("%d", a * b); break;
case '/':printf("%d", a / b); break;
default;
}
return
全部回答
- 1楼网友:雪起风沙痕
- 2021-02-19 04:45
message_vector=[2,0,1,1,3,2]; radix=4; rows=3; colums=4; i=1; j=1; for a=1:1:length(message_vector) if message_vector(a)<=radix-1 a=a+1; else if message_vector(a)>radix-1 error('soton:argchk','your error message goes there that radix is not matched with message vector'); end end end if (rows-1)*(colums-1)==length(message_vector) fprintf('all the parameters are matched with message vector\n'); else error('soton:argchk','your error message goes there that rows or colums is not matched with message vector'); end while i<=rows-1 x(i,j)=message_vector(i); i=i+1 while j<=colums-1 x(i,j)=message_vector(j); j=j+1; end end
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯