爱问知识人 爱问教育 医院库

在matlab中如何输入矩阵方?

首页

在matlab中如何输入矩阵方?

在matlab中如何输入矩阵方程

提交回答

全部答案

    2013-10-27 20:11:26
  •   这需要GUI设置,举个例子:% By lyqmath% DLUT School of Mathematical Sciences% BLOG: http://blog。csdn。net/lyqmathfunction main()clc; clear all; close all;global he1 he2 he3figure; he1 = uicontrol('Style', 'Edit', 'Units', 'Normalized', 。
      。。 'Position', [0。2 0。6 0。4 0。2], 'String', '0 1', 'Min', 1, 'Max', 10);he2 = uicontrol('Style', 'Edit', 'Units', 'Normalized', 。
      。。 'Position', [0。2 0。3 0。4 0。2], 'String', 'x(1)+2*x(2)^2');hb = uicontrol('Style', 'PushButton', 'Units', 'Normalized', 。
      。。 'Position', [0。3 0。15 0。2 0。1], 'String', 'Compute', 。。。 'CallBack', @compute);he3 = uicontrol('Style', 'Edit', 'Units', 'Normalized', 。
      。。 'Position', [0。5 0。15 0。2 0。1], 'String', 'Result = ?');function result = compute(src, event)global he1 he2 he3A = str2num(get(he1, 'String'));fun = str2func(['@(x) ' get(he2, 'String')]);result = fun(A);set(he3, 'String', sprintf('Result = %。
      2f', result));结果:。

    p***

    2013-10-27 20:11:26

类似问题

换一换
  • 软件 相关知识

  • 电脑网络技术
  • 电脑网络

相关推荐

正在加载...
最新资料 推荐信息 热门专题 热点推荐
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200

热点检索

  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
返回
顶部
帮助 意见
反馈

确定举报此问题

举报原因(必选):