Answered
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...

7 years ago | 0

Answered
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'))

7 years ago | 0

| accepted

Answered
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....

7 years ago | 0

| accepted

Answered
Set Prime vales equal to zero
isprime()

7 years ago | 0

Answered
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...

7 years ago | 1

| accepted

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

7 years ago | 0

| accepted

Answered
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...

7 years ago | 0

| accepted

Answered
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 ...

7 years ago | 1

| accepted

Answered
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...

7 years ago | 0

| accepted

Answered
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 '...

7 years ago | 0

Answered
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...

7 years ago | 0

Answered
why can't I enable "stateflow animation"
You have to have a Stateflow chart open. Open a Stateflow chart and then select.

7 years ago | 0

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

7 years ago | 0

| accepted

Answered
Continuous-Time VCO block in simulink
Communications Toolbox \toolbox\comm\commdemos\commfreqsyn.slx Continuous-Time VCO - Implement voltage-controlled oscillator...

7 years ago | 3

Answered
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...

7 years ago | 1

| accepted

Answered
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

7 years ago | 1

| accepted

Answered
How to change Simulink S-Function Parameters with Matlab Command
get_param(BlockHandle,'Parameters') set_param(BlockHandle,'Parameters','abc')

7 years ago | 0

Answered
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...

7 years ago | 0

Answered
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...

7 years ago | 2

| accepted

Answered
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 ...

7 years ago | 1

| accepted

Answered
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...

7 years ago | 0

| accepted

Answered
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...

7 years ago | 0

Answered
If loop not acting properly??
move the last line inside the for-loop.

7 years ago | 1

| accepted

Answered
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.

7 years ago | 0

| accepted

Answered
how to remove someone as administrator
Last time I did that I called the tech support.

7 years ago | 0

| accepted

Answered
differentiate two copies of the same version of matlab
com.mathworks.mlservices.MatlabDesktopServices.getDesktop.getMainFrame.setTitle('MATLAB 1')

7 years ago | 1

| accepted

Answered
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...

7 years ago | 0

Answered
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...

7 years ago | 0

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

7 years ago | 0

| accepted

Answered
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...

7 years ago | 0

Load more