Answered
How to set value of Simulink Rocker Switch from Matlab
This is a Simulink Dashboard block. It needs to be "binding" with another block. Add a Constant block of value "1". Bound the R...

5 years ago | 0

| accepted

Answered
Simulink Block vs Simulink Model
A Simulink model is made from Simulink blocks. The sum of all its Simulink blocks plus something else (configurations, parameter...

5 years ago | 1

Answered
Compare data at consecutive timesteps during runtime in Simulink
Use a Unit Delay block, the input is altitude, the output is the "previous value" of the altitude.

5 years ago | 0

| accepted

Answered
Testsuite for Matlab 2011b?
For many common cases, using the Signal Builder block to provide the testing signals/vectors is sufficient. You can create multi...

5 years ago | 0

| accepted

Answered
License problem on my account
check your eligibility https://www.mathworks.com/products/matlab-online.html#license-types

5 years ago | 1

Answered
Sending Live Simulink Values To Gui
Instead of creating your own GUI, I would suggest using the Simulink Dashboard Blocks. https://www.mathworks.com/videos/dashbo...

5 years ago | 1

Answered
how to change suddenly dropping output by a gradually dropping output?
The Rate Limiter block is usually used for this. It is used to generate a slope after (not before) the falling or rising edge. B...

6 years ago | 0

Answered
Extract a single signal from signal array
Use the Selector block from Signal Routing library. Click Help to find example models.

6 years ago | 0

Answered
What does M([1:1 2:3], [1:0 2:3]) mean?
First, run this line by line in Command Window to figure out what it does 1:5 1:0.5:3 5:-1:1 Then understand that [1:1 2:3] ...

6 years ago | 0

Answered
How can I concatenate these two arrays in this manner?
C=[A;B]; C=C(:)';

6 years ago | 0

Answered
Can MATLAB code in an M-file successfully call slCharacterEncoding() without a Simulink license?
Seems Yes. >> license inuse matlab >> slCharacterEncoding() ans = 'windows-1252' >> license inuse matlab

6 years ago | 0

Answered
R2020a Update 4 does not work
Your update is not installed. Should look like this: >> ver matlab -----------------------------------------------------------...

6 years ago | 0

Answered
Error using cellstr. Shows error for element that doesn't exist.
I can duplicate the error using this simple example. So the problem is TblAllInfo{1,2}. It is the 154th element. It is not a cha...

6 years ago | 0

Answered
Asynchronous function-call Initiator
The functon-call trigger port needs to be connected with a function-all signal, usually from a function-call generator block. Do...

6 years ago | 0

Answered
MATLAB Borrow License Without Network
Yes, there is such a capability built-in. You need to contact your network license administrator to see if it is enabled though....

6 years ago | 0

Answered
How to update "hidden" param in standalone reference configuration?
You need to open the data dictionary and change this parameter in the saved reference configuration directly.

6 years ago | 0

Answered
Setparam on a nested block
There is no limitation regarding how deep can you go to reference the block. The only thing that might prevent you from doing th...

6 years ago | 0

Answered
MATLAB 2020a and prior versions generate pcode warning
Someone must have modified and saved the ver.m file by mistake. ver.m and ver.p are built-in files and shouldn't be modified. Re...

6 years ago | 0

Answered
Contributors metainfo: reputation and more
Congratulations to Walter Roberson for surpassing 100,000 points! I still don't think that it is possible.

6 years ago | 1

Answered
Run 2016a but have 2014a as well for older software?
You can have multiple versions of MATLAB installed. They don't interfere with each other. So go ahead and install as many versio...

6 years ago | 0

Answered
Add Second Axis Manually
plot(1:10); yyaxis right;

6 years ago | 0

| accepted

Answered
create a vector of 0 and 1s that takes 1 at a fixed interval
m=2; N=100; a=zeros(1,N); a(m+1:m+1:N)=1

6 years ago | 0

| accepted

Answered
Error with using sprintf
>> a={'abc'} a = 1×1 cell array {'abc'} >> sprintf('%s',a) Error using sprintf Function is not defined for 'cell' in...

6 years ago | 0

| accepted

Answered
Simulink online not available?
check your eligibility at Simulink Online

6 years ago | 0

Answered
How to use different sampling times for 2 blocks in the same simulink model?
It looks like a MATLAB Function block. Right click it, select "Block Parameters (Subsystem)", specify sample time as 0.1. You mi...

6 years ago | 0

| accepted

Answered
How to resolve issue of finite derivative after some time interval in simulink
You have a division block prior to the Integrator block. Can you check to see if you have a "divided by zero" problem? What is t...

6 years ago | 1

Answered
Why the function that I created won't be called?
Your function "relaxed" does not have any return values so you can't do "A=relaxed" because "A" can't be assigned. That is the e...

6 years ago | 0

Answered
Using a function_handle 'variable' from workspace in simulink
function handle is not supported by Simulink. Run "showblockdatatypetable" "I want to change the whole function without opening...

6 years ago | 1

| accepted

Answered
find indicies of maximum and minmum elements of an array in its each segmented smaller arrays, plus mean
Here is one way to find the max index without for-loop. Not sure if it is faster for larger data %% A=1:100; indexA=[8 16 ...

6 years ago | 0

Answered
find minumum indices of one array in another array
You have the assumption that A is incremental. If it is always true, it can be done like this. %% A= [ 47 100 153 207 ...

6 years ago | 0

| accepted

Load more