A résolu


Produce a sine wave
Produce a sine wave with amplitude 3: <<http://blogs.mathworks.com/images/seth/cody/sine-eqn.png>>

presque 11 ans il y a

A résolu


Produce a cosine wave
Produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/cosine-eqn.png>>

presque 11 ans il y a

A résolu


Make a half wave rectifier
Produce a signal that outputs the given sine wave source when it is greater than zero and outputs zero when it is less than zero...

presque 11 ans il y a

A résolu


Connect blocks in a model
Connect the blocks in the model to produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/connect-blocks...

presque 11 ans il y a

A résolu


Add a block to a model
Produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/add-block-eqn.png>> In this case, the slope of...

presque 11 ans il y a

Réponse apportée
I have issue with mahal() function
The |mahal| function is in the Statistics and Machine Learning Toolbox (in older releases, just Statistics Toolbox). Do you h...

presque 11 ans il y a | 0

Réponse apportée
How to store ROS callback data in class properties?
The issue here seems to be that the callback tied to |rossubscriber| is required to have 2 inputs "src" and "msg", where "src" i...

presque 11 ans il y a | 2

| A accepté

Réponse apportée
Restrict a column of data by two numerical constraints
So, you have 2 lines that define separate values for |LIdx|. So, the second line overwrites |LIdx| from the first line such that...

presque 11 ans il y a | 1

| A accepté

Réponse apportée
plot function in Simulink
You can use the regular "plot" function inside a Simulink model by calling it inside a <http://www.mathworks.com/help/simulink/u...

presque 11 ans il y a | 2

Réponse apportée
Why is it saying "the expression to the left of the equals is not a valid target for an assignment" / "parse error at =" on my if statements?
For logical expressions, you want to use the double equals operator: if time == 3 % Do stuff end - Sebastian

presque 11 ans il y a | 0

| A accepté

Réponse apportée
How can I control aspects of my simulation in generated code?
By default, parameters in Simulink models are inlined so that the code is more efficient and uses less memory. However, you can ...

presque 11 ans il y a | 1

| A accepté

Réponse apportée
Delta connected synchronous generator modelling
The <http://www.mathworks.com/products/simpower/ SimPowerSystems> tool already contains premade blocks for <http://www.mathworks...

presque 11 ans il y a | 0

Réponse apportée
Simulink: Is there an easy way to replicate a sub-system in the same simulation?
You can automate this using a script. Some relevant functions include: * <http://www.mathworks.com/help/simulink/slref/add_bl...

presque 11 ans il y a | 1

| A accepté

Réponse apportée
Attaching a component to a belt of a belt drive
Yes you can. Assuming this is picking up from your previous question which used a Prismatic Joint, so you want the Belt Drive to...

presque 11 ans il y a | 0

Réponse apportée
How to reorder matrix?
You were close! The missing part was reshaping the matrix to its "flipped size" prior to transforming it. origMatrix = [1 6...

presque 11 ans il y a | 0

Réponse apportée
model of a point in the space
I would start with good old Newton's 2nd Law: *F = m*a* For each coordinate (X, Y, and Z), you can implement this relationshi...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
How can I give the effector a desired trajectory using simmechanics bloks.
As long as you're using R2013b and later (if you're using the newer Second Generation SimMechanics), you can directly prescribe ...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
hi friends. we have a vectore v= [ 1 2 6 7 8 9], I want to compute: if variable component=1:10 is equal to one component of v then do some calculation like below. how can I do that:
I'd recommend looking at this page, which discusses many different ways to search through vectors and matrices based on some con...

presque 11 ans il y a | 0

Réponse apportée
How does lsim evaluate mimo
Directly from the <http://www.mathworks.com/help/control/ref/lsim.html lsim documentation page>: _If sys has three inputs, th...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
is current voltage simscape interface present in matlab R2009a?
Based on the release notes, this block came out in R2011b, so it's not there. However, you can implement the block yourself f...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
Simpowersystems Asynchronous Machine Inside Delta (6 wire) connection
I don't think there's an easy way for this. If you look at the "Wound" configuration of the Asychronous Machine block, it exp...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
Referencing 1) Simulink Model Components In Subsystems and 2) Workspace variables
For your first question, you should be able to the following without any issues: >> set_param([bdroot '/Subsys/Subsubsys/Bl...

presque 11 ans il y a | 0

Réponse apportée
How to limit the motion of a prismatic joint
To do this, you can create a contact force that is applied to the joint based on some limits. For a simple limit like this yo...

presque 11 ans il y a | 1

| A accepté

Réponse apportée
webview generation with other than report generator licence ?
Nope, Web views are only included with a Simulink Report Generator license. Without this product, you can at least print Simu...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
How can I load my data from a variable filename
You need to do this by converting the numerical value of "x" to a string and concatenating that with the rest of the file name s...

presque 11 ans il y a | 5

| A accepté

Réponse apportée
How to save dictionary to a mat file
I am assuming you're using a Simulink Data Dictionary in R2015a (which is when the official API for data dictionaries came out)....

presque 11 ans il y a | 0

| A accepté

Réponse apportée
control voltage in electrical grid
How are you controlling this three-phase voltage? Is it an inverter? http://www.mathworks.com/examples/simpower/64-three-p...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
Can we join components of SimPowerSystems with that of simElectronics?
Yes -- SimPowerSystems has an Interface Elements library with blocks like the <http://www.mathworks.com/help/physmod/sps/powersy...

presque 11 ans il y a | 1

| A accepté

Réponse apportée
Error using generic engine block.
The Generic Engine block has a "Maximum speed" parameter, if using the default polynomal parameterization. For the other 2 tabul...

presque 11 ans il y a | 0

Réponse apportée
How to run a SimMechanics robot model iteratively using Matlab code?
To run any Simulink model programmatically, you can use the <http://www.mathworks.com/help/simulink/ug/using-the-sim-command.htm...

presque 11 ans il y a | 1

| A accepté

Charger plus