在一个图中显示两个不同的图 [英] Show two different plots in one plot

查看:87
本文介绍了在一个图中显示两个不同的图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Matlab中与Matcont一起工作,但绘图有问题.我正在使用Matcont的特殊内置函数进行绘图,我想在一个视图中显示两个单独的绘图.

I am working with Matcont in Matlab and I have a problem with plotting. I am using a special built-in function of Matcont to plot and I would like to display two separate plots in one.

在mathematica中,我将使用show函数.

In mathematica I would use the show function.

a=cpl(x,v,s,[4 1])
b=cpl(x1,v1,s1,[4 1])
Show[{a, b}]

我正在寻找相同的显示函数.

I am looking for the same Show function in matlab.

推荐答案

正如@Dan在评论中已经提到的,似乎您尝试执行以下操作:

As @Dan already mentioned in the comments, it seems like you try to do something like this:

a=1:10
b=a.^2

plot(a)
hold on
plot(b)

这篇关于在一个图中显示两个不同的图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆