comp.softsys.matlab
  Home FAQ Contact Sign in
comp.softsys.matlab only
 
Advanced search
August 2008
motuwethfrsasuw
    123 31
45678910 32
11121314151617 33
18192021222324 34
25262728293031 35
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007    
total
comp.softsys.matlab Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  Adding axes to GUI figure at runtime         


Author: Stephen
Date: Aug 29, 2008 10:06

Hi,

I need to add an axes object to a GUI figure
(handles.figure1) at run time.

Here's what I've got so far:
handles.axes1 =
axes('Parent',handles.figure1,'Position',[8.16667 2.33333
172.667 49.1667])

This seems to work but when I try to plot to this axes
object nothing displays, despite the 'Visible' property
being 'on'.

Any ideas?
Thanks
no comments
  read data in Matlab         


Author: Jerry
Date: Aug 29, 2008 09:58

Suppose I have a data file:

ID C1 C2 ... C1000
R1 # # #
R2 # # #
.
.
.
R2000 # # #

How can I read it into three variables: ColID, RowID, and
1 2000x1000 matrix of numerical values? textscan or
textread seems to need a format specifier for each column
which is troublesome for large number of columns.

Also if the file is too big and I only need to read in
certain rows (for example, only read in R2, R28, R34,...),
then how can I do this?

Any solution or hints? Thanks very much.
no comments
  Mahalanobis Distance Calculation         


Author: Baris Yenidunya
Date: Aug 29, 2008 09:50

Hi,

I'm trying to understand how mahal function in MATLAB works.
I see that the method used is different than the MD
calculations in the literature. How is QR decomposition used
here? Any help (maybe references, links etc.) will be
appreciated.

Thanks,

Baris Yenidunya
no comments
  Setting-up LCC compiler on MatLab 7.6 (R2008a)         


Author: Carlos Ribeiro
Date: Aug 29, 2008 09:47

Hi!

I'm trying to setup a C compiler in Matlab 7.6 (with
Simulink 7.1 and MATLAB Compiler 4.8) but when I run the
command "mex -setup", no compiler is identified. Not even
LCC.
>> mex -setup
Please choose your compiler for building external interface
(MEX) files:

Would you like mex to locate installed compilers [y]/n? y

Select a compiler:

[0] None

Compiler:

The LCC compiler is good enough for me, but where is it?!
Doesn't it come with Matlab?

Any help is more than welcome.

Thanks,
Carlos
no comments
  simulink model workspace evalin         


Author: John Reilly
Date: Aug 29, 2008 09:37

hi,

in my mask parameter callback handler, i am using

hws = get_param(bdroot, 'modelworkspace')

to get a handle to the Simulink.ModelWorkspace object. then
i use

value = hws.evalin(get_param(gcb, 'p'));

to get the actual numeric value of the parameter p. when i
execute this command, the model window indicates (with the
asterisk) that the model has changed. when it hasn't. i'm
not changing anything; just reading.

is there a way to get the numeric value without the model
thinking it has changed?

i'm using r2007b.

thanks.

reilly.
no comments
  [Fatal Error] :1:1: Content is not allowed in prolog         


Author: NICK
Date: Aug 29, 2008 08:42

Hi ,

Everytime I open MATLAB I get this error - [Fatal
Error] :1:1: Content is not allowed in prolog

Should I be worried?

I hunted around enough to gather this is likely a bad xml
used in start up..But I don't know its repercussions!

Thanks
Nik
no comments
  GUI work with UDP callbacks         


Author: Aakash Chokshi
Date: Aug 29, 2008 08:26

I have created a UDP connection to another computer and I
want to share information. In the GUI, I create the UDP
connection as a part of handles (ie. handles.udpLoc = ...)
and the callback on the bytesavailablefcn is {@updatePos,
handles}.

I also have the variables handles.x and handles.y that are a
part of handles and I can update these values in the gui
using guidata(hObject, handles) wherever I need it to change.

However, when I do the same in the callback function of the
UDP connection (updatePos), then it does not update the
values handles.x and handles.y. I have tried many different
things for

guidata(hObject, handles)

but none of it will save the handles.x and handles.y updated
values passed in from the udp connection.

Is there some way of doing this without resorting to global
variables? see below for examples

%%---button in GUI---
Show full article (1.53Kb)
no comments
  s/fprintf in fixed point toolbox         


Author: Alex
Date: Aug 29, 2008 08:23

Is there a way to get s/fprintf to work in the fixed point
toolbox? It says:

??? Error using ==> sprintf
Function is not defined for 'embedded.fi' inputs.

Or, alternatively, is there another way to write fixed point
values out in a formatted way to a file or the screen?
no comments
  Re: how to remove gridlines from polar plot         


Author: Kai-Markus M
Date: Aug 29, 2008 08:13

Thank you very much!!! Why in the world is that not
documented in the help file?
no comments
  Curve fitting use of lsqlin         


Author: JoJack NOURRY
Date: Aug 29, 2008 08:07

I am trying to fit experimental data with a polynomial
shape. I find out that a power 6 polynomial is a rather
good choice.
But, I have some trouble to fulfill some constraints on my
approximation.
I need that both the 1st and 2nd derivate of this
polynomial approximation are positive.
I use lsqlin to fit my experimental data:

%%z: experimental data
%%xapp: z = f(xapp)

%% Definition of the matrix of normal equations and its
solution
%%p = C(1)x^6+C(2)x^5+C(3)x^4+C(4)x^3+C(5)x^2+C(6)x+C(7)
Data=[xapp.^6 xapp.^5 xapp.^4 xapp.^3 xapp.^2 xapp ones
(size(xapp))];

%% Start constraints
Show full article (1.41Kb)
no comments
1 2 3 4 5 6 7 8 9