Solved


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

meer dan 10 jaar 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 ...

meer dan 10 jaar ago

Solved


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

meer dan 10 jaar ago

Solved


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

meer dan 10 jaar ago

Solved


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

meer dan 10 jaar ago

Solved


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

meer dan 10 jaar ago

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

meer dan 10 jaar ago | 0

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

meer dan 10 jaar ago | 0

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

meer dan 10 jaar ago | 0

Answered
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

meer dan 10 jaar ago | 0

| accepted

Question


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

meer dan 10 jaar ago | 0 answers | 0

0

answers

Question


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

meer dan 10 jaar ago | 2 answers | 0

2

answers

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

meer dan 10 jaar ago | 0

| accepted

Question


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

meer dan 10 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 10 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 10 jaar ago | 1 answer | 0

1

answer

Question


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

bijna 11 jaar ago | 1 answer | 0

1

answer

Question


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

bijna 11 jaar ago | 1 answer | 0

1

answer

Question


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

ongeveer 11 jaar ago | 3 answers | 0

3

answers

Question


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

ongeveer 11 jaar ago | 2 answers | 0

2

answers

Question


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 ?

meer dan 11 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 11 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 11 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 11 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 11 jaar ago | 1 answer | 0

1

answer

Answered
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

meer dan 11 jaar ago | 0

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

meer dan 11 jaar ago | 0

Question


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

meer dan 11 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 11 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 11 jaar ago | 1 answer | 0

1

answer

Load more