Community Profile

# Pavithra Ashok Kumar

### MathWorks

27 total contributions since 2016

View details...

Contributions in
View by

Solved

Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

casi 4 años ago

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

casi 4 años ago

Solved

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

casi 4 años 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...

casi 4 años ago

Solved

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

casi 4 años ago

Solved

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

casi 4 años 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 ...

casi 4 años 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...

casi 4 años ago

Solved

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

casi 4 años ago

How can I view the source of a webpage using webread
Hi From your description, I am assuming you are trying to create a web crawler. In that case, you would have to use "webread"...

casi 4 años ago | 0

How to put toolbar using app designer?
Hi For now, the uifigure does not support uimenus. The list of components that are supported can be found <http://in.mathwork...

casi 4 años ago | 1

Getting Values from c++ programm as simulink input

casi 4 años ago | 0

Getting a propeller to produce lift

casi 4 años ago | 0

Cell/table Reformat
Hi The "readtable" treats the entries in the first line of the file as variable names. So updating the first line of your .da...

casi 4 años ago | 1

| accepted

Statistics from a writetable
Hi I am assuming you are trying to use statistics(for eg. mean) for variable size arrays. Try using the "end" to denote the end...

casi 4 años ago | 0

How to translate these functions into a Matlab rungekutta or ode45
Hi, You can use the ode45 method with syntax as shown below: ode45(F_xy, [t_i t_f], y(1)) Ensure that you are substituti...

alrededor de 4 años ago | 0

How do I exclude data knowing the rownumbers?
As per my understanding, l = array of indices that needs to be preserved and A is the complete matrix. If you have the list of ...

alrededor de 4 años ago | 0

How to find dependent column vectors of a matrix for a given column vector?
One of the ways to find this would be to do an element-wise ratio and check if the multiple is constant. The same can also be...

alrededor de 4 años ago | 0

Passing a structure of parameters into and S-function in MATLAB
I understand that you want to pass all the parameters as a struct using S-Functions. You can do this by using a "Bus" in the Sim...

más de 4 años ago | 0

What Matlab version support Java 8 (class file version per the JVM Specification)?
I understand you want to use Java 8 with MATLAB. However, MATLAB R2015b was also shipped with Java 1.7( Refer the compiler requi...

más de 4 años ago | 0

How can I get the nodes/vertices traversed from graphallshortestpaths function?
I understand that you want to get the shortest path to be traversed between two nodes. However, as the doc suggests, "graphallsh...

más de 4 años ago | 1

| accepted

I have a set of (x,y) coordinates that I need to mark on a given image in a given color. Can someone help me in doing this. Thanks in advance.
I understand you want to add points to an existing image . You can do it in two ways. 1. Using MarkerInserter object from Com...

más de 4 años ago | 1

Solving an algebraic loop with state port
I understand that you want to remove the algebraic loops in your model. THis can be removed either in many ways. Some of them ar...

más de 4 años ago | 0

How to fill an area that is half NaN half variable in the figure?
Assuming the gaps are not filled when the values are NaN, the lines are not plotted and it is not a closed polygon anymore. Henc...

más de 4 años ago | 0

Using simulink to call c++ code via an s-function
The issue may occur because of a mismatch in code settings. The library and associated header file should be included in both t...

más de 4 años ago | 0