Skip to main content

Posts

Showing posts from December, 2021

Stretch the dynamic range of the given 8-bit grayscale image using MATL...

Is it possible to ignore the dropped packet/frame error during

Is it possible to ignore the dropped packet/frame error during acquisition from a GigE Vision camera? I am using a GigE Vision compliant camera with the Image Acquisition Toolbox GigE Vision adaptor.   Occasionally, I get a an error related to a dropped packet / frame and the image acquisition process stops: ERROR: gige: Block/frame 24 is being dropped because a lost packet is unable to be resent. There are several possible causes for packets being lost. See the troubleshooting information in the "Configuring GigE Vision Devices" section of the Image Acquisition Toolbox documentation. Is there a way to catch this error, or is there a way to ignore the dropped packet / frame and continue acquisition?   NOTE:- Matlabsolutions.com  provide latest  MatLab Homework Help, MatLab Assignment Help  for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy

How to install NI-IMAQ 4.6.4 driver on machines that do not have MATLAB?

  How to install NI-IMAQ 4.6.4 driver on machines that do not have MATLAB? NOTE:- Matlabsolutions.com  provide latest  MatLab Homework Help, MatLab Assignment Help  for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research. For some reason, NI-IMAQ 4.6.4 driver is not available for download from NI's website. The driver is automatically installed with the Image Acquisition Toolbox Support Package for National Instruments® Frame Grabbers.  But installing the support package requires MATLAB to be installed on the machine.  The two options for installing the NI-IMAQ 4.6.4 driver on machines that do not have MATLAB installed are: Option 1:   NI-IMAQ driver/library is included with the "NI Vision Acquisition Software" package, which can be downloaded from NI's websi

Speech Command detection in audio file

I need to remake  "Speech Command Recognition Using Deep Learning"  example so I can read audio  from the wav file  and get time intervals in which the command appears, but I don't know how to change real-time analysis from microphone into static file analysis in this example.  Thank you for your help. %% Detect Commands Using Streaming Audio from Microphone % Test your newly trained command detection network on streaming audio from % your microphone. If you have not trained a network, then type % |load('commandNet.mat')| at the command line to load a pretrained network % and the parameters required to classify live, streaming audio. Try % saying one of the commands, for example, _yes_, _no_, or _stop_. % Then, try saying one of the unknown words such as _Marvin_, _Sheila_, _bed_, % _house_, _cat_, _bird_, or any number from zero to nine. %% % Specify the audio sampling rate and classification rate in Hz and create % an audio device reader that can read audio f

Antenna toolbox: Radiation pattern for linear array yields

  Antenna toolbox: Radiation pattern for linear array yields different results when same array is modeled as conformal   I have a simple 6 element array of z-oriented dipoles, where the array is aligned along the x axis. I modeled this array as either a linearArray or a conformalArray. Yet, when I compute the radiation pattern for the phi=90 plane (i.e. the y-z plane that cuts perpendicularly the array axis), I get vastly different results depending on whether I use linearArray or conformalArray. The unexpected result appears in Fig. 5 of the attached M file.   The strange thing is that intuition and running other functions (i.e. patternMultiply, arrayFactor) suggests that the pattern should be very low everywhere, due to the symmetry of the array. I even plotted the excitation currents on both arrays and they are practically identical (relative error < 1e-9) for linearArray vs conformalArray, so how can the radiation patterns be different? Is there some internal Matlab magic going

How can I insert live video into a MATLAB GUI using Image Acquisition Toolbox?

  I am making a Graphical User Interface, and I would like to insert live video from my camera into an axis in my GUI using Image Acquisition Toolbox. Essentially, I would like to have the functionality of the PREVIEW function within my GUI. NOTE:- Matlabsolutions.com  provide latest  MatLab Homework Help, MatLab Assignment Help  for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research. The PREVIEW function has a second input argument which allows you to specify a handle graphics image object where the video will be displayed.   More information on how to set this up is available in the documentation:   Previewing Data :: Introduction (Image Acquisition Toolbox)   If you are using a previous version, read the following:   Here is an example of a GUI that offers the ability to u

get upper and lower limit from imcontrast

  I'm using imcontrast to adjust the histogram of one image, once I'm satisfied with the result, I would like to apply the same transformation to a set of images. I'm using multiple callbacks so the Idea is to get the limits pass it on to the next callback and use imadjust to do the operation. here is my code so far   if true function adjust_contrast_Callback(hObject, eventdata, handles) axes(handles.axes1); h = imshow(handles.I); dbh = imcontrast(handles.figure1); set(dbh, 'CloseRequestFcn', @(s,e)getValues(s)) waitfor(dbh); I = get(h,'CData'); handles.I = I; imshow(handles.I); end %the callback function for when the user closes the imcontrast window function getValues(dbh) window_min = str2double(get(findobj(dbh, 'tag', 'window min edit'), 'String')); window_max = str2double(get(findobj(dbh, 'tag', 'window max edit'), 'String')); contrast = [window_min window_max]; handles.contrast = contrast; I'

Why is my DCAM (IEEE-1394) FireWire camera not

  Why is my DCAM (IEEE-1394) FireWire camera not recognized by the Image Acquisition Toolbox? I am using a DCAM (IEEE-1394) FireWire camera with the Image Acquisition Toolbox. However, the toolbox fails to recognize my camera. NOTE:- Matlabsolutions.com  provide latest  MatLab Homework Help, MatLab Assignment Help  for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research. The Image Acquisition Toolbox supports connections to IEEE-1394 (FireWire) DCAM-compliant devices using the Carnegie Mellon University (CMU) DCAM driver. If the toolbox does not recognize a DCAM camera connected to your computer, most likely the camera has not been configured to use the CMU DCAM driver.   The supported version of the driver is shipped with MATLAB and can be located in the following directory:

Narrowband beamforming in transmission

  Hi everybody. I am studying at university the concept of beamforming and I would like to design a simple beamformer in matlab/simulink for a  transmitting system . I am studying matlab documentation, but it sems to me that the most of the exampes and functions are specifics for a receiving system. Can anyone please help me to understand how to implement it? For now, it should be just a very simple system, e.g. linear or cirular antenna array with few sensors and using as signal to transmit a sine/cosine or something like that. NOTE:- Matlabsolutions.com  provide latest  MatLab Homework Help, MatLab Assignment Help  for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research. In the direction of yor transmitted beam the waves from the different antennas have to interfere construc

How do I reach audioTestBench -> audioFileR?eader.Samp?lesPerFram?e for use in my plugin?

  I'm creating a Real-Time frame-based plugin with the System Audio Toolbox, to run through the audioTestBench. In the audioTestBench the input is set to "Audio File Reader" or "Audio Device Reader" depending on my current setup. This allows me to specify the desired number of samples per frame, a number that is relevant for the frame-based plugin code, however I'm unable to read the samples per frame into the plugin code?     Using the function "getSamplesPerFrame(audioPluginSource)" always returns the default value 256, since I'm not using "setSamplesPerFrame" to define the frame size.     So my question is, how do I reach the instance of e.g. "dsp.AudioFileReader" that is used within the UI of the audioTestBench, such that is can read the specified samples per frame within the plugin? NOTE:- Matlabsolutions.com  provide latest  MatLab Homework Help, MatLab Assignment Help  for students, engineers and researchers in Multip

How can I obtain the quantized filter coefficients as fixed-point objects in Filter Design Toolbox 4.0 (R2006b)?

  I create a filter using the FDATOOL or through command line functionality and would like the coefficients returned as fixed-point objects. NOTE:- Matlabsolutions.com  provide latest  MatLab Homework Help, MatLab Assignment Help  for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research. The ability to obtain the quantized filter coefficients as fixed-point objects is not available in the Filter Design Toolbox 4.0 (R2006b).   To work around this you can manually convert the coefficients to fixed-point objects as shown below: d=fdesign.lowpass(0.40,0.54,0.05,50); hd=design(d,'kaiserwin','filterstructure','dffir'); hd.Arithmetic='fixed'; set(hd,'filterInternals','specifyprecision'); hd.productWordLength = 16; hd.accumwordLength