能不能把下面储存在元胞里面的t(i)换成具体的值,是不是有强制计算什么的
Mostrar comentarios más antiguos
代码:
clear
clc
t=[1 2 3 4 5]
for i=1:4
F{i}=@(a)t(i+1).^a-t(i).^a
end
结果:
F =
1×4 cell 数组
{@(a)t(i+1).^a-t(i).^a} {@(a)t(i+1).^a-t(i).^a} {@(a)t(i+1).^a-t(i).^a} {@(a)t(i+1).^a-t(i).^a}
1 comentario
Walter Roberson
el 29 de Jun. de 2022
Approximate translation:
Can you replace the t(i) stored in the cell below with a specific value? Is there any mandatory calculation?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre 输入命令 en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!