Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

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

mehr als 11 Jahre vor | 0

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

mehr als 11 Jahre vor | 0

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

mehr als 11 Jahre vor | 0

Beantwortet
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

mehr als 11 Jahre vor | 0

| akzeptiert

Frage


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

mehr als 11 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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

mehr als 11 Jahre vor | 2 Antworten | 0

2

Antworten

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

mehr als 11 Jahre vor | 0

| akzeptiert

Frage


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

mehr als 11 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 11 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 11 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 12 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 12 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 12 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


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

mehr als 12 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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 ?

mehr als 12 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 12 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 12 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 13 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 13 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

Frage


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

fast 13 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 13 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 13 Jahre vor | 1 Antwort | 0

1

Antwort

Mehr laden