【问题标题】:Undefined function 'times' for input arguments of type 'cell''cell' 类型的输入参数的未定义函数 'times'
【发布时间】:2014-02-17 23:12:16
【问题描述】:

我正在使用 matlab 绘制这段代码,该代码应该绘制 Theta(不同时间的无量纲温度(t)),当我尝试运行它时,我收到此错误“未定义函数 'times' for input arguments of type 'cell '"

t=1:1:5;
alfa=(1.172.*(10.^(-2))); ......   
    % alfa for steel with 1% carbon = 1.172*10^-2 m^2/s%
L=1;
T={(alfa.*t)./(L.^2)}; % dimensionless time equation %
lambda1=0.3111; % @ biot =0.1 % 
A1=1.0161; % @ biot =0.1 %
theta={A1.*exp(-(lambda1.^2).*T)}; % dimensionless Temperature equation %
plot(t,theta,'.');

总的来说,我还是 matlab 和编程的初学者。

【问题讨论】:

  • 在哪里?什么时候?谁?什么? D:
  • 这是什么语言?此问题缺少语言标签。
  • 另外,它缺少第一(也是唯一)句子的一半

标签: function matlab undefined cell


【解决方案1】:

由于某种原因,您在第 5 行和第 8 行使用了元胞数组(大括号 {})。只需删除它们,您的代码就会绘制...

问候

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多