Risposto
Hello Ruhi, Please try to edit line 7 as follows : Before : add_block('built-in/Inport', ['/Test' '/IN1'],'Position',[140 9...

circa 4 anni fa | 0

| accettato

Risposto
save workspace BUT with another name!
please refer an following URL save save filename save ('filename') For example, if you want to save it as 'test', you would ...

oltre 4 anni fa | 1

| accettato

Inviato

To set name of the port block and propagation signal name.

Risolto

Get the length of a given vector
Given a vector x, the output y should equal the length of x.

oltre 4 anni fa

Risolto

Find max
Find the maximum value of a given vector or matrix.

oltre 4 anni fa

Risposto
Local variable created as global in code.
In the flowchart, initialize as a condition action before the condition.

oltre 4 anni fa | 0

Risposto
How to plot multiple graphs from Simulink in Matlab
The workspace stores only the latest results, but if you use the signal log, the Simulation data inspector stores all the result...

oltre 4 anni fa | 0

Risolto

Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

oltre 4 anni fa

Risposto
Problems encountered when converting simulink model including look-up table to hdl code
please try to use my modified model.

oltre 4 anni fa | 1

| accettato

Risposto
Where is the declaration and definition of C code corresponding to min,max,abs blocks
math.h is standard library. So, mathematical functions are defined in math.h. https://en.wikipedia.org/wiki/C_mathematical_func...

oltre 4 anni fa | 1

Risposto
Assign fields to structure array in Simulink
You can use MATLAB Function as following. I attached example model and .mat included struct data.

oltre 4 anni fa | 0

| accettato

Risposto
How to round only two values after decimal point
You can use 'round' block and 'subtract' block.

oltre 4 anni fa | 0

Risolto

Back to basics 3 - Temp Directory
Covering some basic topics I haven't seen elsewhere on Cody. Return a string that is the path to the system's current temp di...

oltre 4 anni fa

Risolto

Back to basics 15 - Benchmark
Covering some basic topics I haven't seen elsewhere on Cody. Return an array of the benchmark values for MATLAB.

oltre 4 anni fa

Risolto

Number of toolboxes?
Return a number equal to the number of toolboxes available to the Cody solvers.

oltre 4 anni fa

Risolto

Return area of square
Side of square=input=a Area=output=b

oltre 4 anni fa

Risolto

Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

oltre 4 anni fa

Risposto
Why is the data saved in a struct when 'To Workspace' block is used?
"ans" is most recent answer. ans "out" is simulation output (default setting of model configuration)

oltre 4 anni fa | 0

| accettato

Risolto

oltre 4 anni fa

Risolto

Area of a triangle
A triangle is given with base *'b'* ,vertical hight *'h'* . then find it's area.

oltre 4 anni fa

Risposto
how do I compare simulink data dictionaries
Please try following script. Unzip attached file. execute the script. visdiff('dd1.sldd','dd2.sldd') For simple file differe...

oltre 4 anni fa | 1

Risposto
That is the correct behavior. .slxc files are Simulink cache files. These files contain build artifacts that can speed up simul...

oltre 4 anni fa | 0

| accettato

Risposto
Modifying my fprintf code.
Please execute following script. for n=9:-1:2 theta=pi./n; solution=cos(theta); fprintf('cos(pi/%d) = %7.5f\n',n...

oltre 4 anni fa | 0

Risposto
Where is the declaration and definition of C code corresponding to min,max,abs blocks
For example, min block generate model.c and model.h. math.h is included in model.h

oltre 4 anni fa | 0

Risposto
Can anyone help me how many color representation are there in simulink?
It may have 16,777,216. Because There are 256 color settings for each of RGB.

oltre 4 anni fa | 0

Risposto
I attahced example model, hedder and souce C file. Please try to simulate there. Call C Library Functions in C Charts

oltre 4 anni fa | 0

Risolto

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:...

oltre 4 anni fa

Risposto
ブロックの背景色一括変更
Yamazaki様 以下の様なプログラムは如何でしょうか？ ret = find_system(bdroot(gcs),'BlockType','Goto'); % モデル内からGotoブロックをリストする for N = 1:length(...

oltre 4 anni fa | 0

| accettato

Risolto

Find the index of elements in a string vector
In the vector of v, find the index of elements specified by a. v = ["Lion","Koara","Elephant","Snake","Dog","Cat","Camel"]; ...

oltre 4 anni fa

Risposto