Community Profile

photo

madhan ravi


Last seen: Today
3.906 total contributions since 2018

Communication through MATLAB is always better than arguing.

madhan ravi's Badges

  • First Review
  • First Submission
  • Thankful Level 4
  • 12 Month Streak
  • Ace
  • Knowledgeable Level 4
  • Promoter
  • Commenter
  • Revival Level 3
  • Solver
  • First Answer

View details...

Contributions in
View by

Answered
problem with the sum function
norma2 = sqrt(sum(X.^2))

25 minuten ago | 0

Answered
How to make multiple strings arrays of repeating word and number?
n = 18; "var" + (1:n)

35 minuten ago | 0

| accepted

Answered
How do you graph data from a table that is in a cell array ?
TaBlE = table; TaBlE.a = rand(10); plot(TaBlE.a)

ongeveer een uur ago | 0

Answered
How to merge two arrays/rearrange two table colums one by one
AB = reshape([A; B], 1, [])

ongeveer een uur ago | 1

Answered
Month as a two digit number
ix = m < 10 % m is the output of the month(...) , by the way it can be set by Format in datetime(...) M = "" + m M(ix) =...

ongeveer 4 uur ago | 0

Answered
Split a string in this way
strsplit(STRING,'_') %or regexp(STRING, '\_', 'split')

ongeveer 5 uur ago | 0

Answered
Unrecognized function or variable 'length' ???
length(Uu) = len1; % naming a variable length is a terrible idea!!! clear length

ongeveer 5 uur ago | 1

| accepted

Answered
livescript: move to next section
You could select that particular section and press ctrl/cmd + enter to run it.

ongeveer 5 uur ago | 0

Answered
select a subset of images according to the "image name list.txt" that matches a "1" in the "ground truth list.txt"
c = "image name 1.txt" c1 = "ground truth 1.txt" C = c(regexp(c, '\d*', 'match') == regexp(c1, '\d*', 'match'))

ongeveer 7 uur ago | 0

Answered
MATLAB Answers Wish-list #5 (and bug reports)
Pressing ctrl/cmd + k brings up the hyper link dialog box , but why does it make the traget url empty and the display text with ...

ongeveer 7 uur ago | 0

Answered
Concatenate two cell colums with different length, in Variables window it is possible while horzcat gives "not consistent" error.
c = {a, b} %? if this doesn't do what you want , you need to illustrate with an expected result.

ongeveer 8 uur ago | 0

Answered
Matrix with elements as polynomial
ROOTS = cell(numel(X), 1); for k = 1:numel(X) ROOTS{k} = roots(sym2poly(X(k))); end celldisp(ROOTS)

ongeveer 8 uur ago | 2

| accepted

Answered
Solve symbolic equation - answer gives equation, not number
double(sol_x)

ongeveer 8 uur ago | 0

Answered
how to create an array of all permutations
doc randperm

ongeveer 17 uur ago | 0

Answered
How to plot data from a table that is in a cell array?
use *hold on*

ongeveer 19 uur ago | 0

Answered
Invalid indexing or function definition
syms h [1, 5] z = h + 5

1 dag ago | 0

Answered
Reducing columns and rows numbers to match a certain matrix.
Find the minimum number of rows and columns and index every matrix until the minimum.

1 dag ago | 1

Answered
how to sketch the domain of f(x y)= sqrt(y-x^2)/(1-x^2)
doc fimplicit

1 dag ago | 1

| accepted

Answered
Row position and find value
Replace Accelval with [rows, columns] = ... and use the rows to index the table of column 3

2 dagen ago | 0

| accepted

Answered
Matrix Array Reshaping by fixed columns
reshape(matrix, [], 252)

2 dagen ago | 0

Answered
How to make two column vectors from cell vector with space delimiter?
S = regexp(C, '\s', 'split'); s = cat(1, S{:}); datE = s(:,1) HouR = s(:,2)

2 dagen ago | 1

| accepted

Answered
Using value stored in a matrix in a prompt.
doc sprintf

2 dagen ago | 0

| accepted

Answered
Not able to get count of each elements in array itself
[~, ~, c] = unique(x); v = accumarray(c, 1); Wanted = v(c)

2 dagen ago | 1

Answered
How to get the real&imaginary mode of the symbolic complex equation
syms A B real Function = A+1j*B rewrite(abs(Function),'sqrt')

2 dagen ago | 0

| accepted

Answered
Create a vector for each element in another vector to constitute a matrix
[repelem(v, numel(v)), repmat(v, numel(v), 1)] %or [V1, V2] = meshgrid(v,v) [V1(:), V2(:)]

2 dagen ago | 0

Answered
How to solve the following equations with a given data. I need the correct coding to solve .
The below code is the way to solve them but the answer is no way near to get what you want , you have to experiment yourself to ...

2 dagen ago | 0

Answered
A is a matrix , what does this statement A([1,end],[1,end]) mean ?
That's equivalent to: [A(1,1), A(1,end);... A(1,end), A(end,end)] https://www.mathworks.com/company/newsletters/articles/m...

3 dagen ago | 1

| accepted

Answered
Subtracting values in an array between all the elements one by one
[X, Y] = meshgrid(x,y); XY = [X(:), Y(:)]; Wanted = -diff(XY)

3 dagen ago | 1

Answered
Operations depending on the row/column
f2(1:169,:) = -f2(1:169,:)

3 dagen ago | 0

| accepted

Load more