Matlab中怎么向一个矩阵表达式中赋值[ 5977/9584000*(1-59900000000000/71152505391387/(1-5000/7*delta)^2)*x/(1-x),5977/9584000*(1-119800000000000/129817896266387/(1-5000/7*delta)^2)*x/(1-x),5977/9584000*(1-179700000000000/188483287141387/(1
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/15 21:37:58
Matlab中怎么向一个矩阵表达式中赋值[ 5977/9584000*(1-59900000000000/71152505391387/(1-5000/7*delta)^2)*x/(1-x),5977/9584000*(1-119800000000000/129817896266387/(1-5000/7*delta)^2)*x/(1-x),5977/9584000*(1-179700000000000/188483287141387/(1
Matlab中怎么向一个矩阵表达式中赋值
[ 5977/9584000*(1-59900000000000/71152505391387/(1-5000/7*delta)^2)*x/(1-x),5977/9584000*(1-119800000000000/129817896266387/(1-5000/7*delta)^2)*x/(1-x),5977/9584000*(1-179700000000000/188483287141387/(1-5000/7*delta)^2)*x/(1-x),5977/9584000*(1-239600000000000/247148678016387/(1-5000/7*delta)^2)*x/(1-x),5977/9584000*(1-299500000000000/305814068891387/(1-5000/7*delta)^2)*x/(1-x),5977/9584000*(1-359400000000000/364479459766387/(1-5000/7*delta)^2)*x/(1-x),5977/9584000*(1-59900000000000/60449264377341/(1-5000/7*delta)^2)*x/(1-x),5977/9584000*(1-479200000000000/481810241516387/(1-5000/7*delta)^2)*x/(1-x)]
整个矩阵中需要对delta进行赋值,delta1=0.00006:0.00005:0.0010,如何实现呢?
Matlab中怎么向一个矩阵表达式中赋值[ 5977/9584000*(1-59900000000000/71152505391387/(1-5000/7*delta)^2)*x/(1-x),5977/9584000*(1-119800000000000/129817896266387/(1-5000/7*delta)^2)*x/(1-x),5977/9584000*(1-179700000000000/188483287141387/(1
最直接的方法是建立一个m文件;由于不是很清楚你到底是什么意思,给你一个较简单的方法;
function out=matrix(delta1,x)
[m,n]=size(delta1);
out=zeros(8,m,n);
for i=1:m
for j=1:n
delta=delta(i,j);
out(:,i,j)=[5977/9584000*(1-59900000000000/71152505391387/(1-5000/7*delta)^2)*x/(1-x),5977/9584000*(1-119800000000000/129817896266387/(1-5000/7*delta)^2)*x/(1-x),5977/9584000*(1-179700000000000/188483287141387/(1-5000/7*delta)^2)*x/(1-x),5977/9584000*(1-239600000000000/247148678016387/(1-5000/7*delta)^2)*x/(1-x),5977/9584000*(1-299500000000000/305814068891387/(1-5000/7*delta)^2)*x/(1-x),5977/9584000*(1-359400000000000/364479459766387/(1-5000/7*delta)^2)*x/(1-x),5977/9584000*(1-59900000000000/60449264377341/(1-5000/7*delta)^2)*x/(1-x),5977/9584000*(1-479200000000000/481810241516387/(1-5000/7*delta)^2)*x/(1-x)];
end
end
注意delta的维数至多是2
对每个i,j :out(:,i,j)是一个所需矩阵(向量)