Statistics
Content Feed
How can I determine where there are date gaps in an array of date strings? And fill in the gaps...
我想你可以在没有循环的情况下做到这一点。由于您想要了解“理想”日期数组,您可以制作它,然后查找...
9 years ago | 1
Save figures with saveas function
You mean you want to set the filename yourself? You can use uiputfile for that. [filename dirname] = uiputfile; %set file n...
9 years ago | 0
How can I compare two logical vectors to a value?
logi = ~logix & ~logiy
9 years ago | 0
|公认
Errordlg图标切换到绘制的图形
You mean that you get the plot _inside_ the errordlg?? That's weird... I cannot reproduce this, not even when I explicitly use t...
9 years ago | 0
|公认
The legend show different sign
这是因为您在循环中绘制数据,并将使用符号'Ro'制作n个绘图。因此,也是第一个参赛作品......
9 years ago | 0
|公认
如何将文本文件加载到GUI工作区中?
您可以使用mfilename和fileparts获取mfile的路径:fname = mfilename('fullpath');fdir = fileparts(fname)...
9 years ago | 0
GUI:使用IF结构更改“编辑文本”框的Backround
Explain 'many errors'. How can we fix many errors with we don't know what they are?? I'm going to make an estimated guess. If yo...
9 years ago | 0
|公认
how to make numbering near "a" like: a1, a2, an
Please don't use dynamic variable names, matlab has plenty of options to store your data in a better way. Use cells or structs. ...
9年前| 3
|公认
当我在同一个数字上有两个绘图时,我怎样才能清除一个剧情?
有2个轴,还是一个轴中的2行?如果你有两个轴:需要将第二个轴的手柄用CLA清除。......
9 years ago | 0
如何将字符串转换为数字(不使用str2num函数),因此如果字符串表示值为1?(否则值为0)......
r =〜isnan(str2double(st));
9 years ago | 0
How to use 'Edit Text' efficiently in a GUI?
如果使用Guidata(GCBO,HANDLE),则在“处理”结构中保存文本框的字符串;在你的pshbtn_callback你...
9 years ago | 0
|公认
problem in Matrix Indexing
Well, if you insist not to use repmat (why??), I'd do it like this: f = zeros(n,v); for i = 1:v f(:,i) = k(i); ...
9 years ago | 1
我如何添加功能Matlab GUI Deploytool package that expires the package after specific expiry date. for example i have made a package and giving to user for trial purpose so i want the package to expire after 15 days on user machine.
可能是最简单的方法是,是通过第一次创建一个简单的matfile,第一次运行,包括...
9 years ago | 0
How to exit a program or rather not process further code if a condition is not met ?
只有在存在时才应使用错误,EHM,错误。要停止执行,否则,请使用
9 years ago | 4
|公认
How to share variables across GUIs?
I prefer to store and share data with the function setappdata and getappdata. This is, in my opinion, more clear and better stru...
9 years ago | 0
|公认
使用带有1D数据的contourf
I don't really understand what you want to do. Why do you want to show a vector as 2D data???? Especially with random x and y....
9 years ago | 0
Import Variables in GUI to the main workspace
在按钮的回调中,如果您有一个简单的GUI,请放置Assignin('Base','Yourvariable',Yourvariable',Yourvariable)...
9 years ago | 0
|公认
Print an image in Matlab GUI
I guess it should be smapleimage = imread('image.png'); printdlg(smapleimage)
9 years ago | 0
禁用轴屏幕更新在GUI中
How are you updating the plot? Are you calling plotyy every time? It is usually much faster to update XData and YData of an exis...
9 years ago | 0
有没有办法“折叠”代码部分 - 就像你关闭一段时间循环时?
您必须激活首选项中的单元格的代码折叠。请参阅http://blogs.mathworks.com/community/2009/06/15/fold-当...
9 years ago | 2
|公认
Matlab gui List box problem
Something like this sould work: val = get(handles.listbox1,'Value'); %get selected item str = get(handles.listbox1,'Stri...
9 years ago | 2
Problem in data loading
You will need to make the array smaller to display it, that's obvious from the error message. Also, it is an array with 3 dimens...
9 years ago | 0
changing the plot in GUI manually -
Doug在这个主题上有一部很棒的电影:http://blogs.mathworks.com/pick/2008/05/27/Advanced-matlab-capture-mouse-move ...
9 years ago | 0
|公认
在不改变比率/轴刻度位置的情况下裁剪绘图?
Maybe you can use tight subplots: //www.tianjin-qmedu.com/matlabcentral/fileexchange/27991
9 years ago | 0
如何一次删除矩阵的一些行或列?
a = zeros(100,100); %create 100x100 matrix a(71:100,:) = []; %remove rows 71:100
9 years ago | 0
how do i check if line in plot exists and if yes delete it otherwise nothing
肮脏的方法:CLA(AXES_HANDLE)如果您知道该行的句柄:如果ISHANDLE(LINE_HANDLE)删除(LINE_HANDLE)...
9 years ago | 0
|公认
Suppress line number display in error message
Use getReport instead. For instance try %something catch me errorstring= getReport(me,'basic') uiwait(warndl...
9 years ago | 0
problem with using if statements
You placed the code intothe CreateFcn of te popup. This means the code is only executed when the popup is created, not when you ...
9 years ago | 0
|公认