龙空技术网

基于MATLAB的矩阵GUI计算器

云龙派 1216

前言:

目前各位老铁们对“用matlab求矩阵特征值”大概比较讲究,你们都需要剖析一些“用matlab求矩阵特征值”的相关知识。那么小编也在网摘上收集了一些对于“用matlab求矩阵特征值””的相关资讯,希望各位老铁们能喜欢,小伙伴们快快来学习一下吧!

MATLAB有很多内置的矩阵处理函数,能够很好的实现对于矩阵的计算,可以用于计算一些简单的运算。

本人基于MATLAB的GUI界面设计了一个操作简单矩阵计算器,能够实现矩阵的加、减、乘、除、点乘、转置、求秩、求矩阵行列式、特征值、特征向量、LU分解、矩阵的最简形化简等功能,具体的界面如下:

点击输入矩阵A和矩阵B的数据——点击相应的功能按键——开始计算——出现结果显示——点击清除可以清除输入——点击关闭可以关闭当前的GUI界面。需要基于MATLAB的矩阵计算器的GUI计算界面完整GUI程序,可以进行赞赏后截图(20元及以上),进行联系,或者点击微信公众号云龙派的“联系掌门”菜单进行联系,或者在公众号内回复截图,几小时内会回复。界面编程不易,还请见谅!

1.操作示例

(1)输入矩阵,执行矩阵的乘法运算A*B,输出结果

(2)计算矩阵A/B

(3)计算矩阵A的转置

(4)求矩阵A的逆矩阵

(5)求矩阵A的秩

(6)求矩阵A的特征值

(7)求矩阵A的特征值

(8)求矩阵A的特征向量

(9)矩阵A的LU分解矩阵

(10)矩阵A的最简形

2.GUI的部分程序如下

function varargout = juzhen(varargin)% JUZHEN MATLAB code for juzhen.fig%      JUZHEN, by itself, creates a new JUZHEN or raises the existing%      singleton*.%%      H = JUZHEN returns the handle to a new JUZHEN or the handle to%      the existing singleton*.%%      JUZHEN('CALLBACK',hObject,eventData,handles,...) calls the local%      function named CALLBACK in JUZHEN.M with the given input arguments.%%      JUZHEN('Property','Value',...) creates a new JUZHEN or raises the%      existing singleton*.  Starting from the left, property value pairs are%      applied to the GUI before juzhen_OpeningFcn gets called.  An%      unrecognized property name or invalid value makes property application%      stop.  All inputs are passed to juzhen_OpeningFcn via varargin.%%      *See GUI Options on GUIDE's Tools menu.  Choose "GUI allows only one%      instance to run (singleton)".%% See also: GUIDE, GUIDATA, GUIHANDLES% Edit the above text to modify the response to help juzhen% Last Modified by GUIDE v2.5 30-Aug-2021 16:41:19% Begin initialization code - DO NOT EDITgui_Singleton = 1;gui_State = struct('gui_Name',       mfilename, ...                   'gui_Singleton',  gui_Singleton, ...                   'gui_OpeningFcn', @juzhen_OpeningFcn, ...                   'gui_OutputFcn',  @juzhen_OutputFcn, ...                   'gui_LayoutFcn',  [] , ...                   'gui_Callback',   []);if nargin && ischar(varargin{1})    gui_State.gui_Callback = str2func(varargin{1});endif nargout    [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});else    gui_mainfcn(gui_State, varargin{:});end% End initialization code - DO NOT EDIT% --- Executes just before juzhen is made visible.function juzhen_OpeningFcn(hObject, eventdata, handles, varargin)% This function has no output args, see OutputFcn.% hObject    handle to figure% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)% varargin   command line arguments to juzhen (see VARARGIN)% Choose default command line output for juzhenhandles.output = hObject;set(handles.edit1,'string','');set(handles.edit2,'string','');set(handles.text3,'string','矩阵B');movegui(gcf,'center');%关闭窗口的名字 修改为其他名字set(gcf,'NumberTitle','off','Name','GUI矩阵计算器');% Update handles structureguidata(hObject, handles);% UIWAIT makes juzhen wait for user response (see UIRESUME)% uiwait(handles.figure1);% --- Outputs from this function are returned to the command line.function varargout = juzhen_OutputFcn(hObject, eventdata, handles) % varargout  cell array for returning output args (see VARARGOUT);% hObject    handle to figure% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)% Get default command line output from handles structurevarargout{1} = handles.output;

本文内容来源于网络,仅供参考学习,如内容、图片有任何版权问题,请联系处理,24小时内删除。

作 者 | 郭志龙

编 辑 | 郭志龙

校 对 | 郭志龙

标签: #用matlab求矩阵特征值 #matlab求矩阵特征值的代码 #matlab如何求矩阵的特征值 #matlab中求矩阵的特征值 #matlab中求矩阵特征值和特征向量