Réponse apportée
Passing piecewise-constant vector to Simulink
There are many ways. The easiest is to define time t=[t1, t2,...t5] and a=[a1,a2,...a5] in workspace and then use the "From Work...

plus de 7 ans il y a | 0

Réponse apportée
Using the 'Set_param' command to change the Number of Input ports of MinMax
The property name is 'Inputs'. web(fullfile(docroot, 'simulink/slref/common-block-parameters.html'))

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
Cannot make the desired system
e^(-sTp) means transport delay of Tp. It is not the math operation of exponential function. Take a look at this example model....

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
Set Prime vales equal to zero
isprime()

plus de 7 ans il y a | 0

Réponse apportée
Why does my compiled application have issues on other computers?
Maybe you will need MATLAB Runtime for other computers that don't have MATLAB installed. Run "deploytool" to pack and deploy you...

plus de 7 ans il y a | 1

| A accepté

Réponse apportée
Automatic signal route optimization for Simulink?
Select some blocks and signal lines, click the action icon "..." that shows up, and click "Auto-route Lines".

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
Copying to zeros matrix when rows vary per column
Rather than trying to figure out a single liner, use for-loop for k=1:10 index=start(k):finish(k); x(index,k)=m1(index,k); e...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
Error using sim command
sim() is a build-in command. It looks like you have a S-function called sim?? Run "which -all sim" to see if there is anything ...

plus de 7 ans il y a | 1

| A accepté

Réponse apportée
Model reference speed problem (slow)
My guess is that it is not equal comparison. In your first picture, all the outputs are terminated. Maybe Simulink did some opti...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
How can I find all the constant blocks available in my complete model ?
Please take a look at the document for find_system(). By default, it searches all levels. Maybe you need to specify values for '...

plus de 7 ans il y a | 0

Réponse apportée
what is the meaning of this code?
You've been asking the same question many times yet none of the answers seem to answer your question. I suggest you run "demo" i...

plus de 7 ans il y a | 0

Réponse apportée
why can't I enable "stateflow animation"
You have to have a Stateflow chart open. Open a Stateflow chart and then select.

plus de 7 ans il y a | 0

Réponse apportée
Concatenate cells containing strings
As long as you have two cell arrays with the same size, you can do this: strcat(A(index),B)

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
Continuous-Time VCO block in simulink
Communications Toolbox \toolbox\comm\commdemos\commfreqsyn.slx Continuous-Time VCO - Implement voltage-controlled oscillator...

plus de 7 ans il y a | 3

Réponse apportée
How to constantly calculate the total time duration for which the value of a signal is above a threshold in simulink?
Compare S with Thr, the output is zero or one. The integration of this signal will give you T. When it is zero, T won't increase...

plus de 7 ans il y a | 1

| A accepté

Réponse apportée
How do I replace 0 with NaN in an 3D array?
Maybe those values are not strictly zero. Try this example a=zeros(2,2,2) a(a==0)=nan

plus de 7 ans il y a | 1

| A accepté

Réponse apportée
How to change Simulink S-Function Parameters with Matlab Command
get_param(BlockHandle,'Parameters') set_param(BlockHandle,'Parameters','abc')

plus de 7 ans il y a | 0

Réponse apportée
Choosing the Step Size using Stepinfo
stepinfo() is to tell step response characteristics such as rise time, overshoott, etc. given that the step response is provided...

plus de 7 ans il y a | 0

Réponse apportée
Matlab processes are too slow
run "bench" in MATLAB to see your PC's performance. In my opinion, i3 processor might be a little too old for R2018a. Core i3 is...

plus de 7 ans il y a | 2

| A accepté

Réponse apportée
Anyone knows How to converter AUTOSAR.Parameter to Simulink.Parameter
Save your workspace as a .m file and do find-and-replace. Of course, AUTOSAR.Parameter objects have additional attributes than ...

plus de 7 ans il y a | 1

| A accepté

Réponse apportée
find_system truncate with ... and mess up listdlg index
This is because the default Simulink block name contains a carriage return or char(10) for "Bus Creator" block. You can see it w...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
Change Simulink Library Lock Status from within the Library?
Open your library model, in menu File, library properties, library properties, In the Callbacks panel, you could add a callback...

plus de 7 ans il y a | 0

Réponse apportée
If loop not acting properly??
move the last line inside the for-loop.

plus de 7 ans il y a | 1

| A accepté

Réponse apportée
How to draw a graphic like this?
On your figure, click menu "Tools" and then check "Edit Plot". Then, click menu "Inset", line, arrow, text, etc.

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
how to remove someone as administrator
Last time I did that I called the tech support.

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
differentiate two copies of the same version of matlab
com.mathworks.mlservices.MatlabDesktopServices.getDesktop.getMainFrame.setTitle('MATLAB 1')

plus de 7 ans il y a | 1

| A accepté

Réponse apportée
Recieving error Index exceeds the number of array elements (98) when attempting to useODE45?
t is 93x1 double, iM is 350. You try to access t(iM) which doe not exist. In other words, the index (iM, whose value is 350) exc...

plus de 7 ans il y a | 0

Réponse apportée
Matlab stuck at Warning about Integers
With this, do you get it? >> a=rand(1,100); >> b=a(2:10); >> c=a(2:0.9:10); Warning: Integer operands are required for colon...

plus de 7 ans il y a | 0

Réponse apportée
Could you please suggest me software or toolbox to edit MATLAB graph?
On your figure, click menu "Tools" and then check "Edit Plot".

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
How do I change the save file format in excel using activeX in Matlab
Worked like a charm, in R2018b, MS Office 2016. file = 'Book1.xlsx'; sheet = 'Sheet1'; excel = actxserver('Excel.Applicatio...

plus de 7 ans il y a | 0

Charger plus