Risolto

Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

quasi 10 anni fa

Risolto

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

quasi 10 anni fa

Risolto

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

quasi 10 anni fa

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

quasi 10 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...

quasi 10 anni fa

Risolto

Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

quasi 10 anni fa

Risposto
I dont see an error
display([' Nif = ',num2str(Nif,'% 10.2f') ' [-]']); missing a ,(comma) after ' Nif = '

quasi 10 anni fa | 0

Risposto
Simulink Constant Block multiple string input
instead of putting qq =[a b c] in constant block update the constant value as [ a b c ]

quasi 10 anni fa | 0

Risposto
What does this line does? "H(ind(:,k), ind(:,k))=S"
assuming k = 4 and ind is an matrix of 4x6(4 rows x 6 columns ) -->ind(:,k) will give u all elements of column 4(value of k) in...

quasi 10 anni fa | 0

Risposto
Can anyone interpret this short code for me?
I guess T_test should get values from T_min to T_max with the interval of ( or step value of ) eps/t_span

quasi 10 anni fa | 0

| accettato

Domanda

how to know whether the model running is in simulation model, code gen mode or in rapid accel mode in script?
In model initialization , If I want to know whether the model running is in simulation model code gen mode or rapid accel mode ...

circa 10 anni fa | 0 risposte | 0

### 0

risposte

Domanda

What is a non-inlined S function
I was trying to create my own library blocks for a model. It simulated , but when i tried to make a build it throw-ed an error ...

circa 10 anni fa | 2 risposte | 0

### 2

risposte

Risposto
I am trying debugg a S function on Visual studio , but I Matlab 2010A cannot locate the visual 2010 compiler , when i do "mex -setup"
Matlab 2010A was launched after Visual studio 2010 , hence visual sudtio didnt had the support for Matlab 2010. They have rele...

circa 10 anni fa | 0

| accettato

Domanda

how to get the port data inside a mask editor parameter/variable of a subsystem ?
Want to read a data on port in the mask editor . I have an script running (which is called in mask editor),depending upon the v...

circa 10 anni fa | 1 risposta | 0

### 1

risposta

Domanda

Can we call Per script , from Level 2 S Function ?
Working on S Function of a block. Using C to write it. Need to call a Perl script once the simulation is over . I know ho...

circa 10 anni fa | 1 risposta | 0

### 1

risposta

Domanda

I am trying debugg a S function on Visual studio , but I Matlab 2010A cannot locate the visual 2010 compiler , when i do "mex -setup"
I am working on S Functions , need to debug them. Visual Studio 2010 is installed in my 32 bit machine. When I try to select...

circa 10 anni fa | 1 risposta | 0

### 1

risposta

Domanda

How to generate S-Function using legacy tool box for a Function having multiple function calls in it
I am working on S-Function and I am still a beginner. For a simple adder function I was able to generate S-function block and...

oltre 10 anni fa | 1 risposta | 0

### 1

risposta

Domanda

Can we call a m-script during model simulation ?:
I want to run a script , which will update some of my parameters in the workspace. Is it possible to call a m-script during mod...

oltre 10 anni fa | 1 risposta | 0

### 1

risposta

Domanda

How to read a text or a .c file without comments into a cell array ?
I have a c file name 'function.c' It have code and comments as well comments are noted with '/*' '*/' Or '//' OR sometimes '...

quasi 11 anni fa | 3 risposte | 0

### 3

risposte

Domanda

Can we get a handle of any .exe file running in Windows using m-scripts ?
If there is a program running in VB++ or in C-Sharp or in Java , Is it possible to do any kind of automation with them, using ...

quasi 11 anni fa | 2 risposte | 0

### 2

risposte

Domanda

What is the range of datatype double in Matlab ?
If we assign any value to a variable , Matlab assigns its data type as double . What is the max range of that variable ?

quasi 11 anni fa | 1 risposta | 0

### 1

risposta

Domanda

How can we add a If-action-subsystem to a any model using m-Scripts ?
I am using a script to add blocks in the model ( using add_block function ) Can any one tell me how can i add a "If Action Su...

quasi 11 anni fa | 1 risposta | 0

### 1

risposta

Domanda

Can we generate macro function in code, using simulink model and RTW EC auto coder ?
We are currently having lot of for loops , and they are just to fetch the data from a constant array in to a local data array ...

circa 11 anni fa | 1 risposta | 0

### 1

risposta

Domanda

How to get a handle of state chart ? and how to read the chart flow using script ?
1.how can I read the number of charts present in the model ? 2.Also how to read a logic inside the state chart ? ( if we consid...

oltre 11 anni fa | 1 risposta | 0

### 1

risposta

Domanda

How to make a variable available for two functions in scripting
I am working on scripts I have a varaible 'xyz' that will be updated in function_1 and i want to read it in function_2 ho...

oltre 11 anni fa | 1 risposta | 0

### 1

risposta

Risposto
pls finding error" Undefined function or variable "t"." while executing
just remove 'char' keyword in the 1st line , and make it as t='hello 123' ; t=uint8(t); .. and so on

oltre 11 anni fa | 0

Risposto
How to increment index value of variable on every click of Push button?
how many variables you have ? are the numbers of variables fixed or they may vary ? If varibales are fixed : suppose we have...

oltre 11 anni fa | 0

Domanda

What is the use of acclerator mode and normal mode of simulation ?
There are few simulation modes : Noraml Acclerator Rapid Acclerator PIL SIL External What are the difference between ...

oltre 11 anni fa | 1 risposta | 0

### 1

risposta

Domanda

What is a differece between a constant and Paremeter in Model simulation ?
what is the differene between constants and parameters in stateflow ? Why are these two different objects used , when one can...

oltre 11 anni fa | 1 risposta | 0

### 1

risposta

Domanda

What is .mex file ?
When ever i simulate a model containing state Chart in it, I generally observe mex files being generated in the current folder d...

oltre 11 anni fa | 1 risposta | 0

risposta