怎樣用matlab從含有變數的方程中提取變數出來

2021-03-10 16:59:32 字數 1330 閱讀 5259

1樓:匿名使用者

syms b r

然後使用solve函式

b=solve('你的方程','b');

參考 doc solve

2樓:

ezplot easy to use function plotter

ezplot(fun) plots the function fun(x) over the default domain

-2*pi < x < 2*pi, where fun(x) is an explicitly defined function of x.

ezplot(fun2) plots the implicitly defined function fun2(x,y) = 0 over

the default domain -2*pi < x < 2*pi and -2*pi < y < 2*pi.

ezplot(fun,[a,b]) plots fun(x) over a < x < b.

ezplot(fun2,[a,b]) plots fun2(x,y) = 0 over a < x < b and a < y < b.

ezplot(fun2,[xmin,xmax,ymin,ymax]) plots fun2(x,y) = 0 over

xmin < x < xmax and ymin < y < ymax.

ezplot(funx,funy) plots the parametrically defined planar curve funx(t)

and funy(t) over the default domain 0 < t < 2*pi.

ezplot(funx,funy,[tmin,tmax]) plots funx(t) and funy(t) over

tmin < t < tmax.

ezplot(fun,[a,b],fig), ezplot(fun2,[xmin,xmax,ymin,ymax],fig), or

ezplot(funx,funy,[tmin,tmax],fig) plots the function over the

specified domain in the figure window fig.

matlab中如何將一個含有多個變數的方程的某一變數放在方程的一邊,而其他變數放在方程的另一邊? 15

3樓:

有積分變數,它肯定是能求導的,所以把那個積分變數看作是x4,它的導數是x4',從而整個微分方程是一個四階的,相當於括了一階,再進行化簡和整理,用ode45函式解微分方程,一定行!!

怎樣用matlab進行復數運算,matlab中兩個複數相乘怎樣實現

例如想用matlab將一個帶變數的複數式 5 i b 3 2i a 整理為實部 虛部的形式。則可版以用如下指權令 syms a b real z 5 i b 3 2i a real z imag z ans 15 2 b a 9 4 a 2 10 a 3 b 9 4 a 2 x 3 5 i y 7 ...

怎樣用matlab提取子數列下標怎麼解決

clear all clc a 1 121 for i 1 3 length a b i a i endid find b b b id a ones 1,121 for j 1 1 40 b j a 3j 2 end for i 1 41 b i a 3 i 2 end matlab 提取矩陣下標...

怎樣用matlab計算矩陣和大量矩陣分別

方法一,可以bai使用for迴圈 方法二du,可以使用cellfun函式.將大量zhi矩陣儲存成cell陣列 dao.示例 內 a rand 3,2 a某個矩容陣 b b大量矩陣組成的cell陣列 c cellfun x a x,b,uniformoutput false 分別將矩陣a與b中每個矩陣...