First  |  Prev |  Next  |  Last
Pages: 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561
very short question array manipulation
Hi there, I want to do something simple but turned out to be a headache for me. I have the array for example a=[2 5 5 8 8 8 9 16 16 20]; I want to come up with array b=[1 2 2 3 3 3 4 5 5 6]; I think it is clear. Array a will always be sorted with positive integers. Array b will be sorted too,with positive... 4 Jun 2010 14:45
Problem about controlling Pan and tilt of Logitech Orbit webcam
Dear all, I have a Logitech QuickCam Orbit AF (Model: V-UCC22) try to control the pan and tilt in Matlab. I try to use the following code to do so but it doesn't work: vid = videoinput('winvideo',1); src = getselectedsource(vid); src.pan = 30; src.tilt = 30; The values of src.pan and src.tilt change but not... 4 Jun 2010 12:33
Properly control for web camera
Dear Vova, I have a Logitech QuickCam Orbit AF(Model: V-UCC22) try to control the pan and tilt in Matlab using your code. I have Pan and tilt, but not TiltMode and PanMode in src. So I can't control the pan and tilt of my camera. I am using Windows 7, Matlab R2009b and logitech driver. Do I need to install additi... 4 Jun 2010 12:32
How to add an overall title to subplot
Hi, I was wondering if it were possible to label an entire subplot plot. For example, if I have a plot with 4 subplots, I can put titles individually on each subplot, but how can I add a title (or text) that is on top of all the subplots? Thanks! -Steven ... 4 Jun 2010 19:11
Extract data from cell using matrix of index points
I have an index_matrix of index points and has ten index points, so the length is 10. I have a 10x3 cell that contains 10 matrices/column of length 9000. I would like to use the index_matrix to find the corresponding values in the cell. That is, each index point corresponds to the same row of cell matrix. For ... 4 Jun 2010 12:33
Saving and Loading Objects from Class Hierarchies
Hi, I am trying to build a class that inherits from another class, in which both classes have the ability to save objects. The superclass code is as follows: classdef exclass properties value end methods function obj=exclass(in) obj.value=in; end fun... 4 Jun 2010 11:25
How do you force decimal output?
How do you force answers to be displayed in decimal format instead of as a fraction? Here is an example syms CD cross(ac,CD*Ucd) ans = [ (23089284507395629*CD)/144115188075855872, (43129010120971187*CD)/450359962737049600, (14811997678849777*CD)/56294995342131200] Eval often works but not always, eval(an... 4 Jun 2010 11:25
[SIMULINK] can i use buffer and unbuffer for RTL generation?
as per subject i wonder if this is possible, i.e a frame based model with variable rates can be used for RTL generation thanks ... 4 Jun 2010 11:25
Trouble with hilbert()
Hi, I need to calculate the hilbert transform of a signal, and I don't know how hilbert() works so I read the help and I tried to compute the hilbert of sin(x), which is supposed to be an inverted cos(x). Here's my test code: close all; clear all; fs=1000; T=1/fs; n=-10:T:10; y=sin(n); figure(1); pl... 4 Jun 2010 11:25
if statement to read part of a file name
Hi, I'm trying to write an 'if' statement that skips out a certain file with 'eng' contained within the file name during a loop processing a series of files with different names. I basically want it to say: if 'eng' is part of the filename then do not conduct the process for that file... I assume 'continue... 4 Jun 2010 11:25
First  |  Prev |  Next  |  Last
Pages: 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561