comp.soft-sys.matlab - The MathWorks calculation and visualization package.
Hi, I am using campos and camtarget to define the viewing axes and volume, whenever these these two properties are reset, the whole scene will be rotated and traslated in the way that the viewing axis is perpendicular to the screen, and only the part of scene which is out of the view volume will be rendered, but when I rotate the scene, I can still see all of it. what I want is that whenever I rotate the scene, or look at it from top, I only see the part which is infront the camera and clip whatever located behind that camera position. Could any one help? thanks in advance Iman
Okay, I have a question for the group: I've got a A/D converter pulling data from one of our instruments, and we're reading it in over the serial port. The data is all 8-bit unsigned int, range 0-255 inclusive.... I'm dealing with vectors that contain between 1 and 2 million samples total. *However*, due to an issue in the A/D converter, we're getting repeated 'spikes', of sorts, about every 2000 samples. If we subtract 127 from each element of the data vector (to recenter it around zero), the meaningful part of the signal is generally confined between +/- 50. My question is this: is there an elegant, vectorized way of setting any element outside that range to zero? Right now, we're doing the brute-force forloop method, but we'd like to expand to 5 million data points in the vector, and any time we save would be a benefit. Thanks for your time, and replies to the group-- email address goes nowhere. - Bill Blum, Wright State Univ.
Hi, I am relatively new user of Matlab and have been searching and searching for a way to clip a 3D surface (produce by surf from a matrix) to specific X Y coordinates. The Z values correspond to genetic distance values and the X Y coordinates to actual geographic locations. I need to clip the surface so that it represents the values only across the sampled region (which is irregularly shaped). I saw a past thread concerning how this can be done along the Z axis, but nothing along the lines of C Y points. It seems to me this might be a common need, but so far no luck. Can anyone recommend a function or approach? Thank you!
OK, hoping there is a way to do what i'm trying to do... I'm drawing 3D surface which covers the theoretical limits of operation for a component. Lets assume that the original X,Y,Z matrix is rectangular, and Z is Power. I now want to apply practical constraints to this same plot...say, not being able to run when power is greater than A or less than B. The easy way is to work through the array, and make Z=0 when A>Z<B. But, the surface plot then draws a surface at zero and color codes accordingly. Additionally, if the data point adjacent to the zero is significantly different the plot shows as a cliff or wall-like ledge with a flat plane a the zero point... I can't resize the array, because the constraints maybe crossed anywhere. Is their a way to clip a mesh?. Say, plot all points where Z not equal to 0, but not have it interpolate between zero and the adjacent value? Thanks in advance.