Answered
MATLAB Based ROS Car
You likely want to implement your model using the Ackerman steering model: <https://en.wikipedia.org/wiki/Ackermann_steering_geo...

8 years ago | 0

Answered
Stateflow Truth Table Advisory Warning
I'd suggest reaching out to MathWorks technical support and flagging this as a bug. I wouldn't think that the MAAB standards...

8 years ago | 0

| accepted

Answered
Suppose you have a 2d matrix M. And you have certain indexes where the data is not good.SO you want to fill those indexes by the nearest existing value.Can regionfill be used for this
You can use |fillmissing|: <https://www.mathworks.com/help/matlab/ref/fillmissing.html> >> x = [7,8,NaN,5,9,45,43,23,34,NaN...

8 years ago | 1

| accepted

Answered
Run Simulink repeatedly from Matlab
The best approach is to use Fast Restart simulation: <https://www.mathworks.com/help/simulink/ug/fast-restart-workflow.html> ...

8 years ago | 0

| accepted

Answered
How to run Simulink with all possible permutations of variables
Where are these variables used in your Simulink model? If they are simple parameters, e.g., the value of a Gain block, you s...

8 years ago | 0

Answered
How to parameterize hydraulic valve with given manufacturer data sheet current vs flow rate?
The directional valve blocks have a *Model Parameterization* option in their dialogs. Two of those values let you enter your own...

8 years ago | 0

| accepted

Answered
How to count number of blobs/person in a frame by frame video
Have you seen this example? <https://www.mathworks.com/help/vision/examples/motion-based-multiple-object-tracking.html> - Seb...

8 years ago | 0

Answered
Why can't I see my model in simulink simulation?
This means the STL file isn't on your MATLAB path. The simulation still works because with STL geometries you have to manually d...

8 years ago | 1

| accepted

Answered
Can microsoft excel data (.xls) import to model simulink?
There is a "From Spreadsheet" Simulink block: <https://www.mathworks.com/help/simulink/slref/fromspreadsheet.html> ... or if ...

8 years ago | 0

Answered
how find occorrences of words in a cell array
You can use the |strcmp| (string compare) function to search for matches with a particular word. Then, you can use the |nnz| (nu...

8 years ago | 1

Answered
hello everyone, how do i count the white pixels of a image after setting the threshold
I'd use the |nnz| (number of non-zeros) function: imA =imgray1>66; numPixels = nnz(imA); - Sebastian

8 years ago | 0

| accepted

Answered
If a value in one matrix matches that in another matrix, how do I assign the same index number?
Sure you can. You can use the |find| function to find the index at which the 2nd and 3rd column match, and then copy the element...

8 years ago | 1

| accepted

Answered
Where can I find the callback function PreLoadFunc in Simulink?
Go to *File > Model Properties > Model Properties*, then go to the *Callbacks* tab. You should find all the model callbacks ...

8 years ago | 2

Answered
Randomly changing elements in an array to NaN's using a for loop
I ran through this for one column. A while-loop worked for me The basic algorithm is: # Generate a random index # Check i...

8 years ago | 1

Answered
fmincon in MATLAB Function block (SIMULINK)
As the error message suggests, you can't use function handles (i.e. the |fmincon| cost function) as an argument to an extrinsic ...

8 years ago | 1

| accepted

Answered
Export Mechanics Explorer Video
There should be an icon on the Mechanics Explorer that looks like a Film Roll, which points to the Video Creator. There is also ...

8 years ago | 0

Answered
How can I model the following function, f(t) in simulink?
I'd use a Clock block to generate the time signal, and then stick that signal through a MATLAB Function block that implements yo...

8 years ago | 1

Answered
Gazebo/ROS: Publishing to Set Model State, problem with strings and bus assignment
Working with strings in ROS/Simulink takes a little getting used to. You need to supply a vector of |char| (or |uint8|), as well...

8 years ago | 0

Answered
How to set the population same as the initial population in GA toolbox?
You can set this up with |optimoptions|... namely, the |InitialPopulationMatrix| field of that structure. For example, if you wa...

8 years ago | 1

Answered
How much control does matlab have over powerpoint?
The entire set of MATLAB PowerPoint API features is documented here: <https://www.mathworks.com/help/rptgen/update-powerpoint...

8 years ago | 0

| accepted

Answered
Can Simscape Electronics give the transfer function of a filter in closed form solution?
If you have a set of input/output *Simulink* signals that you can designate, you can use Simulink Control Design to linearize th...

8 years ago | 0

Answered
What (%.5g\n) does mean?
The format string will indicate the display precision -- up to 5 decimal points. What you're asking is to actually divide the...

8 years ago | 0

Answered
Problems in reading rosbag message type
What do you mean by "cannot get data"? Do you have an error message or does your code run fine without an error? I think ther...

8 years ago | 0

Answered
why eye(3)'s and eye(3)'s row,coloumn number are equal ?
This is intended behavior. If you enter one argument, it will automatically build a square matrix. If you're looking to do a ...

8 years ago | 1

Answered
Obscure state space variables of a synchronous machine (generator) 'State-Space(1)...State-Space(12)': What are they exactly? What do they mean?
If you do this from the Linear Analysis app, you can view the linearization results and highlight the blocks. See, for example, ...

8 years ago | 1

Answered
Matlab ROS subscriber basic example
If you try to echo the /odom topic on the Turtlebot and in MATLAB (same syntax), do you see any messages? rostopic echo /od...

8 years ago | 1

Answered
callback simulink library StopFcn
Hello! I have put your question through Google Translate -- I hope an English answer is fine... Mask variables are, by design...

8 years ago | 1

| accepted

Answered
Need help with the boost converter simulink model (average model).
It could potentially be that switching from PWM to Average mode is messing with the sample rate of your P&O MATLAB Function bloc...

8 years ago | 1

Answered
Approximation of 3D points with a 3D curve (path smoothing)
This isn't really a MATLAB question, but this is typically done with minimum snap trajectories. See the paper at <http://www-...

8 years ago | 0

Answered
Is there any clear procedure to link between matlab and refprop, please help guys?
Looks like the above Web page doesn't work anymore. I was able to find these examples on their GitHub page: <https://github.c...

8 years ago | 1

Load more