Community Profile

photo

Don Zheng

MathWorks

Last seen: alrededor de 1 año ago Active since 2016

I work with MathWorks. Before joining MathWorks, I studied transportation engineering (a major branch of civil) and computer sciences in the University of Wisconsin-Madison, owning a PhD and a Master's Degree in these areas, respectively.

Statistics

  • Knowledgeable Level 2
  • First Answer

View badges

Content Feed

View by

Answered
How to Create a Static Legend for a Dynamic Axes
Try setting the XData/YData/ZData properties of the plots rather than calling 'plot'/'plot3' each time in the loop. For example:...

alrededor de 4 años ago | 1

| accepted

Answered
Image Analysis on stars/streaks in sky
Try <https://en.wikipedia.org/wiki/Principal_component_analysis Principal Component Analysis> and the width should be proportion...

alrededor de 4 años ago | 0

Answered
Houghlines output does not match rho theta?
Use 'cosd' and 'sind' instead of 'cos' and 'sin', respectively, in your code.

alrededor de 4 años ago | 2

| accepted

Answered
Usefulness of "organized point cloud"
Quoted from <http://pointclouds.org/documentation/tutorials/basic_structures.php PCL> " _An organized point cloud dataset is ...

alrededor de 4 años ago | 0

Answered
timeseries array into bps stream
You may consider using a <https://www.mathworks.com/help/simulink/sfg/writing-level-2-matlab-s-functions.html Level-2 MATLAB S-F...

alrededor de 4 años ago | 0

| accepted

Answered
imfreehand cursor doesn't match selection
Try putting a 'drawnow' command before the 'imfreehand' call: drawnow coords = getPosition(imfreehand('Closed',0));

alrededor de 4 años ago | 0

Answered
ST Nucleo detection error Simulink
Will the following steps help? 1. Open the MATLAB version with the support package. 2. In the MATLAB command line, run the...

alrededor de 4 años ago | 0

Answered
Most convenient way to access variable typed input signal
Consider using 'ssSetInputPortRequiredContiguous' to require signal elements entering a port to be contiguous and then you might...

alrededor de 4 años ago | 0

| accepted

Answered
Simulink SPI comunication beaglebone black
Unfortunately, at this time Simulink does not have blocks for SPI built in to the Simulink Embedded Coder support package for th...

alrededor de 4 años ago | 1

Answered
MATLAB Simulink errors: can not save, hangs on analoginput insertion, stateflow initializaiton failed
You might need to talk to your license administrator to renew the license for Simulink, Stateflow, and Data Acquisition Toolbox....

alrededor de 4 años ago | 0

Answered
How to generate Hierarchical C codes using Embedded coder?
Make each block a model reference and in the generated code, each model reference block should have their own .h/c files.

alrededor de 4 años ago | 0

Answered
plot the Error without phase shift
Error magnitude (pic4) seems consistent with the aligned plot (pic3). For precise synchronization, you need a time stamp for ...

alrededor de 4 años ago | 0

Answered
Iterating through library of text files (for use with Matlab CODER)
Try changing for file = lib_files' to for i = 1:numel(lib_files) file = lib_files(i);

alrededor de 4 años ago | 0

Answered
Simulink Desktop Real-Time advices
You might need Simulink Coder for external mode execution. <https://www.mathworks.com/help/sldrt/low-sample-rate-simulation.htm...

alrededor de 4 años ago | 0

Answered
Can we write a Matlab script to automatically draw and position super transitions.?
<https://www.mathworks.com/help/stateflow/api/making-supertransitions.html>

alrededor de 4 años ago | 1

Answered
using kinect xbox one camera
First of all, "vid.FramesAcquired<=500" stops when 500 frames are acquired, not 100. FrameGrabInterval only controls how many fr...

alrededor de 4 años ago | 1

Answered
Position based image stitching
Declare an image with the final size and register each of the four images according to your layout to the final image.

alrededor de 4 años ago | 0

Answered
How do I know what is the problem with "stereoParams" output from Stereo Calibration Tool ? The output of rectifyStereoImages are black images
Make sure that 'frameLeftRect' and 'frameRightRect' are expected rectified images and 'imshow'able separately. Also, make sure t...

alrededor de 4 años ago | 0

Answered
How to know which input will switch block pass programmatically?
Try reading the second input port value to decide whether the condition is met: <https://www.mathworks.com/matlabcentral/answer...

alrededor de 4 años ago | 0

| accepted

Answered
Viewer\Scope\layout problem with 2017a
You need to connect/disconnect the signal to/from the display(s) of the Scope Viewer. Right click the blue Scope Viewer icon on ...

más de 4 años ago | 1

| accepted

Answered
Simscape Matrix input for lookuptable from file or workspace
Which lookup table block are you referring to? Normally, you just need to put the name of the matrix in the block's parameter di...

más de 4 años ago | 0

| accepted

Answered
Viewer\Scope\layout problem with 2017a
It is working well on my R2017a. Do you have an example model showing this problem?

más de 4 años ago | 0

Answered
How can I put some specific pages in landscape view in my report generated with the simulink report generator tool ?
1. Follow this page to create a custom Direct PDF (DOM) template from the "Default PDF Template". <https://www.mathworks.com/he...

más de 4 años ago | 1

| accepted

Answered
Data Transfer via UDP between Simulink and X Plane
Assuming you are using the <https://www.mathworks.com/help/instrument/udpreceive.html UDP Receive block> from the Instrument Con...

más de 4 años ago | 0

Answered
How to find "Index exceeds matrix dimensions" error in Simulink
By MATLAB v. 15, I assume you meant R2006a. Can you try the model in a recent release, e.g., R2017a? In the newer version, there...

más de 4 años ago | 0

Answered
How can I insert an object for my joystick to avoid?
By adding obstacles to the interface I assume you meant adding objects into the 3D world. In that case, you can only do it manua...

más de 4 años ago | 0

Answered
How can I set a callback for mouse clicks on an image?
Replacing the following line image(A); with the following lines im = image(A); im.ButtonDownFcn = @axes1_ButtonDow...

más de 4 años ago | 1

| accepted

Answered
TX/RX Pulses using frame based processing with USRP radio in Simulink?
Can you use the product of the Pulse block and the Sine Wave block?

más de 4 años ago | 0

Answered
Explanation of "The BIT input is out of range for the datatype specified"
This is a very generic error indicating that the data is out of the specified range. Can you try reducing the model and identify...

más de 4 años ago | 0

Answered
how to correlate 3D volume images (spatial 3d matrix correlation)
Can you explain more about what you referred to as the correlation map in the code? The 'corr3D_1' variable? Is the center el...

más de 4 años ago | 0

Load more