Professional Interests: Control Emgineering, virtual modeling and simulation

Question

Struggling with simulation flow control commands in Simulink!

Dear Community, Some time ago I found Set_param to control Simulation flow of my Simulink block diagram through an m-file. It...

4 years ago | 0 answers | 0

Answered

Specified matrix range to Excel file

Hi, Did you try using a medium variable? I mean before you try to save your matrix A in an Excel file save those elements you...

Specified matrix range to Excel file

Hi, Did you try using a medium variable? I mean before you try to save your matrix A in an Excel file save those elements you...

4 years ago | 1

| accepted

Answered

How to constrain the rotation of a joint in SimMechanics 2nd generation

Hi Christopher, If you haven't found a solution yet, I would suggest you have a look into the 'Rotational Hard Stop' block in...

How to constrain the rotation of a joint in SimMechanics 2nd generation

Hi Christopher, If you haven't found a solution yet, I would suggest you have a look into the 'Rotational Hard Stop' block in...

4 years ago | 0

Question

How to change a block's parameter in a pause and make it affect the simulation straight away?

Hi, I try to control the simulink simulation flow from a script. There is a constant block in my blockdiagram, which I would ...

4 years ago | 0 answers | 0

Question

Using a USB mouse as a free position sensor

Hi, I'm trying to use a usb mouse as a position sensor in my mobile robot. The robot should be able to move freely in 2D spac...

4 years ago | 1 answer | 0

Answered

SimMechanics Mechanics Explorer does not render on one PC but not another

Hi, Once I had the same problem with my Geforce graphic card not only when using Matlab but also many other engineering softw...

SimMechanics Mechanics Explorer does not render on one PC but not another

Hi, Once I had the same problem with my Geforce graphic card not only when using Matlab but also many other engineering softw...

5 years ago | 0

Question

Editing geometry imported from SolidWorks to Simmechanics

I need to optimize my multibody dynamics system in terms of geometry. The problem is that the initial geometry is complex and di...

6 years ago | 0 answers | 1

Question

High dimension matrix algebra

Hi there, I'm trying to solve a set of linear equations by using Matlab syntax '\'. This properly works for dimensions less t...

6 years ago | 2 answers | 0

Question

Is there a way to abort the code inside a function?

Hey there, Happy to know people are there when there is a challenge. I see that _return_ function is used to abort the code w...

6 years ago | 2 answers | 0

Answered

The 'wait' command and m-code/simulink interaction

Yes SimulationStatus property does it. I'm done. A while loop to check the simulation status is my solution. Thank goodness

The 'wait' command and m-code/simulink interaction

Yes SimulationStatus property does it. I'm done. A while loop to check the simulation status is my solution. Thank goodness

7 years ago | 0

| accepted

Question

The 'wait' command and m-code/simulink interaction

Dear Community, I'm controlling the simulation course of a simulink block diagram for control system design purposes. I d...

7 years ago | 1 answer | 0

Answered

Parallel Computing: dot name reference

Considering the error sequence, I think it is reproduced owing to your COMSOL model. Maybe this happens because of convergence i...

Parallel Computing: dot name reference

Considering the error sequence, I think it is reproduced owing to your COMSOL model. Maybe this happens because of convergence i...

7 years ago | 0

Question

solving a set of first order differential equations in simulink

I wish there is a way, maybe a block or something, to simulate a set of first order differential equations of any form (not rest...

7 years ago | 2 answers | 0

Question

Why axis labels disappear when trying to assign their position?

In Matlab 2012b I need to move axis labels of my plot arbitrarily. I want this because they are not placed according to my taste...

7 years ago | 1 answer | 0

Question

Negative exponent and reverse order in MuPad

Hello there, I want to have a polynomial with negative power of the main variable. something like the one below: f(z)=a0+a...

7 years ago | 0 answers | 0

Question

How to plot such a graph

Dear all, I want to plot a graph like the one linked here but I don't know how! What is necessary is to make all the space...

8 years ago | 0 answers | 0

Question

How to implement MFD discrete filter in simulink

Dear all Simulink Users, I'm in need of implementing such a discrete filter in Simulink which is described below: Output=...

8 years ago | 0 answers | 0

Answered

Problem with Fuzzy controller blocks in simulink

Dear Alex I've already solved my problem but I still believe that It's a bug. I think its belong to the fuzzy variable ranges...

Problem with Fuzzy controller blocks in simulink

Dear Alex I've already solved my problem but I still believe that It's a bug. I think its belong to the fuzzy variable ranges...

8 years ago | 1

| accepted

Question

Initializing some variables in base workspace when running simulink model

I'd like to initialize some variables in base workspace during initialization phase of simulation in SIMULINK. Is there such a b...

8 years ago | 1 answer | 0

Question

Problem with Fuzzy controller blocks in simulink

I've already developed a control model by using fuzzy controller in simulink. there are some problems that seems like bugs. If y...

8 years ago | 4 answers | 0

Question

Is it possible to reduce code generation time for simulink Matlab function block?

We know that when there is a Matlab Function Block in Simulink block diagram compilation phase take time more than usual because...

8 years ago | 2 answers | 0

Answered

Is it possible to use structure variable as an input parameter for Matlab function block in simulink?

Yes, structure variables are supported in Matlab function block as input parameters. But You should consider that they can't be ...

Is it possible to use structure variable as an input parameter for Matlab function block in simulink?

Yes, structure variables are supported in Matlab function block as input parameters. But You should consider that they can't be ...

8 years ago | 0

Question

Is it possible to use structure variable as an input parameter for Matlab function block in simulink?

I need to use a structure variable as an input in my matlab function block! I've done the instructions as said in documentation ...

8 years ago | 2 answers | 0

Question

How to train a Neural Network which is placed in a simulink block diagram as a controller through script files?

I've placed an initial Neural Network in my Simulink using _gensim_ command. Now it's the time for training the network. On the ...

8 years ago | 0 answers | 0

Question

Solving homogeneous linear set of equations

I know the ways to solve a set of linear equations of Ax=B form. For example x=inv(A)*B or x=A\B. But the methods doesn't work f...

8 years ago | 1 answer | 0

Answered

Definition of custom intertia properties in SimMechanics

Diagonal elements of the inertia tensor are moments of inertia and the others are products of inertia. You should consider that ...

Definition of custom intertia properties in SimMechanics

Diagonal elements of the inertia tensor are moments of inertia and the others are products of inertia. You should consider that ...

8 years ago | 0

Question

Pause and play simulink in programming

Is it possible to pause and play again Simulink block diagram through programming? For more clarification I have to say that I w...

8 years ago | 2 answers | 0

Question

Export states to workspace in simulink configuration parameters

when I choose to export the states to workspace in my Simulink Blockdiagram a variable is built in the workspace with the name "...

8 years ago | 1 answer | 1

Question

Problem with running simulink block diagram in discrete mode

I tried to run a Simulink block diagram which consists three _difference_ blocks ... but it's not working properly ... I tried t...

8 years ago | 1 answer | 0

Question

Is it possible to model hard stops in simmechanics 2nd generation?

How can be possible to model a revolute joint which is limited with upper and lower hard stops in simmechanics 2nd generation? I...

8 years ago | 1 answer | 0