Solved


Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

4 months ago

Solved


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

4 months ago

Solved


Add two numbers
Given a and b, return the sum a+b in c.

4 months ago

Solved


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

5 months ago

Answered
Cannot find the pointers in my Simulink model, need to remove them for code generation
After some more detective work, I've found the issue. One of my scripts used the Matlab 'Find' function, which is not supported ...

2 years ago | 0

| accepted

Question


Cannot find the pointers in my Simulink model, need to remove them for code generation
Hello all, I am relatively new in the ways of code generation in Simulink and I've run into a problem. When I try to convert a...

2 years ago | 2 answers | 0

2

answers

Question


How to write a specific bus signal label to a string variable
Hello all, this might be an odd question, but I want to know if there is a way to write the full path of a bus signal to a stri...

2 years ago | 1 answer | 0

1

answer

Answered
Alternatives to 'For Each subsystem' that are compatible for PLC Code generation
Problem has been solved by updating to Matlab R2023a. The new code generator is compatible with the ForEach subsystem.

2 years ago | 0

| accepted

Question


Alternatives to 'For Each subsystem' that are compatible for PLC Code generation
Hello all, For a project, I am making use of the For Each subsystem in my Simulink model. I have a set of values for one of the...

2 years ago | 1 answer | 0

1

answer

Answered
Why do I receive error message "This requires the Fixed-Point Designer license." for a simple matlab function?
I have found the problem. The data type going into the gain blocks is Int32. When multiplied by 0.01, the output data type is sf...

2 years ago | 0

| accepted

Question


Why do I receive error message "This requires the Fixed-Point Designer license." for a simple matlab function?
Hello all, I have included a Matlab Function block in my Simulink model with a very simple script. The script checks if a certa...

2 years ago | 2 answers | 0

2

answers