Community Profile # Soniya Jain

Last seen: 24 días ago Active since 2021

#### Statistics

• • #### Content Feed

View by

How do I plot a function with a variable that has multiple values?
Note that the below code will just plot a graph with the marker we mention and not any line on it. X = [0, 0.5, 1]; Y = [0.5];...

3 meses ago | 0

find sum of the run length of non zero elements between zeros of a matrix
a=[ 1 2 3 0 0 0 4 5 6 0 0 0 7 8 0 0 9 0 0 ]; j = 0; i = 1; while i ~= (length(a)+1) if a(i)~=0 sum = 0; ...

3 meses ago | 0

i have two arrays in matlab code and i want to plot them by two lines on the same graph
You can use plot function, plot(Array1); hold on; plot(Array2); hold off; hold will retain current plot when adding new plo...

3 meses ago | 0

find non zero elements in array
As mentioned in the error, that y is non-tunable, so have you tried to select the 'Variable Size' checkbox by specifying the upp...

3 meses ago | 0

How to fill an array with the elements of a for loop?

3 meses ago | 0

| accepted

Hello, i have a table with many rows and 3 columns. In the first column some values are NaN. How can i put NaN values in the other columns in the same rows?
Hey, you can use isnan() function to find the location where values are NaN in the 1st column, A = [NaN,4,7; NaN,5,8; 3,6,9]; ...

3 meses ago | 1