| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 12540 人关注过本帖
标题:MATLAB新手快来 新手问题交流帖
只看楼主 加入收藏
wyy022
Rank: 1
等 级:新手上路
威 望:1
帖 子:99
专家分:0
注 册:2006-11-16
收藏
 问题点数:0 回复次数:87 
MATLAB新手快来 新手问题交流帖
我也是个MATLAB新手,我也是个乐于助人的青年,


你是不是和我一样呢?


进来吧,发表你不懂的问题,讲讲你的看法



这里是你我的舞台,再幼稚的问题也要有勇气说出来



来吧,说出你的问题。这里的每个新手 都会用心的回答你的每一个问题。

[此贴子已经被作者于2006-11-20 17:49:53编辑过]

搜索更多相关主题的帖子: MATLAB 手快 交流 
2006-11-20 17:45
zhangqino2
Rank: 1
等 级:新手上路
帖 子:12
专家分:0
注 册:2006-11-20
收藏
得分:0 

我建一个矩阵然后copylena索引图,用imshow显示出来是全白,怎么回事啊

2006-11-21 10:04
wyy022
Rank: 1
等 级:新手上路
威 望:1
帖 子:99
专家分:0
注 册:2006-11-16
收藏
得分:0 
我回去查一下,然后告诉你。


2006-11-21 15:02
zhangqino2
Rank: 1
等 级:新手上路
帖 子:12
专家分:0
注 册:2006-11-20
收藏
得分:0 
已经知道了
2006-11-21 15:21
harmonic
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2006-11-22
收藏
得分:0 
用guide编写简单的图形界面,比如  A+B=C 其中 A 和B是需要输入的数,问题是如何通过CALLBACK得到 A  B的值啊,不会啊,晕死了
2006-11-22 22:04
zhangenter
Rank: 6Rank: 6
等 级:贵宾
威 望:25
帖 子:390
专家分:0
注 册:2006-6-5
收藏
得分:0 
因为是'string'属性的值是字符串,转成数字加,再转成字符串赋给控件

OldHandle = findobj( \'Name\', \'悲伤\' ) ;if ~isempty(OldHandle),delete(OldHandle) ;end for Time = \'现在\':\'每一天\':\'永远\',set( gco, \'心情\', \'快乐\');end % 这段代码为你天天快乐而存在
2006-11-25 20:54
woshiheshibo
Rank: 1
等 级:新手上路
威 望:1
帖 子:12
专家分:0
注 册:2006-11-9
收藏
得分:0 

你好,能解释一下以下gui个部分的功能吗


function varargout = eggui3(varargin)
% EGGUI3 M-file for eggui3.fig
% EGGUI3, by itself, creates a new EGGUI3 or raises the existing
% singleton*.
%
% H = EGGUI3 returns the handle to a new EGGUI3 or the handle to
% the existing singleton*.
%
% EGGUI3('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in EGGUI3.M with the given input arguments.
%
% EGGUI3('Property','Value',...) creates a new EGGUI3 or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before eggui3_OpeningFunction gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to eggui3_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 eggui3

% Last Modified by GUIDE v2.5 25-Oct-2006 20:33:17

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @eggui3_OpeningFcn, ...
'gui_OutputFcn', @eggui3_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end

if 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 eggui3 is made visible.
function eggui3_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 eggui3 (see VARARGIN)

% Choose default command line output for eggui3
handles.output = hObject;

% Update handles structure
guidata(hObject, handles);

% UIWAIT makes eggui3 wait for user response (see UIRESUME)
% uiwait(handles.figure1);


% --- Outputs from this function are returned to the command line.
function varargout = eggui3_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 structure
varargout{1} = handles.output;


% --- Executes during object creation, after setting all properties.
function figure1_CreateFcn(hObject, eventdata, handles)
% hObject handle to figure1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called

function zeta_edit_Callback(hObject, eventdata, handles)
% hObject handle to zeta_edit (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of zeta_edit as text
% str2double(get(hObject,'String')) returns contents of zeta_edit as a double
z=str2num(get(handles.zeta_edit,'string'));
t=0:0.1:15;
cla;
%plot(t,sin(t));
for k=1:length(z)
y(:,k)=step(1,[2*z(k),1],t);
line(t,y(:,k));
end

% --- Executes during object creation, after setting all properties.
function zeta_edit_CreateFcn(hObject, eventdata, handles)
% hObject handle to zeta_edit (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end


% --- Executes on button press in gridon_push.
function gridon_push_Callback(hObject, eventdata, handles)
% hObject handle to gridon_push (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
grid on;

% --- Executes on button press in gridoff_push.
function gridoff_push_Callback(hObject, eventdata, handles)
% hObject handle to gridoff_push (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
grid off;

% --------------------------------------------------------------------
function option_Callback(hObject, eventdata, handles)
% hObject handle to option (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)


% --------------------------------------------------------------------
function Box_on_Callback(hObject, eventdata, handles)
% hObject handle to Box_on (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)


% --------------------------------------------------------------------
function Untitled_2_Callback(hObject, eventdata, handles)
% hObject handle to Untitled_2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
box on;

% --------------------------------------------------------------------
function Box_off_Callback(hObject, eventdata, handles)
% hObject handle to Box_off (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
box off;

2006-11-26 13:15
wyy022
Rank: 1
等 级:新手上路
威 望:1
帖 子:99
专家分:0
注 册:2006-11-16
收藏
得分:0 
都是高手啊!
2006-11-27 16:39
byl
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2006-12-5
收藏
得分:0 
我安装了一个设备,自带驱动的那种,要在matlab平台下运行,装好驱动后,打开Matlab界面,直接设备自带驱动提供的命令(这里是“Cr”是供应商自己开发的)就可以打开一个界面了
有点罗索哈,下面进入我的问题,为什么我自己随便编一个M文件函数不入在Matlab运行时的当前目录里就无法运行,而它的这个也不在当前目录里却能运行呢?
各位给指点一二,小弟感激不尽
以上的问题来源概括一下就是什么样的文件能在Matlab里面直接运行,什么样的文件必须要在Matlab当前目录下面运行呢?
不知道我问得明白否,刚刚入门,问得不够专业~
2006-12-06 11:53
wyy022
Rank: 1
等 级:新手上路
威 望:1
帖 子:99
专家分:0
注 册:2006-11-16
收藏
得分:0 
应该是自己定义的M文件必须在当前目录下或设定的搜索路径下,才可运行。

比如图象啊什么的也必须这样才可读入。

我也只懂这些了。我也是新手啊。


努力!
2006-12-07 13:14
快速回复:MATLAB新手快来 新手问题交流帖
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.023260 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved