Answered
using a variable to change destination path in movefile
Your first problem is that the first input into movefile should be a char array: movefile('C:/users/alast/Documents/LAB 5/image...

5 meses ago | 0

Answered
Transition blockset in simulink
To swtch between the block you can use an If-Action subsystem, like the example here: https://www.mathworks.com/help/simulink/sl...

5 meses ago | 0

Answered
How to read an xls file in matlab which has latitude (suffixed with N), longitude (suffixed with E), time (prefixed with the month), and a value corresponding to latitude and longitude in it?
You can use regexprep to clean up the values: opts = detectImportOptions('Test.xlsx', 'NumHeaderLines', 2, 'VariableNamesRange'...

5 meses ago | 0

| accepted

Answered
How can I give main title for multi-graphs?
figure; plot(rand(5,1)); annotation('textbox', [0.45, 0.5, 0.5, 0.5], 'String', 'Global Title', ... 'FontSize', 14, 'Fo...

5 meses ago | 1

Answered
Replace missing cell entries without replacing whitespaces.
for i = 1:numel(A) if ismissing(A{i}) A{i} = 'REPLACED'; end end

5 meses ago | 1

Answered
Checking disjointness of Stateflow truth tables?
After waiting some years and looking into this several times, the answer is that disjointness checking is not supported.

6 meses ago | 0

| accepted

Answered
How can I apply labels to project files when the project references another project?
I asked MathWorks about this. Propagating labels from a referenced project is not currently supported.

6 meses ago | 0

| accepted

Answered
Callback function not found for dynamically created app UI component
I ended up contacting MathWorks support for this. The solution is to call the function like so: app.DropDown = uidropdown(app.U...

6 meses ago | 1

| accepted

Question


Callback function not found for dynamically created app UI component
I would like to dynamically/programmtically create a uidropdown component that calls a function when its value is changed. Howev...

6 meses ago | 2 answers | 1

2

answers

Question


What is the best way to count the occurrences of two table columns together?
I have a table that looks like this: >> A = {'A'; 'B'; 'C'; 'A'; 'C'; 'C'; 'B'}; >> B = {'x'; 'y'; 'z'; 'xx'; 'z'; 'z'; 'y'}; ...

6 meses ago | 3 answers | 0

3

answers

Answered
how to find the parameter name for any block in the simulink to use it in set_param command?
To programmatically find out what parameters a block has, get its handle: h = get_param(gcb, 'Handle'); or h = gcbh; and t...

7 meses ago | 0

Answered
How to read a variable in set_param function?
set_param('Transient/Gain', 'Gain', A)

7 meses ago | 0

Answered
How to collect cyclomatic complexity of linked block?
To break links to libraries, you need to change the 'LinkStatus' parameter. For example: set_param('linked_block_name', 'LinkSt...

7 meses ago | 1

| accepted

Answered
Citing MATLAB products or relative webpage
@Misc{miller2021simscape, author = {Steve Miller}, url = {https://github.com/mathworks/Simscape-Multibody-C...

7 meses ago | 0

| accepted

Answered
Modify Repmat function to concatenate array
If you want to understand how repmat works, take a look at the syntax and description in the documentation page: https://www.mat...

7 meses ago | 0

Answered
FROM SPREADSHEET -BLOCK SIMULINK
Please read about From Spreadsheet blocks here: https://www.mathworks.com/help/simulink/slref/fromspreadsheet.html The CSV file...

7 meses ago | 0

Question


How can I apply labels to project files when the project references another project?
I have a main project that I want to use as part of several sub-projects. The idea is that the main project sets up global commo...

7 meses ago | 1 answer | 0

1

answer

Question


How to reorder project shortcuts?
I am trying to create several project shortcuts and would like to order them in a specific way. In the image below, I have 3 sho...

7 meses ago | 1 answer | 0

1

answer

Answered
Receive Inputs into Simulink
Have you taken a look at FromWorkspace and ToWorkspace blocks? If you have the user create all the data in the Matlab workspace ...

8 meses ago | 0

Question


Difference between Simulink diagnostics and Simulink Design Verifier error checking?
Simulink Design Verifier can perform error checking to determine whether a model contains dead logic, division by zero, overflow...

10 meses ago | 1 answer | 0

1

answer

Question


How to continue testing with SDV to extend results?
I am testing a large industrial Simulink model with SDV in order to get the values of structural coverage metics. I originally s...

10 meses ago | 1 answer | 0

1

answer

Answered
How to read data from a CSV into a column vector
>> m = readmatrix('test.csv') m = 1 2 3 4 5 6 7 8 >> m = m(:) m = 1 ...

11 meses ago | 1

Answered
what is the meaning of this operation?
Firstly, d is an invalid matrix because it must have consistent dimensions. The second row has 5 elements whereas the rest have ...

11 meses ago | 1

Answered
How to cut out/delete rows in a cell
It removes up to the 127th element because that's what the code says to do where it has (126:end). If you want to remove the f...

11 meses ago | 0

Answered
Debugging a piece of code
How are you running the shellsort function? From the error message you provided, it looks like you are not giving shellsort any ...

11 meses ago | 0

Answered
Find repeating rows in a matrix and replace with zeros
This can probably be optimized, but it works to replace rows that don't occur more times than the set threshold, in this case 3 ...

11 meses ago | 0

| accepted

Question


Preallocating a cell array of chars?
Is there a better way of preallocating a cell array of empty chars than using a for loop or deal? Cells can contain any data typ...

11 meses ago | 1 answer | 1

1

answer

Answered
Why is does one of the blocks in my library appear teal in the library browser but white when opened?
Did you try right-clicking in the model and clearing the highlighting, or right-clicking on the block and changing the backgroun...

alrededor de 1 año ago | 0

Question


How to use non-unique node names in a digraph?
I am trying to plot a Simulink model as a graph. I am using the digraph function, but I am running into issues because Simulink ...

alrededor de 1 año ago | 1 answer | 0

1

answer

Answered
How to change filter settings for slxmlcomp.compare?
I contacted MathWorks support. It is currently not possible to change filters from the command line using the slxmlcomp.compare ...

alrededor de 1 año ago | 0

| accepted

Load more