已回答
why the current divider doesn't work on simulink?
Your current sensor needs to be in *series* with the resistor. If you place it in parallel, as in your screenshot, you're essent...

7 years 前 | 0

| 已接受

已回答
System Identification toolboxとSimulinkについて
Apologies that my answer is in English. I hope this is OK. If you go into the Simulink Library Browser, go to the System Iden...

7 years 前 | 4

| 已接受

已回答
Simulink ignores Query Instrument sample time
You're right that Simulink simulations run as fast as possible by default. If you want to slow this down so your instrument ...

7 years 前 | 1

| 已接受

已回答
How do you change install directory for supportpackageinstaller
There is a MATLAB preference for the add-on install folder. See this screenshot (R2017a). <</matlabcentral/answers/uploaded_f...

7 years 前 | 1

已回答
Plot loop n variables
This is happening because the syntax |A{1}| doesn't mean you're accessing a variable named |A1|. It's accessing the first elemen...

7 years 前 | 2

| 已接受

已回答
what is the difference between .mdl and .slx files and full form of mdl and slx?
.mdl is the legacy file format. Simulink models switched to the newer .slx format in 2012. Whereas .mdl files are single text...

7 years 前 | 12

| 已接受

已回答
How to split divide an array on specific sections?
You can do this with <https://www.mathworks.com/help/matlab/matlab_prog/find-array-elements-that-meet-a-condition.html logical i...

7 years 前 | 0

| 已接受

已回答
Simulink Linear Analysis Pole/Zero Plots
Based on the staircase step response, looks like your system is discrete. This means that stability is inside the unit circl...

7 years 前 | 0

| 已接受

已回答
How to implement interp2 within Simulink
There is a 2-D Lookup Table block where you can enter 2 vectors for the breakpoints and a 2-D matrix for the table data. See her...

7 years 前 | 0

已回答
Simulink - Set and use global variable for use in settings
Absolutely. All you need to do is define a variable in the MATLAB workspace, for example: >> Vcc = 5; ... and then any b...

7 years 前 | 1

| 已接受

已回答
Writing Penality function in GA
You can use the |gamultiobj| function to pass in both your penalty functions separately. <https://www.mathworks.com/help/gads...

7 years 前 | 0

已回答
Transition condition of Stateflow as Parameter
Yes, this approach does work. If you create data in Stateflow, you can set its "Scope" to "Parameter". When you update t...

7 years 前 | 0

已回答
Long initializing time when using the Robotics System Toolbox
Hi Benedict, There was a bug with |rosinit| initialization times in R2017a, specifically for Windows 10 machines (is that wha...

7 years 前 | 1

| 已接受

已回答
Where can i get all programatic options to access Simulink data inspector
Under the Simulink documentation, there is a list of all functions. In particular, there is a "Simulation -> View and Analyze Si...

7 years 前 | 1

已回答
Using Robotics Toolbox in Simulink with Multiple Robots
Actually, the multiple ROS master support only works for MATLAB workflows, and not Simulink... In MATLAB, you can create mult...

7 years 前 | 0

已回答
infinite while loop in MATLAB code
What stops you from putting the contents of multiple loops in a single while-loop? Another option is to use <https://www.math...

7 years 前 | 0

已回答
How to build a screw model by simscape?
It's not too bad to get a basic screw model, actually. I think a combination of Rotational Friction (for the screw threading)...

7 years 前 | 0

| 已接受

已回答
In SIMULINK, how can I get the time corresponding to my particular output of of a function block?
I would use a <https://www.mathworks.com/help/simulink/ug/triggered-subsystems.html Triggered Subsystem> to do this. The subsyst...

7 years 前 | 2

| 已接受

已回答
How to efficiently access data from ROS PoseArray Messages?
I think you can do this... try: b = [msg.Poses] - Sebastian

7 years 前 | 0

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

7 years 前 | 0

已回答
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...

7 years 前 | 0

| 已接受

已回答
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...

7 years 前 | 1

| 已接受

已回答
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> ...

7 years 前 | 0

| 已接受

已回答
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...

7 years 前 | 0

已回答
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...

7 years 前 | 0

| 已接受

已回答
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...

7 years 前 | 0

已回答
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...

7 years 前 | 1

| 已接受

已回答
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 ...

7 years 前 | 0

已回答
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...

7 years 前 | 1

已回答
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

7 years 前 | 0

| 已接受

加载更多