在前一篇科普文ChatGPT在电磁领域的能力到底有多强?中,我们介绍了ChatGPT的强大功能。但很多朋友在使用ChatGPT过程中,并没有掌握技巧,因此无法得到期望的回答。
与ChatGPT的对话过程中,必须写出便于理解、消除歧义的Prompts(提示,即你的指令或问题),它才可以理解你的意思,做出正确的应答。下面我们用两个例子,向大家展示好的Prompts会让它变得有多强。在实战之前要说明几点:
-
1.向ChatGPT一次最多发多少字符
4096字符。记住要清晰、简单,太多的字符反而未必得到正确的或期望的答案。
-
2.重复问ChatGPT一样的问题会得到完全一样的答案吗?
不会。它每次的回答内容都不一样,即使让它翻译同样一段话。
-
3.ChatGPT能扮演什么角色?
几乎所有。你可以让它Act as MATLAB, Python, C, Excel, Translator, Lawyer等等。
-
4.ChatGPT给出的知识都对吗?
不一定。很多它并不了解的知识,ChatGPT会拼凑出看似合理的答案,对初学者要引起充分的警惕。比如我问它某个西北菜怎么烹饪,它回答的头头是道、步骤清晰、逻辑性好,但做的方法并不对。
-
5.ChatGPT具有产生新知识的能力吗?
它具有一定的集成创新能力。虽然ChatGPT只学了2021年之前的知识,但它的总结、联想能力很强。我们曾问它如何制作一支铅笔?能否给出一个之前没有的、创新的方法制作铅笔?它的回答涉及3D打印,尽管实际工业中可能并不可行,但该方法确实之前没有过。
-
6.目前ChatGPT不具有哪些能力?
实时访问互联网或发电子邮件、完成复杂的科学计算(与编译器融合)等。
接下来就开始展示两个具有代表性的例子。
第1个例子,5G通讯的杀手锏:MIMO多天线的波束赋形算法。在一个好的Prompts下,MATLAB代码几乎不需修改,就能运行给出正确结果。图我也贴出来了。或许此时你会想起星爷的一句话:惊不惊喜,意不意外,开不开心?
Please write a MATLAB program about beam forming of the 1D antenna array line up along the x axis. Consider 10 antenna elements with uniform spacing of 0.5. The wavelength is 1. The radiation angle is from 0 to 180 degrees, where the x axis is related to 0 degree. Please use the following steps to write the program:
-
1.Establish a steering matrix A with the size of 181x10, which gives the array factors of all antenna elements covering all radiation angles. 181 is the number of matrix lines or radiation angles. 10 is the number of matrix columns or antenna elements.
-
2.Establish a radiation vector b with the size of 181x1. The elements are all zeros except for the 31th and 61th elements, which means the array radiates wave along both 30 and 60 degrees.
-
3.Get the complex excitation amplitude of each antenna element y by using y=A with the least square method.
-
4.Calculate the radiation pattern of the array by using the excitation amplitude y and the steering matrix A, i.e. res=A*y.
-
5.Please draw the radiation pattern with polar coordinates.
% Define the number of elements and spacing
N = 10;
d = 0.5;
% Define the number of angles and wavelength
angles = 181;
lambda = 1;
% Compute the steering matrix A
A = zeros(angles, N);
fori = 1:angles
forj = 1:N
A(i,j) = exp(-1j*2*pi*(j-1)*d*sin(pi*(i-1)/180)/lambda);
end
end
% Define the radiation vector b
b = zeros(angles, 1);
b(31) = 1;
b(61) = 1;
% Compute the excitation amplitude y
y = A;
% Compute the radiation pattern res
res = A*y;
% Plot the radiation pattern in polar coordinates
polarplot(linspace(0, pi, angles), abs(res));
第2个例子,是学者们常常遇到的问题:如何快速、高质量地写一封正式邀请信,让大牛们加入某个国际会议的TPC,成为TPC Member。下面就是我们给出的一个不错的Prompts,看看ChatGPT如何响应呢?大家也可以测试下,贴进去这个Prompts,会得到内容不一样却同样惊艳的邀请信。ChatGPT生成的内容还加入了很多我没有给的要素(我用下划线标出来了),真的太贴心!
我想写一封英文的邀请信,以浙江大学的名义,邀请某位教授或博士加入国际学术会议的TPC Member。请尽量写的礼貌、专业,邀请信的内容需要包含如下信息:
-
1.会议名称:2023 International AI Symposium (AIS 2023)
-
2.召开时间: August 1-3, 2023
-
3.主办单位: Zhejiang University
-
4.会议地点: Deefly Zhejiang Hotel with the Address: No. 147 Santaishan Road, Hangzhou, Zhejiang Province
-
5.会议影响:AIS是人工智能领域的著名国际会议,每年在中国召开一次
-
6.会议内容:大会报告、邀请报告、短课程、special sessions、workshops、学生竞赛等。
-
7.TPC Member责任:review conference papers and organize sessions
-
8.请在2023年3月1日之前回复是不是愿意接收邀请
Dear [Professor/Dr.],
I hope this email finds you well. On behalf of Zhejiang University, I am writing to extend a formal invitation for you to join the Technical Program Committee (TPC) Member for the 2023 International AI Symposium (AIS 2023).
The AIS 2023 will be held from August 1st to 3rd, 2023, at the Deefly Zhejiang Hotel located at No. 147 Santaishan Road, Hangzhou, Zhejiang Province. As one of the most well-known international conferences in the field of artificial intelligence, AIS 2023 is held annually in China andprovides a platform for researchers and scholars to exchange and share their latest findings and ideas.
As a TPC Member, you will play a vital role in reviewing conference papers and organizing sessions,helping to ensure the highest quality of presentations and discussions. The conference will feature keynote speeches, invited talks, short courses, special sessions, workshops, and student competitions,offering a wide range of opportunities for participants to deepen their knowledge and engage in meaningful discussions.
We would be honored to have you join us as a TPC Member for this exciting event. Please let us know by March 1st, 2023, if you are willing to accept this invitation.
Thank you for your time and consideration. We look forward to your response.
Best regards,
[Your Name]
On behalf of Zhejiang University
看完这两个例子后,你是不是对如何与它交流更有信心了?记住你可以和它多次交流,不断提出你的要求,它也就不断改进,在你没有登出系统前甚至记住你的偏好。未来ChatGPT会与搜索引擎、云计算、Office等应用软件融合,未来的世界会变得如何呢?就让我们拭目以待吧!
审核编辑 :李倩
-
电磁
+关注
关注
15文章
1133浏览量
51814 -
MIMO
+关注
关注
12文章
594浏览量
76843 -
波束
+关注
关注
0文章
54浏览量
15762 -
ChatGPT
+关注
关注
29文章
1560浏览量
7664
原文标题:如何让ChatGPT实现MIMO波束赋形和写一封会议邀请信?[20230202]
文章出处:【微信号:EMC_EMI,微信公众号:电磁兼容EMC】欢迎添加关注!文章转载请注明出处。
发布评论请先 登录
相关推荐
评论