統計
All
Feeds
回答済み
How to build a subsystem with the function of replacing the click menu?
Create an empty Subsystem. Right-Click on the subsystem and select 'Properties...' Go to Tab 'Callbacks' and chose 'OpenFcn'. ...
How to build a subsystem with the function of replacing the click menu?
Create an empty Subsystem. Right-Click on the subsystem and select 'Properties...' Go to Tab 'Callbacks' and chose 'OpenFcn'. ...
4年以上 前 | 0
回答済み
Simulink Real Time Target compatible hardware
There is a document with the supported chipsets. 'xpc-target-supported-ethernet-chipsets.pdf' I don't know where you can get i...
Simulink Real Time Target compatible hardware
There is a document with the supported chipsets. 'xpc-target-supported-ethernet-chipsets.pdf' I don't know where you can get i...
4年以上 前 | 0
回答済み
Replace Elements in matrix in specific positions
mask = A<=1.2 && B>-0.54 && B<0.54; D=zeros(size(C)); D(mask)=C(mask); Edit: Range adapted.
Replace Elements in matrix in specific positions
mask = A<=1.2 && B>-0.54 && B<0.54; D=zeros(size(C)); D(mask)=C(mask); Edit: Range adapted.
5年以上 前 | 1
回答済み
In Simulink behind the output of a block, i have an signalattribute like Inf or D1. How can I hide this.
Switch off display of sample time In the model file select 'Display' in the menu list. Under 'Display -> Sample Time -> Off'...
In Simulink behind the output of a block, i have an signalattribute like Inf or D1. How can I hide this.
Switch off display of sample time In the model file select 'Display' in the menu list. Under 'Display -> Sample Time -> Off'...
5年以上 前 | 0
回答済み
How to save the initial value of a variable ? (Simulink)
You can just 'Sample And Hold' the signal at the first tick. A 'Sample and Hold' is basically only a triggered subsystem wher...
How to save the initial value of a variable ? (Simulink)
You can just 'Sample And Hold' the signal at the first tick. A 'Sample and Hold' is basically only a triggered subsystem wher...
6年以上 前 | 0
| 採用済み
回答済み
SIMULINK - Save the different states of a variable in a vector
There are multiple solutions for this, dependent on what you want to do with the data. To save the data to the workspace you ...
SIMULINK - Save the different states of a variable in a vector
There are multiple solutions for this, dependent on what you want to do with the data. To save the data to the workspace you ...
6年以上 前 | 0
| 採用済み
回答済み
Handling pooled constants in C code generated by Embedded Coder?
I had a similar problem and found a solution in the "Simulink Coder User's Guide" Excerpt from the "Simulik Coder User's Guid...
Handling pooled constants in C code generated by Embedded Coder?
I had a similar problem and found a solution in the "Simulink Coder User's Guide" Excerpt from the "Simulik Coder User's Guid...
6年以上 前 | 2
回答済み
Create a DOSloader bootable USB drive for xPC-Target
You can use the program 'Rufus' and Format your USB drive with the option 'Create a bootable disk using FreeDOS'. Then copy t...
Create a DOSloader bootable USB drive for xPC-Target
You can use the program 'Rufus' and Format your USB drive with the option 'Create a bootable disk using FreeDOS'. Then copy t...
6年以上 前 | 0
回答済み
Why doesn’t simulink real-time 2017b fail to burn bootable cd for target pc?
I think we had a similar problem. If I remember correctly the problem was the size of the "bootable" OS. With the new version i...
Why doesn’t simulink real-time 2017b fail to burn bootable cd for target pc?
I think we had a similar problem. If I remember correctly the problem was the size of the "bootable" OS. With the new version i...
6年以上 前 | 0
回答済み
Network Card incompatible??
There is a document with the supported chipsets. 'xpc-target-supported-ethernet-chipsets.pdf' I don't know where you can g...
Network Card incompatible??
There is a document with the supported chipsets. 'xpc-target-supported-ethernet-chipsets.pdf' I don't know where you can g...
6年以上 前 | 0
回答済み
How do I iterate through duplicated inports in MATLAB 2013b?
The "links" are so called Inport-Shadows inportShadows = find_system('my_model', 'FindAll', 'on', 'BlockType', 'InportShadow...
How do I iterate through duplicated inports in MATLAB 2013b?
The "links" are so called Inport-Shadows inportShadows = find_system('my_model', 'FindAll', 'on', 'BlockType', 'InportShadow...
約7年 前 | 0
| 採用済み
回答済み
How can I plot several graphs with slightly different name in a loop?
You can use the eval command. Simple example: eval(['h=plot([1:10])']) In your case something like eval(['h' num2str...
How can I plot several graphs with slightly different name in a loop?
You can use the eval command. Simple example: eval(['h=plot([1:10])']) In your case something like eval(['h' num2str...
約7年 前 | 0
回答済み
Git: authentication not supported
I had a similar problem with a remote repository. We solved it with setting the authentication method of the server to basic.
Git: authentication not supported
I had a similar problem with a remote repository. We solved it with setting the authentication method of the server to basic.
約7年 前 | 1
回答済み
Force Simulink to compile in a certain folder
Open Simulink. In the menu "File / Simulink Preferences" under "General" you find "Code generation folder:" Here you can cho...
Force Simulink to compile in a certain folder
Open Simulink. In the menu "File / Simulink Preferences" under "General" you find "Code generation folder:" Here you can cho...
7年以上 前 | 1
| 採用済み
回答済み
How can I programmatically register Data Stores for the Matlab Function block, i.e. without using the Ports and Data manager?
I had a similar problem and the following solution worked for me (Matalb 2016b). Example Matlab function with the Name 'MyMatla...
How can I programmatically register Data Stores for the Matlab Function block, i.e. without using the Ports and Data manager?
I had a similar problem and the following solution worked for me (Matalb 2016b). Example Matlab function with the Name 'MyMatla...
7年以上 前 | 0
回答済み
I need a function that could tell me informations about ports of a simulink block like the name, positions, etc.
You can use the 'get_param' command. get_param(gcb,'ObjectParameters') % return the available parameters get_param(gcb,'Na...
I need a function that could tell me informations about ports of a simulink block like the name, positions, etc.
You can use the 'get_param' command. get_param(gcb,'ObjectParameters') % return the available parameters get_param(gcb,'Na...
8年以上 前 | 0
| 採用済み
回答済み
Assign vector to vector with gaps
A = [1,1,1; 2,2,1; 3,3,4; 8,3,6; 8,3,0; 8,6,3]; B = [4,2,5; 4,3,2; 6,3,2; 8,0,9]; V = [2; 4]; % create 'inversion' of V...
Assign vector to vector with gaps
A = [1,1,1; 2,2,1; 3,3,4; 8,3,6; 8,3,0; 8,6,3]; B = [4,2,5; 4,3,2; 6,3,2; 8,0,9]; V = [2; 4]; % create 'inversion' of V...
8年以上 前 | 0
| 採用済み
回答済み
Simulink multiport switch problem
Try to typecast your switching signal (from signal builder) to int32.
Simulink multiport switch problem
Try to typecast your switching signal (from signal builder) to int32.
8年以上 前 | 0
回答済み
Splitting the signal into different parts.
If you have a signal like this shown in Figure2 you can use this information. changeDetected = [false, diff(t)>0.1]; %get th...
Splitting the signal into different parts.
If you have a signal like this shown in Figure2 you can use this information. changeDetected = [false, diff(t)>0.1]; %get th...
8年以上 前 | 0
回答済み
Spliting a cell based on the values of a column
Take the data from column 1 and perform the command sortInd = unique(column1data); now you can loop over this values (sor...
Spliting a cell based on the values of a column
Take the data from column 1 and perform the command sortInd = unique(column1data); now you can loop over this values (sor...
8年以上 前 | 1
| 採用済み
回答済み
How can I address files with the same name for a number of folders?
It is not even possible "by hand" so there is no way to do that. You can not place two files with the same name at the same loc...
How can I address files with the same name for a number of folders?
It is not even possible "by hand" so there is no way to do that. You can not place two files with the same name at the same loc...
8年以上 前 | 0
| 採用済み
回答済み
How to join two numeric arrays into a single string?
I don't know if its faster but you can try str = [sprintf('%f:',A) sprintf('%f:',B)]; str(end) = [];
How to join two numeric arrays into a single string?
I don't know if its faster but you can try str = [sprintf('%f:',A) sprintf('%f:',B)]; str(end) = [];
8年以上 前 | 1
回答済み
How can I calculate directional vector of a line connecting two points?
Startpoint = [1 2]; Endpoint = [3 3]; direction = Endpoint - Startpoint; direction_scaled = direction/norm(direction); % ...
How can I calculate directional vector of a line connecting two points?
Startpoint = [1 2]; Endpoint = [3 3]; direction = Endpoint - Startpoint; direction_scaled = direction/norm(direction); % ...
8年以上 前 | 1
回答済み
Replacing NaN with value in previous column
Very simple solution/idea: I suppose you have a vector v = [14 NaN 9 NaN 13 NaN]; you can get a Mask with the positio...
Replacing NaN with value in previous column
Very simple solution/idea: I suppose you have a vector v = [14 NaN 9 NaN 13 NaN]; you can get a Mask with the positio...
8年以上 前 | 0
回答済み
How to connect existing simulink signal to an input port of the block programmatically?
You can use the command: h = add_line('sys','oport','iport') for documentation see <http://de.mathworks.com/help/simuli...
How to connect existing simulink signal to an input port of the block programmatically?
You can use the command: h = add_line('sys','oport','iport') for documentation see <http://de.mathworks.com/help/simuli...
8年以上 前 | 0
回答済み
perform an action on part of a column in a matrix
M %your matrix maskData = cumsum(M(:,2)); for i=0:max(maskData) mask = maskData==i; meanValue = mean(M(mask,1)); ...
perform an action on part of a column in a matrix
M %your matrix maskData = cumsum(M(:,2)); for i=0:max(maskData) mask = maskData==i; meanValue = mean(M(mask,1)); ...
8年以上 前 | 0
回答済み
Code Generation Optimization for Stateflow vs Code Generation Optimization for Block-wise implementation
It is not possible to give a general answer to this question. But you may take a look at <http://ch.mathworks.com/matlabcentral...
Code Generation Optimization for Stateflow vs Code Generation Optimization for Block-wise implementation
It is not possible to give a general answer to this question. But you may take a look at <http://ch.mathworks.com/matlabcentral...
8年以上 前 | 0
回答済み
Detect changed value in an array
You can simply compare a copy of the original vector with the actual vector. A = [1 ;2; 3]; B=A; B(1)=5; % change the ar...
Detect changed value in an array
You can simply compare a copy of the original vector with the actual vector. A = [1 ;2; 3]; B=A; B(1)=5; % change the ar...
8年以上 前 | 0