SS_TIMESOURCE_SELF_INTERNAL
Dear all,
I've just noticed that there is an undocumented, misterious SS_TIMESOURCE_SELF_INTERNAL option for ssSetTimeSource, which might as well be exactly what I need to tackle a problem (see my "nested simulation" message earlier today). Someone knows what is that good for and how to use it?
Thanks in advance for any pointers. Cheers,
Jorge.
|
3/10/2010 10:37:03 PM
|
0
|
"Jorge " <jorge.pelizz...@gmail.com>
|
|
nested simulation or time-generating "for"
Hi, there!
I am trying to develop a kind of "for" block that executes a function-call subsystem a number of times (in one single time step) as if time were elapsing at each iteration for the subsystem only. The idea is to nest a simulation into one step of the actual simulation while minimizing changes to the simulated model to be nested (as compared to a version that is not nested). This seems possible if one resorts to the framework for asynchronous tasks. I developed a 2-level S-function based on the code for "Task Sync" and so far I have managed to implement code generation that does wh
|
3/10/2010 10:33:04 PM
|
0
|
"Jorge " <jorge.pelizz...@gmail.com>
|
Question about RandStream.
Just started to learn about RandStream (the new way to generate uniform or normal random numbers).
RandStream is a handle class and I get a bit confused about that. I am a bit behind on learning the new Matlab OOP. I am pretty comfortable with value class but not with handle class.
For example,
function foo
h = RandStream('mt19937ar');
end
Everytime I call this function, does Matlab create an instance of RandStream (i.e. allocate memory) and then delete the instance (i.e. free memory)? So after the function returns, I won't have access to the object created inside foo( ). Righ
|
3/10/2010 10:21:18 PM
|
0
|
"Kevin " <ke...@northpole.com>
|
How to run Matlab 6.5 in Windows XP x64 Edition
Although I use Matlab 2009 in my Windows XP 64 bit machine, I need to run an old code in Matlab 6.5 in Windows XP 64bit. How can I run Matlab 6.5 in Windows XP 64 bit? Is there an easy way for that?
|
3/10/2010 10:15:21 PM
|
0
|
"Wes" <wspar...@hotmail.com>
|
how read this file ?
Hi,
I would like to import data from a file. But I don't know how to do and especially the datum and the number (. and ,)
23.12.2009 20:30:00.000 3.916,5 3.917,3 3.915,0 3.917,0
23.12.2009 20:40:00.000 3.917,0 3.920,0 3.916,8 3.918,3
I would like to obtain a datum from the two first columns that can be plot as a X-axis. Regarding the number, how can we deal with the . and the , which is not the right way to encode data in Matlab ?
Thank you in advance.
Best regards,
Matthieu
|
3/10/2010 9:40:21 PM
|
0
|
"Duvinage MAtthieu" <duvm...@hotmail.com>
|
how read this file ?
Hi,
I would like to import data from a file. But I don't know how to do and especially the datum and the number (. and ,)
23.12.2009 20:30:00.000 3.916,5 3.917,3 3.915,0 3.917,0
23.12.2009 20:40:00.000 3.917,0 3.920,0 3.916,8 3.918,3
I would like to obtain a datum from the two first columns that can be plot as a X-axis. Regarding the number, how can we deal with the . and the , which is not the right way to encode data in Matlab ?
Thank you in advance.
Best regards,
Matthieu
|
3/10/2010 9:40:21 PM
|
1
|
"Duvinage MAtthieu" <duvm...@hotmail.com>
|
Including user created Toolboxes in compile
hey everyone,
I'm working on a number of applications, each in their own directory, but all use a shared directory of tools (mostly programs downloaded from File Exchange). I'm also compiling these applications individually. How do I include the path of the shared directory in the compile? For example:
Tool 1 dir : \\server\Tool1
Tool 2 dir : \\server\Tool2
Tool 3 dir : \\server\Tool3
Shared dir : \\server\sharedtoolbox\
in each file I have the line:
if ~isdeployed
addpath('\\server\sharedtoolbox\')
else
%what should I put here?
end
Thanks
Jason
|
3/10/2010 8:53:05 PM
|
0
|
"jason " <mcmains....@osu.edu>
|
How do I pass a struct to a java hashtable?
I have a struct in matlab that I want to store in a java hashtable,
however, when I use the hashtable.put function I get:
??? No method 'put' with matching signature found for class
'java.util.Hashtable'.
|
3/10/2010 8:29:47 PM
|
0
|
Enter The <enter...@walla.com>
|
Sliding window implementation and exceer variable size
Hi folks,
I want to implement a sliding window to extract information from an image, my implementation is i use a for loop that is shifted by 1 pixel at the time to go over all the image and save the values in a matrix (WindowX,WindowY,NumberOfWindows).
Two problem arose, 1- it is very slow
2- as the size of the image increases, the number of extracted windows increases hene increases the matrix size and get the erro ??? Maximum variable size allowed by the program
is exceeded.
Below is my implemetation
%Moving Window
zgray=1000*rand(500,500); % Assume
|
3/10/2010 8:02:05 PM
|
0
|
"Bluebird " <wlo...@ryerson.ca>
|
time derivative using Mupad
what is the function for time derivative using MuPAD in Matlab?
example:
y=x^2+3x+5
taking the time derivative of y becomes:
dy/dt=2x*xdot+3*xdot
where xdot=dx/dt
The time derivative function is required for the computation of the Langrange Formalism
|
3/10/2010 7:58:02 PM
|
2
|
"tony " <206505...@ukzn.ac.za>
|
how to modifly the random number generator
I have created a simple system which generates 2 random numbers that always add to 1. I did this by using 2 uniform random number generators and an adder which sums the results together. I took the sum and ran it into 2 dividers so that each divider was dividing the original random number by the sum of the 2 random numbers to get 2 random numbers that add to one. I hooked a scope up to the dividers and realized I was not getting a single random number. This random number generator is a subsystem of a bigger system which can only use 1 value. I'm wondering if the random number generator is
|
3/10/2010 7:34:09 PM
|
3
|
"Susan " <susanreneemuel...@gmail.com>
|
Locating a particular column
Please I have a huge matrix with many columns and rows. I intend to find the column that produces the largest absolute difference, i.e. the column whose max value minus its min value gives the largest absolute difference. I know that to locate the column and row of a particular entry in matrix h, e.g. the max value in that matrix, then one can use [r,c] = find(h==max(h)). But I can not use this method to find the column of my absolute difference because this difference is not any of the matrix entry. Does anyone out there know how to go about this?
|
3/10/2010 7:29:25 PM
|
2
|
"Neba Neba" <nebar...@isu.edu>
|
Differences in XML File generated in Matlab vs Outside Matlab
Hi,
I have a java class, which generates the XML file. I am using the same class in both Matlab session and in Eclipse.
Following is the code I am using to genate the XML file
public static void saveDocument(Document doc, File file) throws Exception
{
DOMSource source = new DOMSource(doc);
OutputStream stream = new FileOutputStream(file);
StreamResult result = new StreamResult(stream);
Transformer transformer = TransformerFactory.newInstance().newTransformer();
transformer.setOutputProperty(OutputKeys.INDENT, "yes");
transformer.setOutputProper
|
3/10/2010 7:28:22 PM
|
0
|
"Anil " <anil.pah...@gmail.com>
|
Resample Data to Match X-values
I have X and Y data vectors and I want to resample Y to a new X that contains values that are not at even intervals. I've looked at the interp function, but it resamples by factors of the original.
It appears that I can format my data into a time series and use the resample function, but this is awkward and interp has more interpolation methods.
Any ideas?
Thanks,
Craig
|
3/10/2010 7:23:05 PM
|
0
|
"Craig " <...@no.com>
|
Y axis plot labeling? Want auto scaling, but want to format...
Hi there,
I have a series of graphs that are created in batches (up to 400) by a Matlab .m script. The y-axis values can range from less than +/- 2000 to over +/- 5000000. The Matlab auto labeling works well for small numbers (> +/-10,000) but any higher and it starts to plot the y-axis labels as (for example) -2.5, -1.25, 0, 1.25, 2.5 with a x10^4 label at the top of the plot. I need to avoid this labeling, and need real integers plotted along the y-axis. Is there any way I can over-ride the auto labeling that Matlab puts out?
I also want the top-most YLabel and bottom-most YLabel to h
|
3/10/2010 6:54:04 PM
|
4
|
"Rob Newman" <rlnew...@ucsd.edu>
|
Get cdata of plot created by fill function
Hi!
I have a question concerning the fill function! I have a closed contour (just a line) of an object. By using the fill function I can color this contour. It works very well. The problem which I have is to save the (image)-matrix of this plot. Usually the data is located in cdata, but not this time. Is there a way to get the matrix?
Here is one example:
t = (1/16:1/8:1)'*2*pi;
x = sin(t);
y = cos(t);
fill(x,y,'r')
axis square
I just want to save the matrix of this image! Thanks in advance
regards
Bernhard
|
3/10/2010 6:39:04 PM
|
4
|
"Bernhard " <MadS...@web.de>
|
need help on tree plotting
I am trying to plot a tree where some nodes have more than one 'parent' node. Function treeplot apparently can not do this work.
Any suggestion is welcome. Thanks.
|
3/10/2010 6:18:06 PM
|
1
|
"Bo " <b.w...@warwick.ac.uk>
|
'variable' variable names
Hi,
I have a 'simple' problem: I have run a series of model simulations and then extracted cross-sections at specific intervals from the grid, and saved those as a cell. For example, for a simulation called 'R108' I extracted the wave hieght at 5 cross sections that are stored in my .mat file as LS_WH{i}, where i varies from 1 to 5.
However I have run a lot of nearly identical simulations that I am now trying to directly compare against eachother, such that I am now plotting e.g. LS_WH{1} for 10 different simulations on the same graph. The problem I have just discovered is that I cannot
|
3/10/2010 6:12:04 PM
|
3
|
"Ben Williams" <benjamin.willi...@remove.this.plymouth.ac.uk>
|
how to set current zoom setting for next execution?
hi!
I'm quit new to matlab. I really hope that someone can help me.
I have a little bit problem on zoom for images.
After I zoom a certain area on the images,
how do I keep the current setting of zoom
that need to be used for the next execution?
I already tried hold, wait and resume.
But the images will still returned back to its original image setting(before zoom)
thank u so much in advance!!!
|
3/10/2010 6:11:09 PM
|
0
|
"kuehtiaw ." <kenshinx_shak...@yahoo.com>
|
Need help on RS232 xPCTarget
Dear all,
I need to send the following string to EuroTherm Temperature Controller :
EOT GID GID UID UID STX C1 C2 D1 D2 D3 D4 D5 D6 EXT BCC
where:
GID and UID are Group and Unit addresses
C1,C2 are parameters specified by mnemonic (ex: SP(Set point)...)
D1-D6: Data
BCC- Block Check Character: Exclusive OR of the ASCII values of all characters of C1 to EXT inclusive
Could you please help me with the following problems:
+ How to compute the BCC value in Simulink and xPCtarget before the transmission?
+ What is the string format in ASCII encode and decode block with the above string?
|
3/10/2010 6:08:12 PM
|
0
|
"Bao Kha Nguyen" <nguyenbao...@hotmail.com>
|
Software running slow
hi everyone,
I have a function that, accordingly to the profile report, slows down my whole program. Here is the profile report:
-------------------------------------------------------------------------------------------------------------------
time calls line
1 function A_star_par = heap_link_A_Star(A_star_par,y,x)
2
3 % remove y from the root list of A_star_par.openset
0.03 107481 4 left_node = A_star_par.left(y);
0.05 107481 5 right_node = A_star_par.right(y);
|
3/10/2010 6:06:24 PM
|
0
|
"Simone " <sam.airo...@gmail.com>
|
Problems with Distributed Computing on mixed Win32 Win64 Cluster
So here in another rather obnoxious problem which I have not been able to resolve.
I am trying an experiment with two Machines:
Machine-A - Win64 - QuadCore i7 - Client on which I run matabpool 8
Machine-B - Win32 - QuadCore i7 - Host on which the JobManager-B and workers reside
I would like to parallelize compiled mex code within a parfor loop.
1) I set-up the Distributed Computing system
2) I set "Configurations Manager" to put JobManager-B as default
3) I set "Configurations Manager" to copy Files and Directories from client to cluster nodes
4) I validate the Configuration
|
3/10/2010 5:57:04 PM
|
0
|
"Marc Anthony " <m...@cranfield.ac.uk>
|
Freeman chain code
How to use freeman chain code in matlab?
Thanks
|
3/10/2010 5:55:06 PM
|
0
|
"Reff " <rafi...@yahoo.com>
|
Grammar inference
Hi, I'm trying to implement an algorithm to retrieve a grammar from a set of strings, I'm new in this area...I want to use the pumping lemma algorithm, I searched in the Matlab functions for something, but I didn't find anything and I'm having some difficulty implementing it. So maybe someone here can help me with this, or maybe give me some advice of how to implement this...
Thanks,
Tiago F.
|
3/10/2010 5:45:21 PM
|
0
|
"Tiago Fonseca" <tdf19...@fct.unl.pt>
|
Multiple equitions and multiple variables with boundaries
Hi,
I'm a beginner with MatLab and I have to solve a rather tricky problem.
I have created 6 functions, which all depend on 5 variables, of which for two I have found a relation, so actually there are 4. But those 4 variables do have boundaries.
The boundaries given are:
Lc : 0.25 < Lc < 0.30
Ro: Ro < 0.05
Ri: Ri = 0.577*Ro
Dc: no boundaries
What I am looking for is the ultimate combination of these variables, within the boundaries specified. However, besides the boundaries of the variables, there are other restrictionst:
REax < 2000
REtan < 108
atan(tanA): 0 < atan(tanA) < 0.
|
3/10/2010 5:41:03 PM
|
1
|
"Paul Miggiels" <blacke...@live.nl>
|
Edge detection, surface area calculation
I recently scanned some cylindrical concrete specimens (some with steel fiber reinforcing and some without) using a North Star Imaging CT machine. The specimens were scanned prior to testing and then again after rupture with the intention of determining the new surface area as a result of cracking. Unfortunately, the scans do not have the contrast I was hoping for and are fairly noisy. I would appreciate any suggestions regarding effective methods for detecting edges. I'm trying to arrive at a binary image that accurately represents the void space in the concrete specimens. I have tried u
|
3/10/2010 5:32:04 PM
|
2
|
"Kevin Trainor" <trainor...@gmail.com>
|
Function help
An item in the cell array ca could be a numeric vector, a string representing a number, or another cell array containing numeric vector or strings. The function returns the total sum s of all the numerical values in all formats, and the total number n of values in the cell array. A sample run of the function is shown below.
>>ca = {[2 5] '0.5' {'3', [1 8]}, 7}
ca =
[1 X 2 double] '0.5' {1 X 2 cell} [7]
>> [s n] = project8(ca)
s =
26.5000
n =
7
This is what I have so far...not getting too far...
function [s n] = project8(ca)
s=0;
n=0;
for s={}
s = sum(c
|
3/10/2010 5:27:06 PM
|
0
|
"jeremy meduna" <jeremymed...@msn.com>
|
how to restore GUI after it has terminate by function waitbar in the GUI
can anyone help me to restore my GUI after running the waitbar processs....
i got a program that will browse for 1 folder and scan element inside that folder. to make my GUI more advance i insert a waitbar m-file in the GUI main file. but, unfortunately, after the waitbar end, my GUI disappear too...may i know can someone teaching me how to restore back my GUI after the waitbar end...thx vy much...
|
3/10/2010 5:27:06 PM
|
0
|
"alfren " <alfren....@hotmail.com>
|
tsearch and DelaunayTri
Hi All,
I'm trying to update my code for future the future. I have my own
triangulation source that returns the connections TRI for the points
X,Y. In the past I used tsearch to find the triangles that contained
the points. My problem now with 2010a is:
TSEARCH will be removed in a future release.
Use DelaunayTri/pointLocation instead.
I'm relatively new to OOP in MATLAB. I tried the following:
>> TR = DelaunayTri();
>> TR.X = [X Y];
>> TR.triangulation = TRI;
??? Error using ==> subsasgn
Cannot assign values to the Triangulation.
I take it this means that triangula
|
3/10/2010 5:23:29 PM
|
0
|
James <rmou...@gmail.com>
|
how to create netcdf file and write data to it
Hi, I have a monthly d18O txt file which is a 3-D array : d18O(lat, lon, time). Now I need to create a netcdf file and write these data to the netcdf file.
If anyone has any suggestions on how this might be done, it would be great.
Thanks so much.
Liu.
data.txt
sites lat lon Date d18O
Chicago 41.78 -87.75 1962-01-15 -18.7
Chicago 41.78 -87.75 1962-02-15 -11.6
Chicago 41.78 -87.75 1962-03-15 -11.4
Chicago 41.78 -87.75 1962-04-15 -6.6
Chicago 41.78 -87.75 1962-05-15 -1.8
Chicago 41.78 -87.75 1962-06-15 -2.7
Chicago 41.78 -87.75 1962-07-15 -5.5
Chicago 41.78 -8
|
3/10/2010 5:07:05 PM
|
0
|
"liuzf406 Liu" <liuzf...@126.com>
|
Creating a spline from a list of points and calculating the tangents to it
Hi,
I'm trying to create a spline from a set of points which form a closed contour and calculate the tangents and normals to the curve at its break points. I've got some code which does most of the work, but I don't understand where its failing.
My code just comprises of a few lines, please have a look:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
spline = cscvn(I1_coords);
break_coords = fnval(spline, spline.breaks);
xPts = break_coords(1,:);
yPts= break_coords(2,:);
pts = fnval(spline, xPts);
tangent = fnval(fnder(spline), xPts);
quiver(pts(1,:), pts(2,:), tangent(1,:), tangent(2,:))
|
3/10/2010 4:58:02 PM
|
0
|
"Nina Hinchy" <n.hinc...@gmail.com>
|
Calling Java Main Method from Matlab
Can anyone tell me how to call a Java class main method, that takes in a command line input string, from Matlab. My simple class looks something like this:
public class Calculate_square
public static void main (String[] args){
int input, output;
input=args[0];
output=input*input;
System.out.println(output);
}
}
I call this class from the terminal like this:
$java Calculate_square 4
Thank you
|
3/10/2010 4:55:21 PM
|
0
|
"Grant " <grant.cl...@mcgill.ca>
|
Manova theory & calculations?
Hi,
there is some info. about Manova given in Matlab help but it is not told how the values of wilks lambda, sum of squares etc. are calculated. Does anyone know a good article on Manova where I could read the method behind it. Thanks
|
3/10/2010 4:43:03 PM
|
0
|
"Samoline1 Linke" <maganatewo...@yahoo.com>
|
Image acquisition strange dimensions???
i am trying to open an image acquired by a capture card(PICOLO series). when i use get data i get a variable of size(480,640,3,10). How can i convert this to a normal rgb image and display it?
Thanks in advance.
|
3/10/2010 4:37:02 PM
|
1
|
"jon smith" <...@uni-oldenburg.de>
|
Line numbers on mfile text when printing from editor
When I am editing a mfile in the editor and need to print it out, is there any way to include the line numbers on the printout?
I could use
>> dbtype <mfile>
but that would lose the color formatting (comments etc) which I'd like to keep.
|
3/10/2010 4:37:02 PM
|
0
|
"K E" <kateedward...@hotmail.com>
|
rank calculation in mldivide
Is it correct for the rank calculation (8) in the following error message of x=A\B;
"Warning: Rank deficient, rank = 8, tol = 1.5055e-001."
to be different from:
rank(A)
ans = 10
Do the rank function and the mldivide function use different algoriths for the calculation of the ranK?
|
3/10/2010 4:30:34 PM
|
2
|
"Ilan " <ilan.melczar...@unibo.it>
|
3D object in 3D space
Dear all,
I have xyz coordinates for my 3D object, however, I am not sure how to use this information to visualise it. Thank you very much for your help!
Anna
|
3/10/2010 4:26:05 PM
|
0
|
"Anna Lappala" <s0793...@sms.ed.ac.uk>
|
How Do I Extract Subsets from a Larger Array?
I am a very new neophyte MATLAB user and would like some help with two problems.
#1 -- I have a 256x256 array and would like write a program to find the minimum and maximum values within a smaller bounded rectangle --- from cell (33,74) to cell(128,67). How do I do that?
#2 -- Using the same 256x256 array in question 1. How do I extract the bounded region described to create a new and smaller without changing the data?
Thank you in advance, and you have a great day.
Stanley
|
3/10/2010 4:23:05 PM
|
3
|
"Stanley " <smsea...@ufl.edu>
|
how to plot a graph
I want a force vs time graph at the beginning of my model, so i the force can vary over time (user can change). How do i plot this graph so i can connect the output to a product function?
|
3/10/2010 4:22:04 PM
|
0
|
"luke stone" <ifu-...@hotmail.com>
|
3D object in 3D space
Dear all,
I have xyz coordinates for my 3D object, however, I am not sure how to use this information to visualise it. Thank you very much for your help!
Anna
|
3/10/2010 4:20:21 PM
|
2
|
"Anna Lappala" <s0793...@sms.ed.ac.uk>
|
N-dimensional indexing allowed for Full matrices only
Hi everybody,
I -think- I have an error message induced by the installation of R2010a (not completely sure, but at the moment I see no other possible explanation).
I get
"N-dimensional indexing allowed for Full matrices only"
with such a statement structure
for i=1:n_row
for j= 1:n_col
rfm(1,i,j)=data(i+1,j+1);
end
end
where "data" is a sparse matrix
This part of the application is not written by me, and it used to work until the installation of R2010a, that I did today. Can this be the reason?
I guess that the rfm matrix does not like to be s
|
3/10/2010 3:56:06 PM
|
4
|
"Claudio Pedrazzi" <firstnameinitial.lastn...@company.it>
|
please help : ??? Index exceeds matrix dimensions.
can you please help me.I get the following Error when I run my programm.
??? Index exceeds matrix dimensions.
Error in ==> eingabe>huffman_Callback at 549
codewort=C{i};
my programm seems like this:
....
.....
C = huffman(D,W);
for i=1:8
codewort=C{i};
set(output(i),'String',num2str(codewort));
end
C its a funktion witch give us the follwing code:
C =
'110' '111' '000' '001' '010' '011' '100' '101'
the size of C is: 1 8
the class of C is: cell
thank you.
|
3/10/2010 3:55:05 PM
|
1
|
"isabelle robitaille" <isabelle.robitai...@yahoo.fr>
|
Error importing excel
I've got a problem using matlab R2009b.
We have to make tutorials to learn the program matlab. At our Universaty we use 'R2008b'. We have an assigment to import data (excel file). In 2008 it works fine, but in 2009 I can't seem to get the data.
If I click on the file I come into the 'import wizard' screen but there is no data.... That is straings because in 2008 I DO see data.
Is this a bug in 2009 or in x64 version of 2009?
I use R2008 x64
and R2009 x64
Regards Daniel
|
3/10/2010 3:55:04 PM
|
0
|
"Daniel " <d.r.schonf...@student.tudelft.nl>
|
some help please
when i run my code i get this error.
??? Undefined function or variable 'nelz'.
Error in ==> top_levelset>FE at 103
K = sparse(2*(nelx+1)*(nely+1)*(nelz+1), 2*(nelx+1)*(nely+1)*(nelz+1));
what i dont understand is that nelz has been defined just under nelx and nely in the same way.
nelx = 100;
nely = 30;
nelz = 30;
in lines 3-5 of the code. does anyone have any idea of why this would be. any help is much apprecated.
|
3/10/2010 3:42:04 PM
|
2
|
"Justin Perry" <perry_...@hotmail.com>
|
Extracting data from another M file
Hi guys (and gals),
Just a quick question, basically i have this M file that does some calculation and outputs value in a variable called u(t,r). Note the values are indexed.
Now, in a seperate M file, i want to call the previous M file to get values of u(t,r). How would i be able to do so?
Any help appreciated. Thanks!
Regards,
Wen Zhe
|
3/10/2010 3:30:27 PM
|
2
|
"Wen Zhe " <wenzhe2...@hotmail.com>
|
Triple quad
My function is just z.
How do I integrate z using triple quad.
The intervals are from:
0-1 in x
x^2 - x in y and
0 - y+2 in z
|
3/10/2010 3:26:04 PM
|
0
|
"Elvin D'Souza" <elvin.dso...@yahoo.ca>
|
cell array,for loop
Dear all:
I really need help.
So I post it again, because the first post is too messy, so I delete some statement in this version.
I can run an iteration below well,
n=length(c{1}-1);
decay=ones(n,3);
for i=1:n
k=c{1}(i,3);
x=cT{1}(k:k+1000,1); Y=cT{1}(k:k+1000,2);
end
But after I put the iteration above into another iteration below, it doesn't.
The problem is 'x=...; Y=...' sentence below:
for j=1:5
n=length(c{j}-1);
decay=ones(n,3);
for i=1:n
k=c{j}(i,3);
x=cT{j}(k:k+1000,1); Y=cT{j}(k:k+1000,2);
end
end
A
|
3/10/2010 3:21:05 PM
|
0
|
"Guangping Zhang" <zgp...@gmail.com>
|
PGI Visual Fortran 2008 v10.3 with VS2008 Shell for Windows x86/x64
PGI Visual Fortran 2008 v10.3 with VS2008 Shell for Windows x86/x64
please send e-mail to : ola 'AT' mail 'DOT' gr , ola3 'AT' mailbox
'DOT' gr , ( please substitute 'AT' with '@' , and 'DOT' with '.' ) ,
ola@mail.gr, ola3@mailbox.gr,
http://sites.google.com/site/telvvcd/loadsofgreatsoftware
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
PGI Visual Fortran 2008 v10.3 for Windows x86/x64 | 315MB
PGI Visual Fortran=AE (PVF=AE) brings the PGI suite of high-performance 64-
bit and 32-bit parallel Fortran compiler
|
3/10/2010 2:59:21 PM
|
0
|
ola <telv...@gmail.com>
|
Surface Roughness Modelling
Hi all
i am working on surface roughness models. the objective is to convert surface roughness data obtained from metrology instrument; contact profilometer to create the finite element model. how i can correct planar misalignment(between instrument and specimen) in matlab once data has been imported. can anyone explain me how to do it or someone has m-file regarding this type of models. your support will b highly appreciated
|
3/10/2010 2:31:04 PM
|
0
|
"Majid Shahzad" <majid...@hotmail.com>
|
help with matrix product and sum
Given the weight vectors w1, w2, w3 (with elements w1_i (i=1:S1), w2_j (j=1:S2), and w3_k (k=1:S3)) and abscissas v1, v2, v3 (with elements v_i, v2_j, and v3_k) what will be the efficient way to do the folllowing triple sum:
sum_{i,j,k} w1_i*w2_j*w3_k*F(v1_j, v2_j, v3_k)
where "F" is a function of the absicasse vectors v1, v2, and v3.
Thanks,
King
|
3/10/2010 2:31:04 PM
|
1
|
"King" <majum...@gvsu.edu>
|
Image analysis: point regrouping
Hi!
My problem sound pretty simple (to me), but I am not quite sure how to tackle it.
My overall goal is segmentation of 3d images (cells). I have been using a gradient flow tracking approach, which leaves a "sink" at the center of each cell. I have labeled this sink in the sink matrix. Because my images are not perfect though, I tend to have more than one sink per cell, leading to my program thinking that one object is actually multiple objects.
What I want to do is cluster all points in the sink matrix (that are over 0) that are within a certain distance from one another and relabe
|
3/10/2010 2:20:20 PM
|
0
|
"Hans Müller" <clfai...@web.de>
|
Installing Parallel Computing toolbox
Hello,
I am trying to set up the Parallel Computing toolbox (MATLAB win64, 2009a). The toolbox folder and .enc files appear in the MATLAB installation files, but in the setup it doesn't appear in the toolbox installation list. It isn't already installed, since when I type "doc distcomp/parfor" the documentation doesn't appear, when I use parfor only one core is used, and it doesn't find matlabpool.
Note that I am only interested in using parallelization on a single (multi-core) machine, so I shouldn't need the Distributed Computing toolbox (should I?).
|
3/10/2010 2:16:04 PM
|
2
|
"Alexis Bourel" <bebo...@hotmail.com>
|
Documenting object-oriented MATLAB code
I'm writing a sizeable application using object-oriented MATLAB, and this has gotten me thinking about how to document the code. If this was C, I would use Doxygen. For Java, I'd use JavaDoc. Both have mostly agreed-upon standards for how class and method documentation should look and what it should contain.
But what about MATLAB code? The most I've seen in TMW's own classes is a short sentence or two at the top of the class, and I can't find any topics devoted to documenting sizeable MATLAB applications.
So how do you document your MATLAB classes? Any particular style issues or addition
|
3/10/2010 2:13:05 PM
|
1
|
"Joel " <joel.j.k.par...@nasa.gov>
|
calculate radius
this is my pic http://www.uppicweb.com/x/i/iv/img_and.jpg . can anyone help me to find radius in each circle please .Thank a lot T_T
|
3/10/2010 2:11:05 PM
|
3
|
"parkpoom " <khunp...@gmail.com>
|
calculate radius
i can not find radius in each circle please help me. thank you for you kindness.
my pic http://www.uppicweb.com/x/i/iv/img_and.jpg please help ...T_T
|
3/10/2010 2:09:04 PM
|
1
|
"parkpoom " <khunp...@gmail.com>
|
Multidimensional SAFEARRAYs via COM
I'm trying to interface MATLAB with a piece of software that is COM visible. There is one method that I need to use that returns a matrix of data via a 2-Dimensional SAFEARRAY. MATLAB documentation says that multidimensional SAFEARRAYs are not supported and when you check all the methods in MATLAB the arguments do come up as unsupported. Is there any way around this?
|
3/10/2010 2:03:05 PM
|
0
|
"Dean Kleissas" <dean.kleis...@ngc.com>
|
Select a ROI based on the centroid of round object
Hi,
I have a round object in an image. How can I select a region based on the centroid of the object?
The region I need is flexible,it can be a sector of the circle or a triangle of the circle's sector. I just need it to determine whether it is the desired color.
Also, can I know the steps to determine whether the selected region is yellow or white color?
Thanks in advance.Appreciate the help!
|
3/10/2010 1:58:04 PM
|
0
|
"Zhiyi Chang" <zyc...@yahoo.com>
|
Reading data file suing textscan or textread
Dear All,
I have data files of the type:
text
text
starttext
9 9 6 7
7 8 0 9
9 8 1 1
text
text
starttext
0 0 0 0
1 1 1 1
9 9 9 9
I.e. text files where several datasets including headerlines have been added into one long file. What I want to do is to analyze each data file (matrix of numbers) individually. How do I read in the data? If would make individual files out of each data set I would read them using:
[data1,data2,data3,data4] = textread(filname,'%f %f %f %f','headerlines',4);
Unfortunately my data set is to big for cutting and pasting all files, so how do I anal
|
3/10/2010 1:57:04 PM
|
2
|
"August Andersson" <aug...@dbb.su.se>
|
GUI, timer, handles
Hi, I have a problem updating GUI handles with timer...
In the OpeningFcn of my GUI I have the following instructions:
handles.data.timerReadSerial = timer('TimerFcn', @(obj, event) readSerial(obj, event, hObject), 'ExecutionMode', 'fixedRate', 'Period', 1, 'BusyMode', 'drop');
The function readSerial is the following
function readSerial(obj, event, hObject)
handles = guidata(hObject); % I try to retrieve updated handles with this
% other stuff not important here
I have a pushbutton that let me start the timer with start(handles.data.timerReadSerial);
and another pushbutton
|
3/10/2010 1:55:06 PM
|
0
|
"mauro Gaggero" <mauro.gagg...@gmail.com>
|
Simulink batch mode
Hello!
I would like to ask if it is possible to run Simulink simulations in batch mode (without the GUI) - I have read on the Internet that it could be done, but I can't find how.
Thank you,
Tudor.
|
3/10/2010 1:19:05 PM
|
1
|
"Relu " <tudorel...@yahoo.com>
|
rearrange equations to matrix form
I want to rearrange several equations to matrix form using a Matlab function. The equations are in symbolic form.
For example:
Let
y1=a1*x1+b1*x2+c1*x3
y2=a2*x1+b2*x2+c2*x3
y3=a3*x1+b3*x2+c3*x3
which is to be rearranged to a form of
y=H*X
where
y=[y1 ; y2 ; y3]
H=[a1 b1 c1; a2 b2 c2 ; a3 b3 c3] and
X=[x1 ; x2 ; x3]
How can I generate the matrix H without doing it manually? (matix X is self defined).
The example in this case is simple thus manual rearrangement is not time consuming. I want to know whether there will be a matlab function to perform such rearrangement process fo
|
3/10/2010 1:04:04 PM
|
0
|
"tony " <206505...@ukzn.ac.za>
|
Need a bond yield function
Hello, i am a newbie at Matlab, i am searching for a function to cover my needs.
It is about bond yield, its maturity, face value and price.
A function that, y =yield(price, cr, maturity, cf, fv) that takes bond price, coupon rate, coupon frequency, maturity and face value, and returns the yield to maturity of the corresponding bond.
I could do something like
c./((1+y).^t)
(-t(m,:)./(1+y(m,:)))./((1+y(m,:)).^t(m,:))
but i couldn't solve the whole problem.
Is there any script that can be useful for y =yield(price, cr, maturity, cf, fv)? Thanks in advance.
|
3/10/2010 12:59:06 PM
|
0
|
"Ersen Selvi" <ersen.se...@yahoo.com>
|
hiding text in an mfile
Hi everybody,
when using the for-loop matlab lets you hide the content of the loop by clicking the sqaure whith a minus sign on the left side of the "for".
is there a way to set this trick to hide text so the mfile looks smaller?.
what I do, is to set for loops that dont do anything to be able to hide the text, but I guess there is a more elegant way to do this.
thanx in advance
|
3/10/2010 12:47:04 PM
|
2
|
"nico cruz" <m.nicolas.c...@mailbox.tu-berlin.de>
|
surf plot
Hi all,
I am making a surf plot. However, I found the Z values are plotted on the grid points of the plot. Is there a way that I can make one grid (square) represent a value? For example, I make a surface plot for data
x = 1:3;
y = 1:3;
[X,Y]=meshgrid(x,y);
Z = [2 7 3;
9 7 5;
6 4 2];
surf(X,Y,Z)
view(2)
The surf plot would only have two columns of squares. I understand the values are plotted on the vertices and the colours are interpreted from 4 adjacent vertices. Is there a way that I can make the plot consisted of 3 columns, and each represent one column of values
|
3/10/2010 12:26:04 PM
|
2
|
"Wendy " <wlq...@gmail.com>
|
Statistics on nonequally spaced data in 2D
I have a large number of data points n(x,y,z,t) where n is the refractive index and the data is produced by a Large Eddy Simulation model (a type of CFD-calculation). The simulation was performed on a cluster and the results dumped to file. I am now doing post-processing of the data. I know that the time average should be cylindrically symmetric and would thus want to calculate ñ(rho,z) and n_var(rho,z), where I mean average with ñ and variance with n_var. The time series is not long enough for ñ(x,y,z) to look symmetric. The grid has structure but is not rectangular or symmetric. There are ap
|
3/10/2010 12:23:04 PM
|
0
|
"Markus " <m...@foi.se>
|
Solving some partial equations help.
I have a system of partial equations, that go like this:
du/dx + dv/dx = 0
dC/dt + udC/dx + vdC/dz = Z * (d2C/dx^2 + d2C/dz^2)
..
..
..
etc
I have eight equations in the same manner.
I feel a bit lost when trying to solve them. The first thing that comes to mind is making the system a system of first order equations or something like that (like what we do for ODEs). I also read up on the subject in the help and I understood that only systems consisting of two equations can be solved.
Can anyone throw me any tips or directions?
|
3/10/2010 12:18:04 PM
|
1
|
"davdav susu" <qwertyuiopoikjihu...@gmail.com>
|
dataset training
Hello,
how to train the dataset (.mat format) .i.e connected to matlab from oracle using odbc. could anyone please tell how to train dataset since im new to matlab.
|
3/10/2010 11:53:04 AM
|
0
|
"saranya " <rpsara...@gmail.com>
|
how to run a .nc file in matlab
Hi,
I have some data from IISc Bangalore.
The data are of .nc format it is not running on matlab.
some codings are to be added it seems.
does any one have the code to make the file run in matlab
or whether there is any specific tool box to run the file.
Waiting for the reply soon.
wishes from
manoj
|
3/10/2010 11:49:04 AM
|
1
|
"Oswalt Manoj" <oswaltmanoj1...@gmail.com>
|
RS422 in xPC Target: Problem with ASCII Encode and Decode
Hello!
I am using Quatech QSC-200/300 Card to send and receive data from EuroTherm 808 Temperature Controller. Strings are as follows:
Computer send: (EOT) (Group ID) (Unit ID) (C1) (C2) (ENQ)
Controller reply: (STX) (C1) (C2) (D1) (D2) (D3) (D4) (D5) (ETX)
where (Group ID) and (Unit ID): 00-99
(C1) (C2) is parameter specified by mnemonic, ex: P V,S V...
(D1..D5): value of the requested parameter
How can I format the above strings in ASCII Encode, Decode and FIFO Read HDRS blocks?
I have tried to use the following formats but I only received 0:
+ ASCII Encode block: EOT %d
|
3/10/2010 11:43:04 AM
|
1
|
"Bao Kha Nguyen" <nguyenbao...@hotmail.com>
|
GUI and waitbar on top of other windows
hello everybody,
I figured out how to keep a GUI in front of the rest (using GUIDE). You have to go in the property inspector and set WindowStyle to modal.
In my case the GUI callback opens a simulink model and sets parameters in there: is it possible to make this occur BEHIND the gui figure? because when the model opens it goes in top of it!
moreover, gui callback creates a waitbar during opening and parameter setting of model: how do I put this on top of the gui figure?
thanks for hints!
silvia
|
3/10/2010 11:41:05 AM
|
0
|
"Silvia Appendino" <silvia.append...@polito.it>
|
summing vector and matrix
a=rand(50,1);
b=rand(50,70);
c=rand(70,1);
K=5;
frame_size=length(a)/K;
total=(a-b*c)'*(a-b*c);
But I want to compute the total for each frame using this size:(frame_size) as above and summing it all together and get the same answer as total.
I know we can compute all together as total=a-b*c but I want to divide the vector a and matrix b for K frames and compute each frame and summing it all together. that means each frame will have 10x1 with different values for K frames.
I know how to sum for fixed input but I want to use it for any size of a, b and c. Thanks in advance.
|
3/10/2010 11:22:04 AM
|
4
|
"sarrah " <gto_girl...@yahoo.com>
|
Movie with data files
Hi,
I have been trying to use MATLAB to make a movie out of my 1000 data files and have had luck to do so quite easily. I was wondering if I can do something to slow the transition time between the plots of subsequent data and possibly display the filename in each transition. Any idea?
my code is following:
filenames = dir;
for i=4:562
newdata = importdata((filenames(i,1).name),'\t',22); %data files
x=newdata.data(:,1);
y=newdata.data(:,2);
plot(x,y);
M(i-3)=getframe;
end
movie(M)
|
3/10/2010 10:56:04 AM
|
0
|
"thisisme " <s.mukher...@sussex.ac.uk>
|
matrix operation
how to transfer elements from one matrix to other in place of zeros. Both matrix have different dimensins
eg:a=[1 2 4 3
0 3 4 0
4 0 0 5
6 7 6 8]
b=[1 2
3 4]
fill the elements of b to a in place of zeros
|
3/10/2010 10:55:06 AM
|
2
|
"sangita angadi" <sangeetaanga...@gmail.com>
|
Movie with data files
Hi,
I have been trying to use MATLAB to make a movie out of my 1000 data files and have had luck to do so quite easily. I was wondering if I can do something to slow the transition time between the plots of subsequent data and possibly display the filename in each transition. Any idea?
my code is following:
filenames = dir;
for i=4:562
newdata = importdata((filenames(i,1).name),'\t',22); %data files
x=newdata.data(:,1);
y=newdata.data(:,2);
plot(x,y);
M(i-3)=getframe;
end
movie(M)
|
3/10/2010 10:24:03 AM
|
0
|
"thisisme " <s.mukher...@sussex.ac.uk>
|
A Limitation of the Distributed Computing Toolbox?
I'm in the process of setting up a small experimental cluster using two quad-core i7 PCs. This means that (including hyper-threading) I am theoretically allowed to run 8 concurrent threads (workers) per machine. All is well and good so along as I stick to running the processes on one machine (matlabpool 8)
The problems arise when I try combining the two machines. Using the Admin Centre tool I set-up JobManager-A on Machine-A which also has 8 workers assigned to it. Then I assigned a set of 8 workers running on Machine-B to the same JobManager-A.
So at this point the JobManager reassuring
|
3/10/2010 10:03:04 AM
|
3
|
"Marc Anthony " <m...@cranfield.ac.uk>
|
Problem running .mexmaci with libfftw
I am just trying to compile some mex code linked with libfftw. It seemed to compile ok, but on running matlab I get the following:
....'. Reason: Incompatible library version: blah.mexmaci requires version 6.0.0 or later, but libfftw3.3.dylib provides version 5.0.0. '
Does anyone know what 'version' of what this is referring to?
Thanks
|
3/10/2010 9:54:04 AM
|
0
|
"Angela " <monochrome_jo...@yahoo.co.uk>
|
Anyone recognize these Lagrange coefficients?
I need experts eyes for this set of coefficients. I am new at this whole Fractional Delay Filter @ Farrow and Lagrange Interpolation. So any help will be much appreciated, especially with many MATLAB pros and elite mathematicians here.
The reason why I wanted desperately for this set is because I see it being used in various examples (in books, websites, and MATLAB help file), but the source of prior approximation was never given. I want to see if I can shadow their process from beginning to end. I learn better that way!
This mysterious set of coefficient can be found in Matlab DSP toolb
|
3/10/2010 9:36:09 AM
|
0
|
"Kevin Chu" <krazichoc...@gmail.com>
|
help with workspace
Hello all,
I have a m-file contains a function , and i want to see the values of all the variables that exist in the body of the function . the problem is that i did not find in the workspace window any variable that i searche for .
Has anybody an idea how to reache the variables values after the programme running?
thanks in advance
Best Regards
David
|
3/10/2010 9:18:04 AM
|
4
|
"david " <david.sabine...@gmail.com>
|
Unlock library over m-script
Hello dear Users,
How unlock the library in Simulink over a Matlab M-Script?
it is the same as in Simulink GUI: Edit -> Unlock Library
how do I get it with m-code? set_param(gcs, '....')
Tahnks alot for your help!
|
3/10/2010 9:16:07 AM
|
2
|
"Sergio Karpov" <sergeykar...@hotmail.de>
|
matlab to C++ conversion.......compilation/linking went fine but runtime crash.
hi,
i am pranav, i have conerted my simple addition of two numbers program
from matlab to c++.........
now i took all the things in vc++ and kept mclmcrrt.lib in additional
dependencies , everything compilation and linking things are
successful. But When I run it , It crashes...........What should i
do ?
Matlab program :- a=5 b=6 c = a+b
C++ converted program files I am keeping in this mail as attached.
Is there any hint from you ?
Please help.
thanks.
Pranav.
|
3/10/2010 9:10:36 AM
|
0
|
prof prof <pranavt...@gmail.com>
|
How to use Matlab in voice recognition
Hi.. I'm a new use to matlab.. And I'm doing a project which is required voice recognition or comparison. I heard that the matlab software can be used on that. But the problem is I don't know how to use it.. I don't know about the matlab functions. If there's any one who's capable of help me.. please please.. send me the procedure and advices.. .. e-mail= wattale@gmail.com
|
3/10/2010 9:04:06 AM
|
0
|
"Lasitha " <wattaladen...@yahoo.com>
|
Basics
Hi,
static void mdlOutputs(SimStruct *S, int_T tid)
{
real_T *x = ssGetContStates(S);
real_T *y = ssGetOutputPortRealSignal(S,0);
InputRealPtrsType u = ssGetInputPortRealSignalPtrs(S,0);
what's the difference between x and u as in my examples given in Matlab help files both value are same then why there are two commands? Can anbody explain plz!
Regards!
|
3/10/2010 9:00:32 AM
|
0
|
"Zia " <ziagem...@hotmail.com>
|
Batch job
hello,
i have a large file that i'm working with, so i devided it to several shorter files. i want that while i'm working on one file, the next file will get uploaded in the background of matlab in a way that it won't disturbe the user to work meanwhile.
i know the batch('script') can do that, but i'm having trouble in using it.
can anyone explain me how to use it?
or does anyone has another idea for how to do what i want?
the code i used:
next_epoch_dir=[File{2} File_Name '\'];
next_epoch_name=next_data{2};
j=batch('load_next');
load_next:
data=load([next_epoch_dir ne
|
3/10/2010 8:55:08 AM
|
0
|
"netalee efrat" <netef...@gmail.com>
|
Need help on Functions
I need help on how to display the result of SOM algorithm using U*-matrix and P-Matrix. Is there any toolbox that contains these functions?
|
3/10/2010 8:51:05 AM
|
0
|
"web_C cole" <ml_sany...@hotmail.com>
|
2 surf plots in one diagram
Dear community,
Is it possible to have two surfaces in one diagram. And if so, how do I do it?
And how do I add a label?
Example:
Z=randn(11,11);
Z1=randn(11,11)+2;
X=[1:11];
Y=[1:11];
surf(X,Y,Z)
surf(X,Y,Z1)
But now in one diagram?
Thanks in advance,
kind regards
Hans
|
3/10/2010 8:40:23 AM
|
1
|
"Hans Henrik Sievertsen" <hhsievert...@gmail.com>
|
hyperbolic interpolation
Hi, is there a way to do an hyperbolic interpolation in matlab? i mean, i have some data and i know that a function like f(x)=c*x^-a fits my data very good. how can i find such a?
|
3/10/2010 7:43:10 AM
|
1
|
"patrik osgnach" <patrik.osgn...@gmail.com>
|
how to create mask
Hi,
I have a region (say: in a matrix X=[250 52]),then I want to mask some area that I'm not interested in my analysis e.g. one area (60,2) to (60,7) and (90,2) to (90,7), how to do that in matlab? and what if I have more than one area to be masked?
thanks
ysf
|
3/10/2010 7:43:10 AM
|
3
|
"yusuf awal" <awaludin...@yahoo.com>
|
Dynamic multiplot and animation in a GUI?
I hope I'm posting this in the correct place! I actually have two questions, but I think they are related to the same issue (my lack of understanding of handle graphics for one!). My apologies for the length of this post.
First a description of what I want to do.
I have written a GUI for an existing data set (3D human movement data) that provides the user with two ways to view the data:
1) using standard x-y plots of variables in the data set, and;
2) 3D animations of the movement data.
To acheive this my GUI has two axes -- one functions as a primary display (large, with various co
|
3/10/2010 7:35:28 AM
|
0
|
"cmcgibb McGibbon" <cmcg...@gmail.com>
|
two's complement 8 bit data to decimal
Hi guys,
does anyone knows how to convert a 8-bit data in the two's complement format back to signed decimal number?
Thanks,
AL
|
3/10/2010 7:33:09 AM
|
2
|
"Albono Bonomi" <alb.bon...@gmail.com>
|
Basics
Hi,
I am new user of Matlab. so my questions are of very basic level :-).
1. how the signal values are defined? e.g.
kLa = mxGetPr(PAR(S))[95];
this is one command in matlab c file. Now what i understand is i will get the value of kLa from PAR(s) file at indicis number 95? But in my files that's not the case. Can anybody explain?
2. if i want to see just for the above command what value i will get in result, is there any way to see that? More clearly just the value of kLa not the entire file.
Thanks!
|
3/10/2010 7:13:03 AM
|
3
|
"Zia " <ziagem...@hotmail.com>
|
how to write serial port
hi,
I am working on the project image processing based part inspection system.For that i need to send +5V signal from serial port.I have written the program for that in matlab as given below.But i didn't get the proper output.
s=serial('COM1');
fopen(s);
fwrite(s,11111111,'ulong','async');
stopasync(s);
fclose(s);
I am measuring the voltage change in serial port by digital multimeter at the time of running the prog.But i get -11.27V normally and when i run the prog,i got -11.29V.that means only a minor change of -0.02V and that also in negative direction.While ideally i should get 0V
|
3/10/2010 7:11:21 AM
|
1
|
"mit aghera" <mit_aghera...@yahoo.co.in>
|
voice recognition/comparison
Hi.... I'm a new user of this matlab .. and I'm trying to use matlab software in voice comparison. But the problem is I have no I idea to start it. If there's some one who's capable of doing this.. please send me the details and procedure.. please
|
3/10/2010 7:10:25 AM
|
0
|
"Lasitha " <wattaladen...@yahoo.com>
|
Simple function script errors
I am a beginner to MATLAB and am using it for my Vibrations class
I am calling a function shown below with the script shown below. Newmark Beta integration method where I plot the time (t) verses displacement (v) using different values for dt to show what size dt I need to use to have a converging graph.
%Below is the function
function[v, dv, ddv]=newmark1(m, c, k, t, dt, fn, v0, dv0, ddv0)
% INPUTS
% v0, dv0, ddv0: initial conditions
% dt: time step
% t: vector of time points
% f: forcing function vector
% m: mass (kg)
% c: damping constant (Ns/m)
% k: spring constant
% OUTP
|
3/10/2010 7:01:08 AM
|
0
|
"Joe " <bluebrothers...@aol.com>
|
Using Data Brush, Data link in a custom GUI
Hello everyone,
I'm working on a custom matlab GUI that plots 2-D data and performs some processing on this data.
I would like to add a toolbar with zoom, pan, data link and data brush functions. The toolbar tool in GUIDE already has zoom and pan functions built in but not the data link and data brush functions.
1: How do I add these tools to my toolbar?
The reason I'm looking to use this is because I would like the user to be able to select a data set (Only needs to be horizontal data, i.e. amplitude stays the same) from the figure and then only process that data.
This proved a
|
3/10/2010 7:01:07 AM
|
0
|
"Gerhard " <gerha...@reutech.co.za>
|
Discete PID controller
Hi,
I'm trying to create a discreet PID controller. I'm new at this software, and I don't know where everything is. I know there's a linear PID controller icon, but it won't let me make any changes.
Thank you very much for the help.
|
3/10/2010 7:00:07 AM
|
1
|
"Valeriu " <valosarap...@msn.com>
|
help converting laplace to time domain
I used the "residue" command to get my transfer function into partial fractions. I have an S term in my K. K=[1 2]. I don't know how to convert S into the time domain. Can anyone help?
|
3/10/2010 6:22:05 AM
|
1
|
"Susan " <susanreneemuel...@gmail.com>
|
How to simulate a serial com output
I use matlab to generate real-time data and want the real-time data can be obtained at my PC's serial port com 2. A serial cable connected at com 2 gets the data as if the matlab virtual serial output is the real serial output.
How can I do this? Anybody has the experience?
Thanks a lot.
Roy
|
3/10/2010 4:15:25 AM
|
0
|
"Roy " <chaowu2...@gmail.com>
|
summation calculation in MATLAB
How following summation should be calculated by MATLAB withtout
For loop ?
Σ(a:0->999)Σ(b:0->999) f(a,b)
where, f(a,b)=2a+b;
|
3/10/2010 4:10:25 AM
|
1
|
"keisyu keisyu" <sandalw...@yahoo.co.jp>
|
fwrite error with doubles
hello,
i am running the code below and when i inspect the txt file later on
it is indecipherable and is not able to be read back in when i use
fread.
the data in the matrix is of class "double", and i am attempting to
also write to double.
not sure what is causing this.
thank you!!
see code below for two tries i gave neither of which worked
:::::
[fid,message]=fopen(strcat('/Users/Jason/Desktop/
folder/',Tick_Hold,'/',TS(1,j).filename{1,i},'.txt'),'a');
fwrite(fid,TS(1,j).ts(i,:),'double');
fclose(fid);
[fid,message]=fopen(strcat('/Users/Jason/Desktop/
fo
|
3/10/2010 3:32:40 AM
|
3
|
jason <jason.mell...@gmail.com>
|
how to construct an orthogonal matrix
Hi everybody,
I'm stuck with a simple problem about how to construct an orthogonal matrix R, say of size m * n. Note that here m<n, for example, m = 20, n =100.
I try both SVD and Gram–Schmidt process, but i fail because the result is a special matrix in which (n-m) columns are zero.
Can anyone help me?
Thanks a lot:)
|
3/10/2010 3:24:07 AM
|
6
|
"yuan " <tianyuan_2...@163.com>
|