Réponse apportée
Option to flip up-down a Simulink block not available in 2020a
You can show block name on top or bottom but there was never a up-down flip. If you want to change the position of the port, cha...

environ 5 ans il y a | 1

Réponse apportée
Is there any function in Matlab that can serve as "VLOOKUP" of Excel?
[~,index]=ismember(final1,aux2(:,1)) newData=aux2(index,:)

environ 5 ans il y a | 2

| A accepté

Réponse apportée
Demux signal from Transform sensor (simscape multibody)
Try "Demux" or "Bus Selector" block.

environ 5 ans il y a | 0

Réponse apportée
How can I use two PID controllers in Simulink?
Your output y seems to be 2x1, but if your current model runs, then your control variable u is 1x1. You can't have two PID contr...

environ 5 ans il y a | 0

Réponse apportée
Passing values from Matlab to Simulink
Start a new model, drag a Constant block and Display block. Connect them, specify the Constant value as T and simulate.

environ 5 ans il y a | 0

Réponse apportée
PID controller without using Simulink
"doc pid" or look at the examples in "doc connect"

environ 5 ans il y a | 0

Réponse apportée
Make Combination form 3 kind of variable and each variable have its own value
Start with this [x,y,z]=meshgrid(1:4,1:4,1:4); data=[x(:),y(:),z(:)]

environ 5 ans il y a | 0

| A accepté

Réponse apportée
Error evaluating parameter 'Mass'
All those variables "Mass", "CenterOfMass", etc. need to be assigned values in base workspace or data dictionary. Typically, the...

environ 5 ans il y a | 0

Réponse apportée
Step Block Simulink Setup
The Step block in Simulink is all you need.

environ 5 ans il y a | 0

Réponse apportée
draw 30 cycles of sinusoid oscillating at 10^6 hz
change to this line tt=0:T/100:30*T

environ 5 ans il y a | 0

Réponse apportée
Different (Simulink) simulation results when called from App designer than a matlab script (.m)
This happened several times now and it might be related. Give a return variable when you call sim() such as Result=sim(...). Ot...

environ 5 ans il y a | 0

Réponse apportée
How to use external function(m file) in a Simulink?
Interpreted MATLAB Function

environ 5 ans il y a | 0

| A accepté

Réponse apportée
Set certain value of signal when it goes above threshold.
Use the Relational Operator block to compare the signal against the threshhold value. The output is a true or false signal. Use ...

environ 5 ans il y a | 0

Réponse apportée
One of the Mask Parameters getting reset in Entire Model while saving Custom Library.
Things like this usually gets complicated when it is put in a library. Without the actual model, I could guess: If you are set...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
Deleting every n rows in matrix
A=1:100 A=A(1:15:end)

environ 5 ans il y a | 0

Réponse apportée
Calling out array from workspace in simulink
You have "Var=1:5" in MATLAB base workspace. In Simulink, use a Constant block, specify its value as "Var", or "Var(1)", "Var(5)...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
How to create constant(!) input-dependent matrices with a Matlab function block without that variable-size stuff
MATLAB Function block can deal with variable size. It is just a lot of annoynance like you suggested. You need to declare the ma...

environ 5 ans il y a | 0

Réponse apportée
How to achieve identical timing of two side by side annotations
What you can do is this. I think it can improve the timing. h1=annotation(..., 'visible','off'): h2=annotation(..., 'visible',...

environ 5 ans il y a | 0

Réponse apportée
Architectural documentation of simulink model - UML
System Composer is supposed to do this. It uses SysML.

environ 5 ans il y a | 0

| A accepté

Réponse apportée
How can I strip duplicates?
If you want remove duplicates only based on values in the first column Do not want the returned values be sorted then you nee...

environ 5 ans il y a | 0

Réponse apportée
How can I swap two elements in each row of a matrix without loops?
This is lengthy but does the job. %% flag=logical([0 0 1 1]); % pick two elements in each row p=perms(flag); % all the possib...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
Mysterious tangent line on my plots
Your code has problem. If you have "clear all" at the begining to clear the variables in the memory, then your code has error. ...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
Rearrangement of vector elements
something like this? a=(1:95)' b=reshape(a,19,[]) c=b(1:11,:) d=c(:)

environ 5 ans il y a | 1

Réponse apportée
How to create a string array with long strings that continue to a new line?
s=["aa"+ ... "aa", "bb"+ ... "bb"] s = 1×2 string array "aaaa" "bbbb"

environ 5 ans il y a | 2

Réponse apportée
where is function block parameters:fcn that expression ex) sin(u(1))+cos(u(1))
I heard it was being phased out. I don't remember which version. You probably can search it in release note. It will be not ava...

environ 5 ans il y a | 0

Réponse apportée
How to make state-space model for an array input in Simulink?
You should not duplicate the State Space block. The size of A, B, C and D should all match properly to the number of states X, t...

environ 5 ans il y a | 0

Réponse apportée
Why Matlab and Simulink have different Plot for the same modulo function?
The step size is more important than solver in this case. Reducing the step size to be 1 or 0.5 and making it fixed would resolv...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
Why do i receive this error when lunching simulink ?
The \slprj folder can't be created under "C:\Program Files\MATLAB". Move your models and work in other folder such as \MyDocumen...

plus de 5 ans il y a | 0

Réponse apportée
How to put variable name in Y-limits of a scope in Simulink programmatically from Matlab
Seems true but also, it works this way. >> YY=5 YY = 5 >> set(gcbh,'ActiveDisplayYMaximum','YY') >> get(gcbh,'ActiveDi...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
zpk function is missing
I believe zpk() requires Control System Toolbox. Check to see if you have it ver control

plus de 5 ans il y a | 0

Charger plus