Réponse apportée
Plotting multiple plots in for loop
You should not use the figure command inside a loop. Each call to command creates a new figure window. When you call the plot fu...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Simulink: Output argument 'mot_trq_dem' is not assigned on some execution paths
Maybe adding an empty else to each if helps. For example: if ... ... else end

plus de 3 ans il y a | 0

Réponse apportée
Test for Poisson distribution
Maybe the problem is that you have created too many bins; one bin for each observation. That would not yield good results. Consi...

plus de 3 ans il y a | 0

Réponse apportée
how to animate circle
You first draw the single point at the top of the circle. Then you edit the XData and YData properties of the line after a pause...

plus de 3 ans il y a | 0

Réponse apportée
"DOC is not currently available" error when using the local documentation in MATLAB
Just google the name of the toolbox you want plus "pdf documentation". You can find the documentation homepage for the toolbox, ...

plus de 3 ans il y a | 0

Réponse apportée
How to save strings in a loop into an array?
You should first initialize the direction vector: direction = strings (1, 200); Then assign a value to a certain element of ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Performance: readTable versus xlsread
I don't know about the exact thing you mentioned, but I have experienced that when reading many matrixes from Excel (hence many ...

plus de 3 ans il y a | 0

Réponse apportée
trying to use a neural network in a genetic optimiser
If I have understood you well, you want ga() to train your feedforward ANN. If so, you can read about it here: https://www.mat...

plus de 3 ans il y a | 0

Réponse apportée
Resource pool, average utilization statistic
SimEvents blocks' statistics are updated not continuously, but rather when an event is triggerred. The system state between the ...

plus de 3 ans il y a | 0

Réponse apportée
Elevators with Sim Events
The model described in the tutorial you mentioned exhibits only one person, but it can be used for any capacity of the elevator ...

plus de 3 ans il y a | 0

Réponse apportée
How to split a product unevenly and create more subproducts from its remainder using SimEvents?
SimEvent's standard block library only includes blocks with one storage. What you want requires more than one storage, thus, in ...

plus de 3 ans il y a | 0

Réponse apportée
Release entity from server based on event...
SimEvent's standard block library only includes blocks that contain only one storage. What you need requires more than one stora...

plus de 3 ans il y a | 0

Réponse apportée
How to change Probability Vectors from workspace/file
You can pass the probability vectors as a variable, using SimulationInput objects. More to read: https://www.mathworks.com/h...

plus de 3 ans il y a | 0

Réponse apportée
can I see the matlab code generated by simevents model
Simulink blocks are compiled into C, and not MATLAB.

plus de 3 ans il y a | 0

Réponse apportée
How can I set attribute age in simevents
For each entity, you should first select an interval based on probabilities using a discrete probability function, and then, gen...

plus de 3 ans il y a | 0

Réponse apportée
Modelling two activities that start at the same time on a common entity in SimEvents
You need a Resource Acquirer block, two Entity Server blocks, and two Resource Release blocks. When the entity enters the Resour...

plus de 3 ans il y a | 0

Réponse apportée
How to perform Aggregation in simevents
My answer from here: Simevents is based on entity-storage system notion, and its standard block library only includes blocks t...

plus de 3 ans il y a | 0

Réponse apportée
SimEvents: route using on attribute
You can create a scalar attribute, whose value is equal to the first element of the vector. entity.Attribute2 = out_package (1...

plus de 3 ans il y a | 0

Réponse apportée
Vectorize multiple t tests across matrices
ttest cannot be vectorized. I think the only speed boost left for you is to use parfor instead of for, as long as you have Paral...

plus de 3 ans il y a | 0

Réponse apportée
How do I implement simulannealbnd function in simulink?
You can declare the functions that are not compatible with code generation using coder.extrinsic() as extrinsic functions. Simpl...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Making a bunch of entity generators to generate variants in a simevents DES system
The best approach for you is as follows: Generate a random number for every variant. Use the minimum value of the array as t...

plus de 3 ans il y a | 0

Réponse apportée
how to assign the service time value of the first entity server to the second entity server?
You can add an attribute to the entities, so that when the entity arrives in the first server, the assigned service time is reco...

plus de 3 ans il y a | 0

Réponse apportée
Grouping entities in SimEvents
Simevents is based on entity-storage system notion, and its standard block library only includes blocks that include only one st...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Get parallel simulations in objective function of optimization Tool (GA,PSO)
Hi Marcus. I haven't used that File Exchange submission for PSO, but the general workflow in such situations is to: Pass the...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Simevents: Changing resources in pool
One way is to create a Gate, and not to let entities when the resource is not sufficient. The other way, which is the better but...

presque 4 ans il y a | 0

Question


How to train a deep or shallow network embedded into another system?
I need to embed a deep or shallow network into another algorithm to do certain jobs. How can I calculate the loss function and p...

presque 4 ans il y a | 1 réponse | 0

0

réponse

Réponse apportée
structure variable with double vectors in a field using in a SIMEVENT block is not working
One way to achieve what you want is composite entities. It enables you to use a structure-like dot notation in event actions. Se...

presque 4 ans il y a | 0

Réponse apportée
Fit a power model to the set of data
Type cftool in the command window to open Curve Fitting toolbox. Then you can import your data and fit the power function.

presque 4 ans il y a | 0

Réponse apportée
Eject entity from server when failure occurs
Generally speaking, failures are preempted entities that does not consume resources. They are generated from another entity gene...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
How to concatenate string cell arrays?
What you need is the Cartesian product of the two sets. MATLAB does not have built-in function, but there are several functions ...

environ 4 ans il y a | 0

Charger plus