2301_81083662 2023-12-30 13:56
浏览 7
已结题

matlab编写程序

Write a program which allows the user to input a number at each iteration until a negative value is input . Calculate the average of all the input values between 40 and 80( inclusive ).( If you test your program with the following inputs :29,35,65,49,38,79,93,80,28,29,58,-7, the output should be 66.2.)
对基本原理的钻研,对基本技术的实践、改进和创新,对知识的延伸、迁移和再生产,正是工匠精神的内涵所在。运用不同的方法编写程序完成上述问题并浅谈心得体会。

  1. with a while loop ;
  2. with a for loop ;
  3. with logical vector ;
  4. with find function .
  • 写回答

0条回答 默认 最新

    报告相同问题?

    问题事件

    • 系统已结题 1月7日
    • 创建了问题 12月30日

    悬赏问题

    • ¥15 高价求中通快递查询接口
    • ¥15 解决一个加好友限制问题 或者有好的方案
    • ¥15 关于#java#的问题,请各位专家解答!
    • ¥15 急matlab编程仿真二阶震荡系统
    • ¥20 TEC-9的数据通路实验
    • ¥15 ue5 .3之前好好的现在只要是激活关卡就会崩溃
    • ¥50 MATLAB实现圆柱体容器内球形颗粒堆积
    • ¥15 python如何将动态的多个子列表,拼接后进行集合的交集
    • ¥20 vitis-ai量化基于pytorch框架下的yolov5模型
    • ¥15 如何实现H5在QQ平台上的二次分享卡片效果?