Matlab logical operators
Z = [1 2 5 7 8 3 0 4]
How can I obtain Z1 = [1 2 0 0 0 3 0 4] from Z using the Matlab logical operators?
|
3/13/2010 9:59:10 AM
|
1
|
"Mario Fatafehi" <coru...@hotmail.com>
|
|
wbe a billgates
http://123maza.com/75/creativity
|
3/13/2010 9:39:43 AM
|
0
|
tinny tanny <tinnyta...@gmail.com>
|
real time embedded coder
sir,
i have completed my simulation on matlab in wavelet transform based application.i would like to implement this application on blackfin dsp processor. i supposed to use real time embedder coder for converting this code into c code.how can i change "emlcoder.HardwareImplementation" options in emlc and set it for blackfin.
kindly help me.
thanking you...
|
3/13/2010 9:05:26 AM
|
0
|
"arun " <arunos...@gmail.com>
|
How to generate Gaussian white process noise
How can we generate gaussian white process noise in matlab?
|
3/13/2010 8:55:06 AM
|
1
|
"mohan meena" <mohanmeena...@gmail.com>
|
How to generate Gaussian white process noise
How can we generate gaussian white process noise in matlab?
|
3/13/2010 8:55:06 AM
|
0
|
"mohan meena" <mohanmeena...@gmail.com>
|
Histogram to Probability ditribution function
Hi There,
Do you know how we can convert histogram plot to probability density function plot?
Thanks,
maryam
|
3/13/2010 8:49:05 AM
|
1
|
"Mehdi bahonar" <mehdi...@yahoo.com>
|
Histogram to Probability ditribution function
Hi There,
Do you know how we can convert histogram plot to probability density function plot?
Thanks,
maryam
|
3/13/2010 8:47:05 AM
|
0
|
"Mehdi bahonar" <mehdi...@yahoo.com>
|
imnoise on derivatives of an image
Hi,
I have the following situation:
- read an image (0..255 range); cast it to double precision;
- compute its gradient (dIdx and dIdy, which obviously will contain both positive and negative entries)
- try to add noise to the derivatives using imnoise function;
The result of imnoise is scaled from 0 to 1.
My question is how can I cast it back to its original range, which should contain both negative, and positive entries, without losing any information?
Should imnoise only be used on images with positive intensity values?
In this case, how do I scale the derivatives (shift, mayb
|
3/13/2010 8:43:11 AM
|
0
|
"Joanne McCullen" <speran...@gmail.com>
|
matlab jomework help...
This assignment is based on the optical communication example in Lecture 14 notes. If the laser is on, the detector output is a Poisson random variable with an expected value of 1,300. Otherwise, if the laser is off, the detector output is a Poisson random variable with an expected value of 800 photons. The receiver decides that the laser is on if the number of photons counted is larger a threshold
Simulate this scenario in MATLAB or other suitable software. You will need to write a function to generate binomial random variable (for generating 0's and 1's to indicate laser to be off or on)
|
3/13/2010 8:21:05 AM
|
1
|
"wooikeat khoo" <keats...@gmail.com>
|
feature extraction and neural network classification
Good day everyone. Im new in matlab and currently doing a Chinese handwriting recognition using neural netwotk. I have done the image processing part which are cropping, grayscale n binarize stuff by refer at image processing tutorial. So im now stuck, that is after i binarize the character image, how could i extract the feature to used to train in neural network?
I have also explore the nprtool, it needs a dataset which is mat-file to be trained is it? How could i create the mat-file from the features that extract?
Thanks very much for guidance...
|
3/13/2010 8:00:26 AM
|
0
|
"Kevin " <uselessdra...@hotmail.com>
|
how to start writting the command
i am assigned to use matlab to solve some poisson distribution random variable and the binormial random variable. i would like to know what i should do when i first started to write my program. like in c programming, the starting is #include <stdio.h>. so, what i have to write first for my program??
|
3/13/2010 7:26:07 AM
|
0
|
"wooikeat khoo" <keats...@gmail.com>
|
program
i'am looking for program of ASK(amplitude shift key) using MATLAB . kindly help me.
|
3/13/2010 7:21:05 AM
|
0
|
"rohit bisht" <rohit_29...@yahoo.com>
|
Plotting problem
x1(t) = exp(-2*t) + exp(-2*t)
x2(t) = sin((pi/2)*t + (pi/4)) + cos((pi/2)*t - (pi/4))
t=[-2:0.1:2]
subplot(2,1,1)
plot(t,x1(t))
xlabel('time units')
ylabel('x1(t)')
subplot(2,1,2)
plot(t,x2(t))
xlabel('time units')
ylabel('x2(t)')
??? Subscript indices must either be real positive integers or logicals.
How can I fix up this error? I need to plot from -2<t<2.
|
3/13/2010 6:45:23 AM
|
1
|
"Mario Fatafehi" <coru...@hotmail.com>
|
how can i increase no of i/o ports of blocks using in simulink
how can i increase no of i/o ports of blocks using in simulink. when iam practicing the simulink models some models contains blocks which r having more no.of i/o ports than present in the libraray block... ex. how can i able to make a scope with two i/o ports..and xy-graph with four ports...
|
3/13/2010 6:21:11 AM
|
0
|
"dileep kumar arava" <balu_di...@yahoo.co.in>
|
svd and variance
Apologies if this is a simple question, when we compute svd > [U, S, V] = svd(data), how to get the variance explained or singular covariance fraction from that results?
ysf
|
3/13/2010 6:17:09 AM
|
0
|
"yusuf awal" <awaludin...@yahoo.com>
|
inserting images into mysql database using matlab
hai,
I would like to know how to insert images into mysql database and how to retrieve and display the inserted images.
How to display the image that is converted into binary format?
How to set the password field in matlab?
Thanks in advance for your help.
|
3/13/2010 6:16:02 AM
|
0
|
"Anju prabhu" <anjuara...@gmail.com>
|
Image
I applied it on the signal now i want to apply on the image
Suppose i have taken a image
Having x on x, and t on y.....
So i it will be a matrix. Now i want to decimate that image by 10%.........after decimation i want to apply FFT by putting zeros in place of decimation get the spectrum.. I want to apply it on rows as I am decimation X direction not y direction..So how should i do it any starting steps will be good for me
|
3/13/2010 5:17:08 AM
|
0
|
"kk KKsingh" <akikumar1...@gmail.com>
|
Nyquist diagram for MATLAB GUI
I need a right code to show the nyquist diagram in the GUI given that the numerator and denominator of a transfer function is given
The code I made
% --- Executes on button press in pushbutton11.
function pushbutton11_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton11 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
num=get(handles.edit1,'string');
den=get(handles.edit2,'string');
num=str2num(num);
den=str2num(den);
w=0:1:10000;
[numCL,denCL]=cloop(num,den);
s
|
3/13/2010 4:07:05 AM
|
0
|
"Frederick Gonzales" <alone_i_d...@yahoo.com>
|
PSO for image enhancement
i am working on medical image enhancement using PSO . i donot know how to initialize the particle, position and velocity and write program . pl z help me
|
3/13/2010 3:39:09 AM
|
6
|
"sukhwinder " <sukhisem...@yahoo.co.in>
|
Optimization with a variable of very huge dimension.
Hi all,
In my class project, I need to develop a classifier based on Logistic
Regression to classify ham and spam emails.
The request is that I use conjugate gradient algorithm to estimate a
parameter vector theta (that is the weights of words in emails). The
problem is that dimension of the vector theta is equal the number of
words in the training set that is a huge number (150,000).
I am wondering if it is possible to use MATLAB optimization tool box
for problems with variable of 150,000 dimensions.
If it is impossible, is there any free optimization tool that I can
use fo
|
3/13/2010 3:29:49 AM
|
0
|
MBALOVER <mbalov...@gmail.com>
|
cannot run matlab in my computer
i am using laptop with windows 7 operating system. and the matlab versions that i am using is matlab 7.1. then i installed it and then when i want to run it after the installation, it just tell me there is an error starting the desktop regarding some 'javax' error. so, what should i do??
|
3/13/2010 3:03:22 AM
|
2
|
"wooikeat khoo" <keats...@gmail.com>
|
error with intial conditions for ode45
Hi
I have a problem in differentiating my equ.
my .m file is
function [t,xdot] = formdiffeq(t,XX,h,BB,A)
x=zeros(1,6);
y=zeros(1,6);
d=zeros(6);
s=zeros(6);
l=zeros(6);
k=zeros(1,6);
%i use all these variables to calculate 'l'
L=kron(l,eye(4));
xdot=A*XX+BB*L*(XX-h);
end
and in the command window
I have calculated BB,h,A and the intial conditions as
XX=[5;0;6;0;4;0;3;0;9;0;8;0;10;0;1;0;8;0;2;0;9;0;7;0];
[t,XX]=ode45(@formdiffeq,tspan,XX,[],h,BB,A);
And the error i get is
??? Error using ==> odearguments at 116
FORMDIFFEQ returns a vector of length 1, but the length o
|
3/13/2010 2:33:06 AM
|
0
|
"viswanath " <vishwa_viswan...@yahoo.com>
|
newbie to cell
Hi
I have a file 'filename.dat' containing like
A A.1 A.2 A.3
B B.1 B.2
C C.1 C.2 C.3 C.4
Those A,B and C are filenames but having different numbers of
extensions.
I use
A=importdata('filename.dat' );
A{1} denotes the first row. But I don't know how to separate every
filename, like A.1-A.3, or C.1-C.4. I'd like to have a function to
return them.
Mike
|
3/13/2010 2:28:38 AM
|
0
|
Mike <sulfate...@gmail.com>
|
Pi approximation function optimization
I came across the "brain teaser" of finding the best approximation of pi by dividing one 9-digit number by another 9-digit number. Both numbers contain 1 through 9 once.
I found a very close approximation by hand (728691345 / 231948765 = 3.141604763) but I want to know if there are any better ones.
I've tried a couple different methods of writing a program to find a better approximation, but all I can come up with is a massive number of loops that would take way too long for my computer to process.
I'll paste my current program below. If you can think of a better way to write this,
|
3/13/2010 1:55:25 AM
|
3
|
"Jared F" <jfritz...@yahoo.com>
|
Pi approximation function optimization
I came across the "brain teaser" of finding the best approximation of pi by dividing one 9-digit number by another 9-digit number. Both numbers contain 1 through 9 once.
I found a very close approximation by hand (728691345 / 231948765 = 3.141604763) but I want to know if there are any better ones.
I've tried a couple different methods of writing a program to find a better approximation, but all I can come up with is a massive number of loops that would take way too long for my computer to process.
I'll paste my current program below. If you can think of a better way to write this,
|
3/13/2010 1:54:06 AM
|
0
|
"Jared F" <jfritz...@yahoo.com>
|
viewing structure arrays
I am trying to view my structure array but matlab just returns:
str =
1x9 struct array with fields:
name
boss
how can I see the values?
Thanks
|
3/13/2010 1:10:21 AM
|
2
|
"Chris " <ridered30...@hotmail.com>
|
dataset help
I've just started using the dataset type from the Statistics toolbox, and I've found it quite useful. I'm having some problems though with some basic manipulation. As an example,
snames = nominal({'setosa';'versicolor';'virginica'});
CC = dataset({snames,'species'},{[38;108;70],'cc'})
1) How can I convert chosen elements of the dataset to a string/cell? Let's say I want to take CC(1,1) and do some string manipulations and put it back in? This would be the equivalent of single/double dataset methods but applicable to strings.
2) How can I print out a data set to a file? I'm used to w
|
3/13/2010 12:59:05 AM
|
0
|
"John Roberts" <johnjohn...@hotmail.com>
|
putting bodeplot() and raw data subplots in same plot
Hey everyone,
I know about the bodeplot() command and how it automatically creates a bodeplot from a transfer function (with appropriate labeled axes and everything). However, is it possible to overlay another set of raw data (not a bodeplot) onto the 2 subplots of the figure that bodeplot creates? Basically, I have a bunch of x & y data for freq & phase (taken from an oscilloscope) that I can create a bode plot from using semilogx(), but i want to combine/overlay the two plots onto one figure.
Also, can you use a for loop to make figures (I have a bunch of transfer functions I want to b
|
3/13/2010 12:52:05 AM
|
0
|
"Bo " <bosun...@gmail.com>
|
sign test, polarity
Hi
Does anyone know if there's a function in matlab that compares the sign of two values? i.e it checks if they are both negative or positive?
Bayo
|
3/13/2010 12:17:26 AM
|
3
|
"Bayo " <ayb...@bham.ac.uk>
|
MATLAB GUI nyquist and Parabola HELP
Hi I'm a student and I'm creating a GUI program which incorporate teh 5 input responses plots in Control system, first the input is the numerator and the denominator of a transfer function. I'm having trouble with the Parabola response and also the nyquist diagram becuase the plot are not showing in the axes and the program stands still
This is the code for the parabola response
% --- Executes on button press in pushbutton13.
function pushbutton13_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton13 (see GCBO)
% eventdata reserved - to be defined in a future ver
|
3/13/2010 12:15:16 AM
|
0
|
"Frederick De asis" <alone_i_d...@yahoo.com>
|
Structure indexing/quick value determination
Hola,
I'm trying to evaluate a structure that contains stations and large arrays of times and amplitudes. for example:
struct(1,2).name, 'hnps'
struct(1,2).number 119
struct(1,2).amp, <2925x1 double>
struct(1,2).time, <2925x1 double>
struct(1,2).mamp,
struct(1,2).skew,
struct(1,2).kurt,
struct(1,2).kosm
I need to find the amplitude (or other value) at a specific time, but the number of data points in .amp and .time will vary. What is the best way to do this? Also, what is the best way to index a struct
|
3/13/2010 12:12:07 AM
|
0
|
"Matt Weller" <mbwel...@yahoo.remove.this.com>
|
How can I create my own workspace?
Hello,
What I mean is, how can I transfer the workspace and all its variables (including loop counters and toc) from a nested function, for example, and make it available in another function?
|
3/12/2010 9:23:05 PM
|
7
|
"Husam Aldahiyat" <numand...@gmail.com>
|
Matlab acker(A,B,p) method
Hi, will acker method return the G matrix of Luenberger observer?
I have used this method to obtain G, then calculated the F (F = A -
G*C) and i have state space equation of Luenberger's Observer
x(t)' = Fx(t) + Bu(t) + Gy(t).
But for my object(three tanks connected in series) this observer shows
totally wrong states.
|
3/12/2010 9:19:31 PM
|
0
|
tomek <tmkdu...@gmail.com>
|
parfor parameter sweep with function of big matrices
Hi all,
I'm having issues regarding the use of parfor for a parameter sweep that uses large matrices.
I have
>> inds; %[huge x 3] matrix with each row being [x y z] coordinates into other matrices
>>my_data = zeros(huge, 6, 'single');
original code
>>for n = 1:length(inds)
>> coords = inds(n.:);
>> d = my_function(coords);
>> my_data(n,:) = [d coords];
>>end
my_function takes as inputs the coordinates into two approximately 900x900x900 uint8 matrices.
I've been using global or appdata(set/getappdata(0,'I1')) to load the big matrices into my_function since passing them a
|
3/12/2010 9:13:23 PM
|
0
|
"Sean " <sean.dewol...@Idontwantspam.umit.maine.edu>
|
color image watermarking
Helloooooooooooo every one.
We know that an rgb image is composed from red ,green and blue.
In a color image watermarking you must embed a watermark image into one of the channel (red,green ,blue),or you must work on one of them.
So ,I have read some paper about color image watermarking ,and no one of them work on the red channel.
My question is why we don't use the red channel for watermarking ?
I think in evrey color image (RGB image) ,the red has the biggest entropy .
|
3/12/2010 8:28:02 PM
|
1
|
"Abdulhakeem Othman" <abdulhakeem.os...@gmail.com>
|
Question about dir
In my function, I'm using dir to create a structure of all my files in my current directory of a certain name.
heres the code:
matfiles=dir('*vo3*.mat'); %a structure containing all .mat files in current directory %that contain "vo3"
------
however, my problem is that I also have files in that directory that are under the naming convention of *vo3g*.mat.
So I have files like *vo3*.mat and *vo3g*.mat But when i call my code shown above, it also includes the *vo3g*.mat files.
Is there a way that I can use dir to only collect the *vo3*.mat files without collecting the othe
|
3/12/2010 7:38:05 PM
|
2
|
"jmeccles " <jared.ecc...@hotmail.com>
|
Cheeps Guest houses Karachi Independents fully furnished
Cheeps Guest houses Karachi Independents fully furnished
Bungalows
http://guest-houses-5star-hotels-karachi.blogspot.com
|
3/12/2010 7:28:58 PM
|
0
|
ghjj <resour...@gmail.com>
|
Duplicate points removed by DelaunayTri
After meshing with DelaunayTri, a few duplicate points are removed, however when I then get TriscatteredInterp the Data array no longer matches up with the XY values, and it fails. I'm sure I got around this before, but coming back to it now I haven't the foggiest idea how, suggestions?
If its simplest I can try to figure out where those duplicate points are and deal with it prior to delaunaytri, or is there a way to match up the triangulation with the dataset afterwards?
|
3/12/2010 7:21:20 PM
|
2
|
"Shawn " <sfost...@physics.mcgill.ca>
|
Setting the display after starting Matlab?
Dear Matlab-ers,
Is there a way to specify the display after starting Matlab. I know
that the display can be set from when starting Matlab from the Linux/
Unix prompt
matlab -display DISPLAY
However, the way Matlab works on the our cluster is that we submit a
job to an interactive queue and the job control assigns a node to run
Matlab. To use display in the computer(s) in my office, I need to add
the node name or IP address to the list of xhosts. However, I don't
know the name or IP address of the node I'll be using until after
starting Matlab. If I start Matlab with -displ
|
3/12/2010 7:13:43 PM
|
2
|
Jomar Bueyes <jomarbue...@hotmail.com>
|
Interfacing MATLAB and Visual Basic
How can I access a Visual Basic buffer using MATLAB?
Actually, I am sending sampled data from an ADC to the PC via PIC microcontroller(PIC18F4550). This I am achieving through an application called EasyHID... Can I access EasyHID data directly from MATLAB?
If not, EasyHID data can be accessed via Visual Basic...So if I can access Visual Basic data from MATLAB and operate on it(and send it back to Visual Basic,if possible...I guess I'm a little greedy!!), I'm done...So does anyone know how to interface MATLAB and Visual Basic?
|
3/12/2010 7:05:22 PM
|
0
|
"abhiram B" <abhiram_diksh...@yahoo.co.in>
|
Matlab location function
Hello,
Does anyone know if Matlab has a built in location function? Something that would print current geographic coordinates to the screen. Sort of like the clock function, but with space?
Thanks
|
3/12/2010 6:40:52 PM
|
1
|
AMK <kennas...@gmail.com>
|
define parameter limits using nlinfit
Hey Guys,
I'm trying to conduct a fit of my measurements to the formula for the reflection coefficients:
f=@(n1,t) abs(((sqrt(n1.^2 - (sin(t*pi/180)).^2) - cos(t*pi/180)).^2)/(1 - n1.^2));
%Fit-Funktion für r_senkrecht
g=@(n2,t) abs((n2.^2*cos(t*pi/180)-sqrt(n2.^2-(sin(t*pi/180)).^2))/...
(n2.^2*cos(t*pi/180)+sqrt(n2.^2-(sin(t*pi/180)).^2)));
%Fit-Funktion für r_parallel
unsing the following syntax:
ns1=1.3; ns2=1.5;
par_senk=nlinfit(x,y_senk,f,ns1);
par_parr=nlinfit(x,y_parr,g,ns2);
With funcion f evetrything's fine, bit with g MATLAB seems to experience problems due
|
3/12/2010 6:14:24 PM
|
1
|
"Bastian Baudisch" <bastian.bauds...@physik.lmu.de>
|
Generate Matrix in Matlab
Is there a way to generate a matrix in Matlab from a set of equations ?
For example, Maple has a command called "genmatrix" followed by specifications to generate a Matrix from a set of equations.
|
3/12/2010 5:48:08 PM
|
1
|
"Girish Pallathadka" <girishpallatha...@yahoo.co.in>
|
Questions about Quiver
Hello,
I am having trouble with my plot using quiver. For the vectors created by quiver, it starts at the coordinate indincated in quiver(x,y) and draw the vector toward the direction it should go. What if I want the coordinates to be the midpoint of the segment? so it has half of the line left of the coordinate given and half on the right. Is there a property I can change to achieve that?
Thank you,
Wilson
|
3/12/2010 5:44:24 PM
|
2
|
"Wilson " <wilson761...@yahoo.com.tw>
|
Complex numbers in rmasummary output
Dear all,
I'm normalising some microarray data using rmasummary in the Bioinformatics Toolbox. When I do so, I get complex numbers in the resulting expression matrix, even using the example provided by matlab (help rmasummary):
load prostatecancerrawdata
backadjData = rmabackadj(pmMatrix);
normData = quantilenorm(backadjData);
expressionData = rmasummary(probeIndices, normData);
Is this correct?...!
Lisa
|
3/12/2010 5:42:12 PM
|
0
|
"Lisa " <l...@dcs.gla.ac.uk>
|
a 'stacked' 3D bar graph of a different kind
I have been struggling all morning to find the way to do this with MATLAB.
I am creating 3D data of time, distance, and a whole number quantity.
What makes up the quantity is the sum of 5 different catagories.
I want to visualize the contribution of each of the categories similar to a stacked bar graph. but the bars rendered at different locations in the xy plane. This would be
perfect. Next best I suppose is a surface but I don't understand how to demarkate contours to show contribution of the different categories to the total height.
Is there a function or method/ examples
for
|
3/12/2010 5:36:09 PM
|
0
|
"Ted " <tmor...@umn.edu>
|
feature to represent increase in loudness/energy?
Hi all,
I was wondering if anyone can suggest a feature (or possibly a combination of features) that can represent an increase in loudness...
Since I am still unclear about some aspects of audio processing, sometimes I believe that this relates to energy features?
I understand that, the 13-th coefficient of MFCC is one feature for audio energy. But am not entirely sure.
Actually I plan to detect audio segments (from soccer video) that contains increased audience cheer (as in, for example, when a bad foul is committed, or when a goal is scored).
Can anyone suggest something for me?
|
3/12/2010 5:30:25 PM
|
0
|
"Alfian Abdul Halin" <jawatrox...@gmail.com>
|
Cheeps Guest houses Karachi Independents fully furnished
Cheeps Guest houses Karachi Independents fully furnished
Bungalows
http://guest-houses-5star-hotels-karachi.blogspot.com
|
3/12/2010 5:18:30 PM
|
0
|
jgjghj <resourt...@gmail.com>
|
Filter
How can I use 'freqrespest()' function with mfilt type?
Thanks.
|
3/12/2010 4:47:02 PM
|
1
|
"Andrea Di Domenico" <andrea.didomenico.registrazi...@gmail.com>
|
how to build a data file from excel file
Hi all,
I have an exel file that contains a colomns values and i want to uses this data in my neural networks m-file. How can i call this excel file and how can i convert it to file with the form (file.data ).
Thanks in advance
David
|
3/12/2010 4:41:20 PM
|
0
|
"david " <david.sabine...@gmail.com>
|
indexing
I have a code that generates 4 values for each iteration
i want to assign those 4 values to an array to store them and finally i want to write all those values to an excel file...all the values generated must be stored in first column of excel file..i am not sure how to index this because for each iteration it generates 4 values then they will be stored in first 4 rows of first column then for next iteration values should continue to store from 5th row of first column...
part of my code is
for i = 1:134
y=interp1(h,h,p)%h is an array of 2 values and p is an array of 4 values
D(:,1)
|
3/12/2010 4:19:51 PM
|
3
|
rams <lrams...@gmail.com>
|
errors in read dicom file
Dear all,
When i tried to read dicom file to matlab I got the following error:
'??? Error using ==> dicomread>newDicomread at 214
Unsupported data encoding.'
I looked into the file by dicominfo and I found that the TransferSyntaxUID of such file is
'1.3.46.670589.33.1.4.1' which is out of the definiation in matlab.
I was wondering is there an alternative way to read the file to matlab.
Thanks in advance.
David
|
3/12/2010 4:15:28 PM
|
0
|
"David " <david2008....@gmail.com>
|
time series by neural networks
Hello all ,
I would like to know what is supposed to be the best neural network to predict time series data like vehicles input flow to intersection (how much vehicles cross per hour).
Just some examples (m files would be nice)
Best regards
David
|
3/12/2010 4:12:07 PM
|
0
|
"david " <david.sabine...@gmail.com>
|
parameter constraint on crossCorr
dear all,
I want to constrain the crossCorr function to return parameters/solutions between 0-1, because a priori I do not expect any negative relationships.
Is there an easy way to do this that I am overlooking, thanks.
|
3/12/2010 4:04:08 PM
|
0
|
"M Ladderman" <mirresim...@gmail.com>
|
storing values in Matlab
Hi,
i have a code that tries to find interpolated values as given below
interp1([0.1162,0.0977],[400,405],[401,402,403,404])
for this i am getting the output as
NaN NaN NaN NaN
please tell me what is going wrong...thanks in advance
|
3/12/2010 4:03:05 PM
|
1
|
rams <lrams...@gmail.com>
|
help in time series prediction by neural networks
Dear friends .
I have gone through the manual of NN Toolbox but I found nothing about
the use of neural networks for forecasting of univariate and multivariate time series. Could anybody tell me where can I find examples of this kind of applications?
This is a new subject for me and I need to start with something simple.
Best regards
David
|
3/12/2010 3:52:08 PM
|
0
|
"david " <david.sabine...@gmail.com>
|
MUPAD - big ODE
So I am trying to find the equation of motion for a system, using Lagrangian mechanics.
MUPAD has solved it for me, but when I ask it to differentiate something, with respect to t (time), it makes all my constants functions of time, and therefore doesnt set them to 0 if they are constants
F:= 2r
differentiated using diff becomes
2*d/dt[r(t)]
can I not get it to know that constants are constants and they differentiate to 0?
Secondly, once i have this equation I want to solve it using ODE45 in matlab. Is there a way I can transport it to MATLAB? I know that matlab doesnt underst
|
3/12/2010 3:26:02 PM
|
0
|
"Alex " <a.mlw.wal...@googlemail.com>
|
make controls invisible
Hello,
I am working on a gui in which I have (among other things) a uipanel (which include a number of controls)
Depending on the user input, this uipanel could be replaced by another, so I would like to make the uipanel invisible and make another visible.
in VB it's object.visible=True or False.
I search for a solution this this problem and I found only how to set a whole figure visible and invisible. I tried to imitate this method and I cam with
set(uipanel3,'Visible','off')
and
set(findobj(gcf,'label','&uipanel3'),'visible','off')
none of these did the job
Please advi
|
3/12/2010 3:19:21 PM
|
1
|
"Naftali Herscovici" <tul...@hotmail.com>
|
Unusual date formatting
I have a group of files which I need to extract the date from. However the only appearance of the date is in the filename and it has a strange format to it.
The files look like this.
ssxxxxx_uno2_090221_...
where 090221 is the date of February 21, 2009.
I can easily pull out the '090221' from the file, but what i need to do is determine the day of the year from that number. Using datevec or datestr or datenum won't work, because of the unusual formatting.
Any suggestions would be great.
Thanks in advance.
|
3/12/2010 3:05:09 PM
|
1
|
"jmeccles " <jared.ecc...@hotmail.com>
|
Simulink Error!
Hi all... i've got some problems with Simulink variables.
I try to explain my work:
in input i've got a data(matrix) in matlab (latitude, long, altitude) then, after open Google Earth, with an embedded function, move the camera...
I've just completed all my work with Matlab, all works fine... camera position, simulation...
My next step then is to use Simulink.
My problem is the seguent:
i've got a function that take variables from matlab, constants for speed/focus point camera... and all works fine.
Then i've to link all with a pack called My_GE_Camera and use a function called GE
|
3/12/2010 2:33:21 PM
|
3
|
"Shewie Ferrari" <alby...@libero.it>
|
"matlabpool close" vs "matlabpool close force" ?
Hi,
I wonder what are the differences in the effects between calling "matlabpool close" and "matlabpool close force" in two independent matlab processes running on the same machine. By the matlab document below, I thought calling "matlabpool close force" in process A would also close the child processes created from process B. But experiments show that it doesn't. Then what are the differences between these two commands?
thanks
Jeff
matlabpool close stops the worker pool, destroys the parallel job, and makes all parallel language features revert to using the MATLAB client for com
|
3/12/2010 2:27:05 PM
|
0
|
"Jeff Cen" <h...@andrew.cmu.edu>
|
Source file form stand alone GUI?
All,
I spent quite a bit of time writing my first "real" standalone GUI using matlab. Unfortunately, my computer's hard drive crashed and I lost my source (.m) files I used to creat it.
Is it possible to recover my .m files form my GUI. I found a back up of my compiled GUI but I have not been able to locate an up to date source file.
am I toast?
|
3/12/2010 2:27:05 PM
|
0
|
"cabrego " <cpabr...@gmail.com>
|
vThe lookup method: Linear_Extrap is not supported for code generation.
I am using 2009 b Matlab version for modeling. Currently i am generating code using RTW. In the model i am using a One D Look Up Table where i have declared the X and Output as integers.(Uint8). I am using interpolation.
But i am getting an error saying that
The lookup method: Linear_Extrap is not supported for code generation.
As far as i know, this error has been corrected in 2006a.
But why this problem exists in interpolation using 1 d table in 2009 b now.
Once i use floating point, this error is solved. But why it is not working for Unit8??
|
3/12/2010 2:26:02 PM
|
0
|
"Nimmy " <Nimmy.Math...@kpitcummins.com>
|
for loop help
Could someone show a basic for loop that could produce the below results?
L1.slope = [-59.3968 -56.9777 -54.7794 -51.587 -48.3138 -46.1093];
L1.int = [571.9502 566.8451 560.12 550.4008 539.3366 530.5057];
% LW is computed with above slope and intercept given measured windspeed.
L1.a = L1.slope(1:1)*v+L1.int(1:1);
L1.b = L1.slope(2:2)*v+L1.int(2:2);
L1.c = L1.slope(3:3)*v+L1.int(3:3);
L1.d = L1.slope(4:4)*v+L1.int(4:4);
L1.e = L1.slope(5:5)*v+L1.int(5:5);
L1.f = L1.slope(6:6)*v+L1.int(6:6);
LW = [L1.a L1.b L1.c L1.d L1.e L1.f];
|
3/12/2010 2:15:01 PM
|
2
|
AMK <kennas...@gmail.com>
|
image pattern recognition system
Hi, i`m a newbie in mathlab and still a student. Recently, i`ve got a project about image pattern recognition system using neural network.
my question is how can i insert the image into database?
from what i`ve read, in the 1st step i need to call the input data and my input data is the images captured using camera. I `m at lost here, don`t know where to start and if u read this, please help me.
if there are any page or document that can help my project, please let me know...
|
3/12/2010 2:09:06 PM
|
0
|
"as mohd" <tyg...@yahoo.com>
|
struct element as function input
Is there a way to assign struct elements as input into functions or is this just needless syntax? I guess the only benefit would be that instead of clearing each variable separately, one could just use "clear temp".
%% Define the meter markings markings from the DTS - refer
dr1 = 26;
dc1 = 0;
dr2 = 2093;
dc2 = 0;
temp.delim = '\t';
%% Run Fiber import function
dts_meter.(sensor_id) = import_ORYX_dts_meter(path,temp.delim,dr1,dr2,dc1,dc2);
clear dc1 dc2 dr1 dr2 temp
??? Error: File: import_ORYX_dts_meter.m Line: 5 Column: 53
Unexpected MATLAB operator.
|
3/12/2010 1:32:23 PM
|
1
|
AMK <kennas...@gmail.com>
|
Zero padding - CUDA vs MATLAB - fft2() vs CUFFT
Hi, I am trying to convert a matlab code to CUDA. In matlab, the functionY = fft2(X,m,n) truncates X, or pads X with zeros to create an m-by-n array before doing the transform.
I would like to perform a fft2 on 2D filter with the CUFFT library. I did not find any CUDA API function which does zero padding so I implemented my own. This function adds zeros to the inputted matrix as follows (from a 3X3 matrix to a 6X6 matrix):
3 X 3
1 1 1
1 1 1
1 1 1
to
6 X 6
1 1 1 0 0 0
1 1 1 0 0 0
1 1 1 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
When I zero pad the 2D filter and compute the
|
3/12/2010 12:41:06 PM
|
0
|
"Rudolph Gatt" <rudolph.g...@yahoo.com>
|
help
hi all how can i ACQUIRE data form a hardware into the matlab?
is matlab compatible to all hardware? if not in this case what shoul i do?
sincerly
rudrak
|
3/12/2010 12:31:05 PM
|
0
|
"rudrak dutt" <rdurak_d...@yahoo.com>
|
automatic flow chart diagam for Matlab
Hi everybody,
is there a way to create a chart diagram of my programm in Matlab?
As I see it all the information is allready in the profile command, so there must be a way to make a chart diagramm
thanx
|
3/12/2010 12:30:20 PM
|
0
|
"nico cruz" <m.nicolas.c...@mailbox.tu-berlin.de>
|
novice question
Hello
I have this file that I would like to read:
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
60 60 1200 2
..4 0.02 0.1 0.9 0.1
10 2.1 1 .001 .001 8 8 1 1 5 40 8 1 1 6 5 1 1 1 1 0
10 2.1 1 .001 .001 6 6 1 1 5 60 10 1 1 6 5 1 1 1 1 0
Lx Ly Lz Nlayers
Freq0 Serror Fimin Fmax Fstep
h epsr miur etan mtan Nx Ny OverX OverY hmin hmax hn hp epsmin epsmax
epsn epsp miumin miumax miun miup
------------------------------------------------------------------------------
|
3/12/2010 12:28:21 PM
|
1
|
tuli <tuli.herscov...@gmail.com>
|
numbers
if I have a function called "numbers.m":
function list = numbers (a, b)
How can I let MatLab give all numbers between a and b?
So when I type "list = numbers (2, 5)", I want MatLab to give:
2
3
4
5
Anyone knows how to get this?
|
3/12/2010 12:08:05 PM
|
15
|
"Susan Montag" <...@werew.com>
|
GUI
Can I create a GUI and play it on a computer without MATLAB installed on to it?
|
3/12/2010 11:35:20 AM
|
1
|
"thisisme " <s.mukher...@sussex.ac.uk>
|
ODE and extracting mutiple outputs
Grateful if you can assist in extracting/returning multiple outputs from ODE function file. it goes like: U = u0tanh(bs) - grad(J), where U is the first derivative to be returned and returned sucessfully. But the problem is in returning s at the same time, which is also varying with each change in U.
Thanks
Halidu
|
3/12/2010 11:35:20 AM
|
0
|
"Halidu " <hdan4...@yahoo.com>
|
3D Matrix access in Mex files
Hello, I have an issue I am not able to overcome.
I want to create a mex file and pass to it a 3D double matrix representing an Image,
for instance inputImage[480,640,3].
I cannot understand how to access the element of the matrix inside the mex files, I have tried everything with pointers with no results at all, it always returns me 0 or random numbers.
If someone would be so gentle to help me, I will be really glad to him.
Best Regards,
Luca
|
3/12/2010 11:27:05 AM
|
2
|
"Leyart Galli" <leyart_era...@gmail.com>
|
Dobbelt integration when inner integral is ^2
I am calculating the damping force of a permanent magnet. The damping force is called F in my code. F is calculated as a dobbeltintegration over to variabels y and z1.
The problem is that the inner integral (variable z1) needs to be ^2. The integration I would like to perform looks like this:
F= constant*int(int( "(se code)",z1=-10...0)^2,y=0...1.1)
I use dblquad and It works fine, but I can only figure out how to calculate:
F= constant*int(int( "(se code)",z1=-10...0),y=0...1.1)
or
F= constant*int(int( "(se code)"^2,z1=-10...0)^2,y=0...1.1)
Will be thankful for any help /Jona
|
3/12/2010 11:27:05 AM
|
2
|
"Jonas Knudsen" <s071...@student.dtu.dk>
|
Solving a 2-Compartment model in SimBiology
Hiya,
I'm looking for a way to solve the following problem. I have data from two compartments, but don't know the transfer functions between them. They are rate limited. There is a bolus injection to the system and a sink.
If the sink had an assumed rate, how would one go about getting the transfer coefficients between the two compartments? Would SimBiology be the best way to do this, if so can anyone provide examples / code to help?
Thanks all
|
3/12/2010 11:12:05 AM
|
2
|
"Whelmed Morofke" <m...@rogers.com>
|
3 parameter data handling
hi,
I am working with long pair of data. For example, I have time and amplitude data.
I would like to find the parameters (a, b, and c) that minimize the value of
sum[(amplitude - (12*a*time^2 + 9*b*time + 5*c))^2]
I used the following syntax but find an error saying that the b parameter is not defined (i cut the length of data to only 3):
time = [0; 1.5; 2.7];
amplitude = [2.72; 3.1; 5.9];
for m = 1:3
term(m) = {@(a,b,c)(amplitude(m) - (12.*a.*(time(m)^2)...
+9.*b.*time(m) + 5.*c))^2};
end
total = @(a,b,c) sum(cellfun(@(f) f(a,b,c), term));
[x,fval] = fminsear
|
3/12/2010 10:54:22 AM
|
2
|
"soeman S" <si_di...@yahoo.com>
|
how to judge if an arc of a great circle crosses a quadrangle and calculate the positions of the intersects of on a sphere surface
The story below happens on Earth surface.
There is an arc of a great circle (AB), the two endpoints of which are placed at (latA,lonA) and (latB, lonB). Beside, there is a quadrangle. The latitude and longitude of the four vertices (V1,V2,V3,V4) of the quadrangle are also known. The edges (e.g. V1V2,V2V4,...) of the quadrangle all lie on great cirles. Then, how can I know if the arc AB crosses the quadrangle and calculate their intersects?
|
3/12/2010 10:43:07 AM
|
5
|
"Ha " <scifi...@126.com>
|
xpcGetElapsedTime causes a system crash
I have to determine the time since system boot every time the ISR comes up. I use the function xpcGetElapsedTime to give me this time, but the xPC Target crashes when I call xpcGetElapsedTime(NULL) the first time in the ISR.
Cannot I not use this function in an ISR?
|
3/12/2010 10:35:23 AM
|
1
|
"Eric " <egtbo...@yahoo.co.uk>
|
problem with opening a *.fig file
Hello,
I wrote a program with a GUI. I also made a button for saving the plots as a *.fig file. When I open the saved *.fig file, Matlab opens the import wizard (size= 1267x1894x3 and the class= uint8). When I click on the finish button the data is loaded in the workspace.
The figure I saved was a polar plot. What can be the problem? The size of the matrix?
Thanks
Steven
|
3/12/2010 10:33:52 AM
|
3
|
"Hermano Cappa" <cappaste...@gmail.com>
|
Paper currency recognition using hidden markov model
I am about to do a research on paper currency recognition using hidden markov model.
I wonder if someone can help me out to find some references; things I need to learned.
And how to implement the theory of hidden markov model to Matlab environment?
Thank You.
|
3/12/2010 10:15:09 AM
|
0
|
"david tampubolon" <davids...@gmail.com>
|
plot a shape-preserving interpolant to XY
Dear all,
I wish to fit and plot a shape-preserving interpolant line to my XY data points, and only display the fit on the plot - not the XY data.
This is possible by first plotting the data and using a white maker, followed by basic fitting from the Tools menu. But what I am really after is a way of automating this step by building such a procedure into my own m-files.
Generating an m-file from my figure results in an error messages that makes no sense to me: "pvpmod needs either a structure of a cell array with parameter/value pairs"
I also tried to follow the help file on the
|
3/12/2010 10:08:06 AM
|
0
|
"Matthias " <matthew.godd...@bcf.uni-freiburg.de>
|
Change length of legend line sample?
Is there any way in MATLAB to reduce the length of the line sample, as it is with i.e. Gnuplot (set key samplen 'sample length')?
When I search in the product help I find examples for changing almost everything else, but can't find anything about this.
|
3/12/2010 9:54:05 AM
|
4
|
"drgz " <syre...@hotmail.com>
|
running time
Hi i have a formula i.e.
T(t)=Ta+(To-Ta)exp(-A*t(time))
I want to use the actual simulation running time as t. All other values are constant. Can anybody help me how can i do that in C++ editor?
Thanks in advance.
|
3/12/2010 9:51:05 AM
|
0
|
"Zia " <ziagem...@hotmail.com>
|
multiple variables in if condition in mat lab
Hello sir,
Could you just tell me how to rite multiple variables in if condition in matlab, one's could you just check below code
if val1 == 4 || val1 == 5 || val1 == 0 && val2 == 1 && val3 == 6 || val3 == 2 && val4 == 1 && val5 >= 25 && val5 <= 32 || val5 >= 120 && val5 <= 130 && val6 == 1
at = 4;
end;
i am waiting for your solution, kindly help me
thank you
|
3/12/2010 9:43:05 AM
|
1
|
"Aditya Sundar" <...@anits.com>
|
Get the name of the .mat file that I want to import from gui into the workspace
Hello!
I have a GUI interface in which I put a button. When I push the button I am importing a .mat file using the command:
uiimport('-file')
Then I want to get somehow the name of the .mat file that I have imported, and I don't know how....
Can anyone help me with some tips?
Thanks in advance!
Alex
|
3/12/2010 9:31:05 AM
|
1
|
"Teodor " <teodoralexan...@yahoo.com>
|
What type of math is this?
I recieve this puzzle yesterday, and i just cannot seem to get it, but i am not sure if it math or just a brain teaser. Any help i would appreciate it.
2 9 9
0 3 3
9 6 6
The answer to the puzzle is 259. You go row by row, left to right. Whatever row you are in is the base. So you see if there are any numbers that match in the base row.
There are 2 9 in row 2 & 3. So you highlight them along with the 9 in the base row. You add the numbers under the 9 in row 2 and 3, which gives you 18. Now you go back to base row, there is a 02 over the 9. You add 2 to 18 which give 20. Drop the zero
|
3/12/2010 9:28:56 AM
|
3
|
earl badger <badger...@yahoo.com>
|
[Urjent help]how to draw box around detected object in runtime video from webcam?
Hi, i can working on a object detection project. I already finish the program to detect the object in still picture and mark it. Problem is how to do it in runtime video from a webcam. I know how to take a input form a webcam and show it, just not able to integrate two of those parts.
If anyone know this solution please help!
|
3/12/2010 9:17:02 AM
|
0
|
"Sisir Kanti" <prionkor.busin...@yahoo.com>
|
Make error:Making simulation target
I have used a embedded matlab function block in simulink, before that it was running properly, but after inclusion of this block, the error 'Make error:Making simulation target' occurs. I also run mex -setup. but, The error is still there. plzz help me how to correct the error. I am working in onject tracking from video images. And the i/p stream which I was giving, it's with fixed no. of frames/sec.
|
3/12/2010 8:50:24 AM
|
0
|
"Debarati " <debarati_...@yahoo.com>
|
Bollywood Latest Pictures movies
Bollywood Latest Pictures movies
Latest Movies Download
Kareena Kapoor Pictures and videos Katrina Kaif Pictures Download
All In One Blog Download Free Videos
http://hotbyhot.blogspot.com/
|
3/12/2010 8:40:30 AM
|
0
|
kathar008 basha <kathar...@gmail.com>
|
Error: Unexpected MATLAB expression
Hi,
I'm a newbie to Matlab. Can someone tell me why this simple Antenna Array Factor pattern program keeps on giving me "Error: Unexpected MATLAB expression." error when I try to run it? Thanks!
--------------------------------------------------------------------------------------------------------------------
theta=0.1:0.01:2*pi; % Elevation Angle in radian
lambda=1; % Wavelength in meter
beta=2*pi/lambda; %Propagation Constant in radian/meter
d=lambda/2; %Array element spacing in meter
f=1/3*(1+2*cos(beta*d*cos(theta)));
polar(theta,f.^2)
hold on
legend('Example')
|
3/12/2010 8:33:05 AM
|
6
|
"Will Wang" <willwestw...@gmail.com>
|
vibration analysis of sheller machine
Hello All,
I am working with vibration analysis of sheller machine(a machine used in rice mills).I have to take the vibration data from this machine & its analysis part will be using data acquisition & signal processing tool box.I am using vibration sensors to take the machine vibration but i am having problem in inserting this data into matlab environment.How can i take this data through line in port into the analog input block of simulink.
|
3/12/2010 8:19:05 AM
|
0
|
"aparna Karwal" <ritikavas....@gmail.com>
|
MCR Compiler - Message: Cannot find imreconstructmex.mexw32
Hello,
I compiled an m-file, using the MCC compiler.
Furthermore I installed the correct compiler on the computer which has no Matlab on it.
Only, when I run the exe file on the computer with only the MCR compiler on it, I get the message that the module \images\private\imreconstructmex.mexw32 can not be found.
I have installed the 7.11 version of MCR.
Does anyone know how to solve this problem?
Thanks in advance.
|
3/12/2010 8:09:05 AM
|
0
|
"Els " <y.e.t.reeuw...@student.utwente.nl>
|
Change length of legend line sample?
Is there any way in MATLAB to reduce the length of the line sample, as it is with i.e. Gnuplot (set key samplen 'sample length')?
When I search in the product help I find examples for changing almost everything else, but can't find anything about this.
|
3/12/2010 8:07:07 AM
|
1
|
"drgz " <syre...@hotmail.com>
|
select whole row in cell array
Hi, i Have a cell array that is 6x 7 in dimension with a mix of stuff in each of the cells
How do i extract a whole row from the cell array
i thought it would be
a = cellarray{3,:}
but this does not give what i want
any ideas?
|
3/12/2010 7:59:07 AM
|
1
|
"Fraser Dickson" <fraser.dick...@gmail.com>
|
go back to a certain line within a script
is it possible to make matlab return to the start of the script.
forexample my script will say please try again.
at this point i would like it to go back to a certain line where the user will input.
i tried to type run samemfile
but i get an error.
thankyou
|
3/12/2010 7:41:08 AM
|
0
|
"John " <merehz...@yahoo.com>
|
Matlab homework help!
The assignment is to make a script that will let the user input a month such as 'January' or 'Jan' and have the output be something like 'The month is 1.' (For Feb, 'The month is 2.' and so on...)
The instructions says to use if...elseif and it also told me to use the help function to find a way to compare strings.
Here is what I've gotten so far:
Please let me know what I'm doing wrong and nudge me in the right direction! I'm not asking anyone to do my homework for me, just a bit of help! Thanks.
%%%%%%%%%%%%%%%%%%%%%%
input('Enter Month Name: ');
if January =='Month';
strcmpi(
|
3/12/2010 6:13:02 AM
|
6
|
"Sarah " <proper...@yahoo.com>
|
Data manipulation in text file
Hi I have a text file as which I have to read and edit only a single or 2 columns and save it again with the same name.example
1 3 5 6 7
2 4 8 11 12
2 3 6 7 13
........................ It goes like this for hundreds of columns. I need to read 3rd column only and subtract 1 from all the elements in that columns such that only that column is changed in new text file. I tried the command like this..
file1='C:\a1.txt'
fileid=fopen(file1,'r')
A=fscanf(fileid,'%f')
(don't know the command here)
file2='C:\anil\data_40.3125_-105.9375'
ofid=fopen(file2,'w')
fprintf(
|
3/12/2010 4:59:07 AM
|
3
|
"sagar poudel" <acharya_a...@yahoo.com>
|
how to input variable wind speed into discrete type wind turbine model?
hello everyone,
i am doing a project on simuation of variable speed dfig wind turbine. i have got a data of wind speed at my place which is not a constant value. i have to simulate the turbine for that variable wind speed. is there any way to input variable wind speed to that block? please help me asap.. :)
|
3/12/2010 4:46:04 AM
|
0
|
"yaswanth raparti" <raparti.yaswa...@gmail.com>
|
Mahalanobis distance between 2 distributions
How can I calculate the Mahalanobis distance between 2 distributions given in matrices X & Y. The mahal.m command gives the distance for each observation (line of X) to the distribution Y and this is not what I want. I want to get the distance between the 2 distributions rather - any already implemented command or option in mahal.m that I overlooked ?
|
3/12/2010 4:38:02 AM
|
1
|
"kais " <gadhou...@yahoo.ca>
|