Community Profile

photo

johnson saldanha


Active since 2018

Followers: 0   Following: 0

Statistics

  • Thankful Level 3

View badges

Feeds

View by

Question


Controlling a generic engine block
Im having a engine and a motor connected in parallel to a vehicle body. I do not want the engine to run until the vehicle has re...

5 years ago | 1 answer | 0

1

answer

Question


How can i convert a mechanical rotational domain output signal from rad/s to rpm in simulink?
How can i convert a mechanical rotational domain output signal of a dc motor from rad/s to rpm in simulink? The output after con...

5 years ago | 1 answer | 0

1

answer

Question


how to find a output value at time t for a input value at time t in simulink
I am simulating a model where i need to measure continuous values of output variable Y which im going to use as my feedback to a...

5 years ago | 1 answer | 0

1

answer

Question


how to read multiple files using a function from the previous script
in my 1st script i created the whole code as a function and it returns me a single value in the end. the first two lines of my c...

5 years ago | 1 answer | 0

1

answer

Question


how to find the number of occurances
i have a matrix x=[1 1 1 1 2 2 1 1 3 3 ] i want the output to be x1=[1 2 1 3] and y1=[4 2 2 2] x1 should have the reduced numb...

5 years ago | 1 answer | 0

1

answer

Question


how to find the square of the number
i have a matrix x where x(:,3)=[ 2 3 4 5 6]; i want the output as y(:,1)=[ 6 16 40 96 ]; input and output should be column vec...

5 years ago | 1 answer | 0

1

answer

Question


subtraction on the cells elements
i have a cell array x of size 12*1 and the cells are column vectors of type double x{1,1}=[1 2 5 6 7 7 8 ]; x{2,1}=[ 1...

5 years ago | 1 answer | 0

1

answer

Question


plotting a graph for cell
i have a cell array. it has a 12 rows and 1 column. i want to plot the graph for each cell element in the same graph. each cell ...

5 years ago | 2 answers | 0

2

answers

Question


how to display a value in first column the second column number of times?
suppose i have a column vector x=[1 2 3 4]; and y=[2 3 3.5 4] i want the output as xy=[1 1 2 2 2 3 3 3 3 4 4 4 4]; the num...

5 years ago | 1 answer | 0

1

answer

Question


How to calculate the mean for the number of occurances
suppose i have a cell C where C{1,1}= ( 2 2 2 2 3 3 4 4 5); C{2,1}=(3 4 4 4 5); C{3,1}=(4 5); and so on i want the output ...

5 years ago | 1 answer | 0

1

answer

Answered
finding the increase in values
i did that but im not getting the desired output. im getting the decreasing values too (5 5 5 5 3.75 3.75 3.75 3.75) im g...

5 years ago | 0

Question


finding the increase in values
suppose i have a column matrix a=( 2 2 2 3 3 3 5 5 5 4 4 3 3 3 2 2 3 3 3 4 4 4 5 5 5 4 4 3 3 ) i want to find the constant and...

5 years ago | 2 answers | 0

2

answers

Question


how to separate the non-zero elements from an array
suppose i have a column matrix with non zero elements in between the zeros. i want to put the nonzero values in a cell of differ...

5 years ago | 1 answer | 0

1

answer

Question


how can sort the numbers according to the numbners in the first column
suppose i have a matrix where the first column is x(:,1)=[ 1 1 1 2 2 1 3 3 ] and second column is x(:,2)=[ 2 3 2 4 6 9 7 8 9]; ...

5 years ago | 2 answers | 0

2

answers

Question


finding the mean and max
suppose i have a matrix where the first column is x(:,1)=[ 1 1 1 2 2 1 1 3 1 ] and second column is x(:,2)=[ 2 3 2 4 6 9 7 8 9];...

5 years ago | 2 answers | 0

2

answers

Question


how do i get the higher values into the bins
edges=0:10:103 [~, discrete_x] = histc(x, edges); discrete_x(discrete_x == length(edges)) = length(edges)-1; discrete_x(discr...

5 years ago | 2 answers | 0

2

answers

Question


finding the mean and reducing the value
suppose i have a matrix x=[ 0.01 0.02 0.034 0.045 0.054 0.06] and y=[1 1 1 2 1 1] i want the output to be x1=[0.021 0.04...

5 years ago | 1 answer | 0

1

answer

Question


find the number of occurances
my matrix is x=[ 1 1 1 3 3 4 4 4 6 7] i want the output as y=[ 3 2 3 1 1] i want to find how many times a particular value is ...

5 years ago | 2 answers | 0

2

answers

Question


how to assign weightage
suppose i have a matrix x and the second row has values ranging from 0.2 to 102 and weightage has to be assigned to these depend...

5 years ago | 0 answers | 0

0

answers

Question


how do i discretize negative integers
[~, discrete_x] = histc(x, edges); discrete_x(discrete_x == length(edges)) = length(edges)-1; discrete_x(discrete_x == 0...

5 years ago | 2 answers | 0

2

answers

Question


function instead of discretize
which other function can i use instead of discretize in older version of matlab

5 years ago | 1 answer | 0

1

answer

Question


check for decrease and increase
i have a matrix and check for a column to see if the values are rapidly decreasing in steps of five. how to check for it? for ex...

5 years ago | 4 answers | 0

4

answers

Question


finding values of a matrix
how to find the values of a particular column corresponding to the known index numbers? for ex: the matrix is x and the index ...

5 years ago | 1 answer | 0

1

answer

Question


why am i getting this error and what are the steps to correct it
when importing data from a csv file. im getting the error as "Undefined function 'tabularTextDatastore' for input arguments of...

5 years ago | 1 answer | 0

1

answer