当前位置:网站首页>Tips in MATLAB
Tips in MATLAB
2022-04-23 03:03:00 【liusaisaiV1】
Number operation and matrix operation
.* : Is the multiplication or division of the corresponding elements ; Point multiplication requires that the two involved in the operation must have the same dimension ;
* : Is matrix multiplication or division ; The dimension of the column of the former matrix is required to be equal to the dimension of the row of the latter matrix .
.^: Is to multiply each element . such as A It's a matrix ,A^2=A*A,
^: Such as :A.^2=B,B by A A matrix in which all elements are squared , to A One of the aij,B The corresponding position in is aij^2
mapping
Draw a piecewise curve
%1 to X assignment
x = -70 : 0.01 : 65;
%2 to Y Assign and determine X The range of ; The interval method is function .*( Section );
y2 =
(6+sqrt(20*20-(x+40).*(x+40))).*(x>=-70&x<-62)+
(15+sqrt(10*10-(x+50).*(x+50))).*(x>=-62&x<-49)+
(9+sqrt(12*12-(x+56).*(x+56))).*(x>=-49&x<-39)+
(-tan(23/18)*x-92).*(x>=-39&x<-38)+
(16-sqrt(11*11-(x+25).*(x+25))).*(x>=-38&x<-29)+
(100-sqrt(100*100-(x+1.25).*(x+1.25))).*(x>=-29&x<-9)+
(498.975-sqrt(500*500-(x-32).*(x-32))).*(x>=-9&x<20)+
(-220+sqrt(220*220-(x-15).*(x-15))).*(x>=20&x<42)+
(-0.125*x+2).*(x>=42.&x<60)+
25.*(x>=60&x<=65);
%3 plot
plot(x,y2);
Be careful :matlab Be sure to write a long line ! Cannot write in segments , Otherwise an error .

版权声明
本文为[liusaisaiV1]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220630032537.html
边栏推荐
- Huawei machine test question -- deformation of hj53 Yang Hui triangle
- In redis cluster, the master node fails, and the IP changes after the master-slave switch. The client does not need to deal with it
- Xamarin效果第二十一篇之GIS中可扩展浮动操作按钮
- Some problems encountered in setting Django pure interface, channel and MySQL on the pagoda panel
- [ncnn] - the meaning of - 23300 in param
- How to write the expected salary on your resume to double your salary during the interview?
- .NET点滴:说说Middleware构造中获取不到Scoped服务的问题
- C#中元组对象Tuple的使用
- TP5 customization in extend directory succeeded and failed. Return information
- Use of MySQL command line client and common commands
猜你喜欢

基于.NetCore开发博客项目 StarBlog - (1) 为什么需要自己写一个博客?
![How to use C language to realize [guessing numbers game]](/img/8c/052dcb0ce64ee1713bebb1340248e6.png)
How to use C language to realize [guessing numbers game]

Linux redis - redis database caching service

Traversal of l2-006 tree (middle and later order determination binary tree & sequence traversal)

Blazor University (11)组件 — 替换子组件的属性

Response processing of openfeign

Kubernetes study notes

Summary of software test interview questions

tf. keras. layers. Conv? D function

MYSQL04_ Exercises corresponding to arithmetic, logic, bit, operator and operator
随机推荐
SQL statement - DDL
JS relearning
JS using the parameters of art template
Classification of technology selection (2022)
MAUI初体验:爽
对.NET未来的一点感悟
BLDC double closed loop (speed PI + current PI) Simulink simulation model
《信息系统项目管理师总结》第四章 项目成本管理
基于.NetCore开发博客项目 StarBlog - (2) 环境准备和创建项目
Source Generator实战
Response processing of openfeign
Résumé du gestionnaire de projet du système d'information Chapitre VI gestion des ressources humaines du projet
《信息系統項目管理師總結》第六章 項目人力資源管理
Reverse a linked list < difficulty coefficient >
《信息系统项目管理师总结》第五章 项目质量管理
Distributed system services
Basic workflow of CPU
Some problems encountered in setting Django pure interface, channel and MySQL on the pagoda panel
使用栈来解决”迷你语法分析器“的问题
Depth deterministic strategy gradient (ddpg)