Community Profile

# Vivek

### Volvo Cars

Last seen: 13 jours il y a Actif depuis 2013

All

#### Content Feed

Afficher par

A résolu

Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...

presque 4 ans il y a

A résolu

Mandelbrot Numbers
The <http://en.wikipedia.org/wiki/Mandelbrot_set Mandelbrot Set> is built around a simple iterative equation. z(1) = c z...

plus de 4 ans il y a

A résolu

Function Iterator
Given a handle fh to a function which takes a scalar input and returns a scalar output and an integer n >= 1, return a handle f...

plus de 4 ans il y a

A résolu

Find best placement for ordered dominoes (harder)
Given a list of ordered pairs, find the order they should be placed in a line, such that the sum of the absolute values of the d...

plus de 4 ans il y a

A résolu

Find best domino orientation
Given a list of pairs, find the orientation they should be placed in a line, such that the sum of the absolute values of the dif...

plus de 4 ans il y a

A résolu

Find perfect placement of non-rotating dominoes (easier)
Given a list of ordered pairs, find the order they should be placed in a line, such that the sum of the absolute values of the d...

plus de 4 ans il y a

Question

Want to remove unused data/event from Stateflow
Hi Friends, I want to remove the data/events declared in Stateflow in model properties (data dictionary) but not used in the ...

plus de 6 ans il y a | 1 réponse | 0

### 1

réponse

A résolu

Simple equation: Annual salary
Given an hourly wage, compute an annual salary by multiplying the hourly wage times 40 and times 50, because annualSalary = hour...

environ 7 ans il y a

A résolu

Logic variables
* Assign isAvailable with true.

environ 7 ans il y a

A résolu

Compute total cost
A soda costs 2 dollars. A taco costs 3 dollars. Write a statement that assigns totalCost with the total meal cost given the numb...

environ 7 ans il y a

Question

Possible to include comments in Signal builder's test case excel file?
I write test cases in excel and pass it to model through Signal builder block. I just want to include a column in excel for incl...

environ 7 ans il y a | 1 réponse | 0

### 0

réponse

Question

Can we add/remove a property in Simulink.Signal? Example: By default it contains below fields 'CoderInfo' 'Descri...

plus de 7 ans il y a | 1 réponse | 0

### 1

réponse

A résolu

Make a full wave rectifier
Produce a full wave rectifier waveform for the given sine wave source. For a sine wave input, the output of the full wave rec...

plus de 7 ans il y a

A résolu

Make a half wave rectifier
Produce a signal that outputs the given sine wave source when it is greater than zero and outputs zero when it is less than zero...

plus de 7 ans il y a

A résolu

Produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/add-offset-eqn.png>> You should see a downward...

plus de 7 ans il y a

A résolu

Produce a sine wave
Produce a sine wave with amplitude 3: <<http://blogs.mathworks.com/images/seth/cody/sine-eqn.png>>

plus de 7 ans il y a

A résolu

Add a block to a model
Produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/add-block-eqn.png>> In this case, the slope of...

plus de 7 ans il y a

A résolu

Produce a cosine wave
Produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/cosine-eqn.png>>

plus de 7 ans il y a

A résolu

Connect blocks in a model
Connect the blocks in the model to produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/connect-blocks...

plus de 7 ans il y a

A résolu

Free passes for everyone!
_Simply return the name of the coolest numerical computation software ever_ *Extra reward* (get a _freepass_): As an addit...

plus de 7 ans il y a

A résolu

Circle area using pi
Write a statement that assigns circleArea with the circle's area given circleRadius. Use the built-in mathematical constant pi. ...

plus de 7 ans il y a

A résolu

Assigning a sum
* Write a statement that assigns numCoins with numNickels + numDimes.

plus de 7 ans il y a

A résolu

Is my wife right?
Regardless of input, output the string 'yes'.

plus de 8 ans il y a

Question

Unexpected output DT because of Inherit via back propagation
I am not clear what is happening here. Using Matlab 2010b. I mentioned the DataType(DT) of blocks near as annotation. <</ma...

plus de 8 ans il y a | 1 réponse | 0

### 0

réponse

Question

Conditions and Actions in Stateflow through script.
How to get/set the conditions and actions mentioned inside stateflow through M script?

presque 9 ans il y a | 1 réponse | 0

### 0

réponse

Question

How to get the window size of the Simulink model/
Actually in my simulink model, if logic is small, then I want to adjust the window size to fit the logic. To achieve this I ...

presque 9 ans il y a | 1 réponse | 0

### 0

réponse

Question

Code generation for Level 2 M-S Function
I am using a level 2 matlab s function in my model. When I try to generate code, got a error "tlc not found". Don't know to ...

environ 9 ans il y a | 1 réponse | 0

### 0

réponse

A répondu
How to seperate a cell?
for i=1:length(A) eval(['A',num2str(i),'=A{',num2str(i),'}']); end If you are writing a function, then specify the ...

environ 9 ans il y a | 0

Question

Pass Value to Inport
I do some calculation in mask subsystem workspace and I just want to pass it. Inside that mask subsystem only inport, outport an...

environ 9 ans il y a | 1 réponse | 0

### 0

réponse

Question

In built M-file for S Function?
I created a S function block. But I dont want to store the Mfile in path. If I use only the Level2 M-S Fcn block(Not the respec...

environ 9 ans il y a | 1 réponse | 0

réponse