Beantwortet
Is it possible to "turn off" parts of a model?
Try to utilize the "Initialize Function" block from Simulink/User-defined functions library

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
How to change Simulink Block properties from Command Window
set_param('YourBlockPath','TorqueActuationMode','ComputedTorque')

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
save to. mat after reshape to [50 x1x12]
save('FileName','Varname')

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
Cell array row deletion
c={'a',1,2;'b',3,4} index=strcmp(c(:,1),'a') c(index,:)=[]

mehr als 5 Jahre vor | 1

Beantwortet
Removing jumps from data when plotting a graph
In your case, since you have enough data, I think you can use symbol in plot() to remove the "jump". If your old way is plot(x,...

mehr als 5 Jahre vor | 0

Beantwortet
How to iterate through the alphabet like Excel does
In old versions of MATLAB, you can find that function inside xlswrite.m. I used to copy that for my own use. In R2019b, it seem...

mehr als 5 Jahre vor | 0

Beantwortet
Changing frequency of input data
resample() timeseries object also has resample() method. see web(fullfile(docroot, 'matlab/ref/timeseries.resample.html')) t...

mehr als 5 Jahre vor | 1

| akzeptiert

Beantwortet
How to rearrange data by cutting rows and placing in new columns or using cell array?
reshape()?

mehr als 5 Jahre vor | 1

| akzeptiert

Beantwortet
How can i add linear second-order transfer function to the simulink system?
drag and drop this block from library https://www.mathworks.com/help/simulink/slref/transferfcn.html

mehr als 5 Jahre vor | 0

Beantwortet
Where is help relop?
It is true. The explanation: \Program Files\MATLAB\R2019b\toolbox\matlab\ops\relop.m is gone in R2020a, that is why "help relo...

mehr als 5 Jahre vor | 1

| akzeptiert

Beantwortet
How to discover all submodels within a simulink model programmatically ?
Using the example model 'f14'. Play with some other options of find_system() f14; SubSysBlocks=find_system('f14','BlockType','...

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
How can I get archived documentation for a R2012b release?
These are the archived document. R2012b is not there. Follow link to contact support to see you can get it. https://www.mathwor...

mehr als 5 Jahre vor | 0

Beantwortet
Unable to remove elements from array and I don't know why
Do the loop backward should resolve the problem. I hope you would understand the reason. for i=length(x):-1:1 Also, better to ...

mehr als 5 Jahre vor | 1

Beantwortet
select values from matrix
loc=sub2ind(size(A),idx,1:size(A,2)); >> out=A(loc) out = 1 7 3 9 5

mehr als 5 Jahre vor | 1

| akzeptiert

Beantwortet
Variable sample time with different time values
This seemingly simple question is actually quite complex. The input data is non-periodic. To hit every value-changing data poi...

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
command window change colors
Click "Preferences", then "Colors"

mehr als 5 Jahre vor | 1

| akzeptiert

Beantwortet
How do I keep unused root-Level Inports in the generated code
In your model configuration, search for "block reduction", un-check it. I assume you must have the root-level Inport blocks ter...

mehr als 5 Jahre vor | 0

Beantwortet
Can I simulate a transfer function in simulink in real time and interact with the model using the GUI?
Yes, thought it requires this toolbox: Simulink Desktop Real-Time

mehr als 5 Jahre vor | 0

Beantwortet
Error Unable to delete elements from this array because dimension 1 has fixed size 1000
You kept asking similar questions on this topic. You need to ask your question precisely and accurately. The key point for this ...

mehr als 5 Jahre vor | 0

Beantwortet
Displaying images by using a variable
It can be done but less ideal. a=input('enter the number','s'); file=[a,'.jpg']; imshow(file); Better file=uigetfile('se...

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
Incorrect use of '=' operator
Both codes run properly if run alone. You can "clear all" and then try it. A potential problem is with inputdlg(). "agea" is a ...

mehr als 5 Jahre vor | 0

Beantwortet
How to find the unused bus objects from base workspace in Simulink?
Simulink Data Dictionary (SLDD) has this capability. In fact, when you migrate base workspace to a .sldd file, it only migrates ...

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
unable to get_param signal name , error in using for loop
Your code is correct, except that No "end" statement for the for-loop Remove the "{" and "}" lines (meant to enclose the for-...

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
function with two inputs.
Run this to return two outputs height_cm=input('enter your height in cm: '); weight_kg=input('enter your weight in kg: ') [he...

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
Algorithmically create block matrices
cat() vertcat()

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
Simulink can't see variables in base and model workspace
You need to add "A" as a parameter for the MATLAB Function block. Double click to open the "MATLAB Function" block editor, clic...

mehr als 5 Jahre vor | 1

| akzeptiert

Beantwortet
License checkout failed. User/host not on INCLUDE list for Neural_Network_Toolbox.
When you see the toolbox after "ver" command, it means the toolbox is installed in your computer. You need a license file or che...

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
How can I plot a graph from Simulink while simulating?
Use the blocks from the Simulink, Dashboard library, e.g. Dashboard Scope block. https://www.mathworks.com/help/releases/R2020b...

mehr als 5 Jahre vor | 0

Beantwortet
Remove "Offset" caption from a Simulink graph
Must be something else. I have R2020b Update 3. I tried and it didn't have "Offset=0" text. Check MATLAB preference, figure cop...

mehr als 5 Jahre vor | 1

| akzeptiert

Beantwortet
Simulink: Dragging blocks directly into connections
Draging and dropping the block to the line will always make it auto connected. I've verified this in R2020b. You just need to be...

mehr als 5 Jahre vor | 0

Mehr laden