質問


Signal did not align
I using Simulink test and add base line result from excel file. But signal compare dis not align as following picture. Do y...

4年以上 前 | 1 件の回答 | 0

1

回答

質問


How to know actived transition between states
Dear bros, As we know, we can view state activity by using the Simulation Data Inspector or Active State Data as following link...

4年以上 前 | 1 件の回答 | 0

1

回答

質問


Simulink Design Verifier Dead Logic
I used simulink design verifier to check my state machine model. And some dead logics are detected. Red line is dead logic,...

5年弱 前 | 1 件の回答 | 0

1

回答

回答済み
Help understanding example for Inlining Matlab S-function
You double click to Inport block, choose the Signal Attributes tab

5年弱 前 | 0

| 採用済み

回答済み
Prolemn with close Matlab folder
You need to check movefile function which you used is OK or NG Original, after cd command. 2. after use movefile 3. afte...

5年弱 前 | 1

| 採用済み

回答済み
User-defined function is "unrecognized" in command window.
You copy only print_list function to other file and save print_list.m in Matlab It will be OK

5年弱 前 | 1

| 採用済み

回答済み
Square wave to bits in Simulink
You can write waveform data to workspace via To Workspace block or Scope

5年弱 前 | 0

回答済み
Write a for loop that iterates from 1 to numberSamples to double any element's value in dataSamples that is less than minValue. Ex: If minVal = 10, then dataSamples = [2, 12, 9, 20] becomes [4, 12, 18, 20].
Let's try minVal = 10; dataSamples = [2, 12, 9, 20]; dataSamples(find(dataSamples <= minVal)) = dataSamples(find(dataSamples...

5年弱 前 | 0

回答済み
how to run multiple xlsx files once
You can use following steps: % select path work_path = uigetdir('pwd', 'Select folder'); % find all xlsx files in folder %...

5年弱 前 | 0

回答済み
finding the position of values in a matrix
Try [~,idx]=setdiff(X,Y,'rows'); idx_rows=setdiff(1:size(X,1),idx); idx_rows = 2 3 4 6 7

5年弱 前 | 0

回答済み
Getting particular number from 2 rows.
Let 's try a = {'Scenario_1_mode_1', 'Scenario_2_mode_1', 'Scenario_3_mode_1', 'Scenario_4_mode_1'}; a = a'; for i=1:lengt...

5年弱 前 | 0

回答済み
how to select specific column and rows in excel
You can use readtable for import data from excel to MATLAB https://www.mathworks.com/help/matlab/import_export/read-spreadsheet...

5年弱 前 | 0

回答済み
Extension change from .txt to .Z14
You can copy file as following file1='A.txt' file2=strrep(file1,'.txt','.Z14') copyfile(file1,file2)

5年弱 前 | 1

| 採用済み

回答済み
defining simulink variables through matlab srcript
You can create variables to workspace and in simulink, enable acess to base workspace. For create variables via script, let 's ...

5年弱 前 | 0

回答済み
I am trying to create a game where a user guesses a number between 1 and 100 using a while loop. But I am getting stuck in an infinite loop. Please help?
Let 's try y=randi(100); while (1) prompt= '\nguess a value between 1 and 100: '; x=input(prompt); if (...

5年弱 前 | 2

回答済み
how to change the shape of Simulink Subsystem?
you mean that change mask of subsystem block, right? If it is right, you can right click to subsystem block, select Mask -> Cre...

5年弱 前 | 0

回答済み
I wanted to combine these cells into a table.
Do it as following: load('matlab.mat'); out = cell2mat(new_raw(1,1)); for i=2:length(new_raw) out = horzcat(out, cell2ma...

5年弱 前 | 0

| 採用済み

回答済み
Access lower level fields in structure
Let 's try sm = table2array(cell2table(struct2cell(foo))); Wdata = [sm(:).W];

5年弱 前 | 0

| 採用済み

回答済み
calling a value in a matrix
Let 's try X = [1 3 4 5]; Y = [2 6 7 8]; [max_val, idx] = max(Y); X_idx = X(idx);

5年弱 前 | 1

| 採用済み

回答済み
Getting the low and high years
Let 's try load('zyrs.mat'); out = year_SPI(find(abs(year_SPI(:,2)) >1), :);

5年弱 前 | 0

| 採用済み

回答済み
Problem with code reusabilty of inlined S-Function
You need to add ssSetOptions in mdlInitializeSizes(SimStruct *S) function in your C S function as following. ssSetOptions(S...

5年弱 前 | 0

| 採用済み

回答済み
Arrangement of matrix elements in specific order
A = [1 2 4 3]; B = [2 3 1 4]; C = [4 2 3 1]; for i=1:4 D(find(C == A(i))) = B(i); end

5年弱 前 | 1

| 採用済み

回答済み
How to add strings?
C = horzcat(a, b)

5年弱 前 | 1

| 採用済み

回答済み
How do you graph a function that refers to the function in its value?
what is y(0)? please refer following example. y(1) = 0; y(2) = 1; for i = 3:20 y(i) = (y(i-1)+y(i-2))/2; end plot(y) ...

5年弱 前 | 0

| 採用済み

回答済み
How can references block which same Model Reference block???
From 2019b, simulink able to subsystem reference. It is very power full

5年弱 前 | 0

| 採用済み

質問


How to check if state is parent state or substate ???
Dear bros !!! When I use following code, OutputMonitoringMode of A1 and B are 'Self activity' and A is 'ChildActivity' coressp...

5年弱 前 | 1 件の回答 | 0

1

回答

質問


Check if variable data types in stateflow transitions is suitable or not
Hi all, As title, I want to check if variable data types in stateflow transitions is suitable or not by m script, but I can get...

約5年 前 | 0 件の回答 | 0

0

回答

質問


Use intersect function in model
Dear all, I need to get same elements of matrix (follow row) same as intersect function such as following: a = [ 3 0; 3 0;...

約5年 前 | 1 件の回答 | 0

1

回答

質問


SIL simulation open window port
Hi bros, When I run model which include SIL block, SIL executed file open window port. I think it check license of Embedded co...

約5年 前 | 0 件の回答 | 0

0

回答

質問


How to create html report after using detect design error??
Hi bros, I used simulink design verifier for check my model. It seem OK when I use Analysis > Design Verifier > Detect Design ...

約5年 前 | 0 件の回答 | 0

0

回答

さらに読み込む