Community Profile

photo

madhan ravi


Last seen: Today
4.358 total contributions since 2018

Communication through MATLAB is always better than arguing.

madhan ravi's Badges

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

View details...

Contributions in
View by

Answered
Can we put all of these str2num in one function?
Usually str2num() is not recommended. Simply use: sum(C1 - '0')

etwa 2 Stunden ago | 0

| accepted

Answered
need help to how to solve this
doc repmat doc repelem

etwa 7 Stunden ago | 0

Answered
How to create a matrix from other matrixes
I undertand your pain of online classes brother. Have a read: <https://www.mathworks.com/company/newsletters/articles/matrix-...

etwa 10 Stunden ago | 0

Answered
extract structure array value
You need to use a loop. <https://www.mathworks.com/help/matlab/matlab_prog/access-data-in-a-structure-array.html#d122e28845 *...

etwa 10 Stunden ago | 0

Answered
Why does putting a space after a function give a vector output?
Is that an assignment or something?? <https://www.mathworks.com/matlabcentral/answers/599011-floor-function-with-a-space-givi...

etwa 11 Stunden ago | 0

| accepted

Answered
Using Display function in an easy way
Use fprintf()

etwa 11 Stunden ago | 1

Answered
Why is my function not working?
syms v t % in the first line of function

etwa 12 Stunden ago | 1

Answered
Change text to 0 in a cell array
cell_array(cellfun(@ischar, cell_array)) = {0}

etwa 14 Stunden ago | 1

Answered
index multiple columns in cell array
Replace 8:10 With [8:10, 15:18]

etwa 15 Stunden ago | 1

| accepted

Answered
How to mutiply 3 user inputs.
I = input('Number ?') I .^ 3 % ?

ein Tag ago | 0

Answered
Define a column series
t = (1:10).' %Or t(:) % from your example

ein Tag ago | 1

| accepted

Answered
Writing a while loop
doc while

ein Tag ago | 0

Answered
how to find the largest number in the first 13 number in an array?
max(reshape(array, [], 13))

ein Tag ago | 1

| accepted

Answered
convert a 3D matrix to a 2D matrix
reshape(permute(val, [2, 1, 3]), size(val, 2), []).'

ein Tag ago | 0

| accepted

Answered
How do i get the values of a 2D matrix based on column indices ?
Output = matrix(sub2ind(size(matrix), 1 : size(matrix, 1), column_indices))

ein Tag ago | 0

| accepted

Answered
Reshape a multidimensional matrix
reshape(permute(matrix, [3, 2, 1]), 144, [ ])

ein Tag ago | 0

Answered
Combining two separate arrays into singular payoff matrix
P = reshape(num2cell([A(:), B(:)], 2), [], size(A, 2)); celldisp(P)

2 Tage ago | 0

| accepted

Answered
How do I swap the elements in the major diagonal with those in the minor diagonal?
ix1 = find(eye(size(x))); ix2 = sort(find(fliplr(eye(size(x)))), 'descend'); x([ix1, ix2]) = x([ix2, ix1])

2 Tage ago | 2

| accepted

Answered
ode45 help!!
Just make the following changes in your code: function dx = project xdot = [xdot1; xdot2];

2 Tage ago | 1

Answered
Remove single cell from matrix
_”Remove single cell from matrix“_ b(2, 2) = nan; % since matrix cannot have holes replace it with nans

2 Tage ago | 0

| accepted

Answered
How do I create a set of random numbers with a given set of numbers? Using randi command.
a(randi(numel(a), 1, numel(a))) % for unique numbers use randperm()

3 Tage ago | 1

| accepted

Answered
Symbolic matrix with sine and cosine to numerical values.
double(subs(T06)) %or vpa(subs(T06))

4 Tage ago | 1

Answered
Matrix Dimensions must agree
HSw_hat = bsxfun(@plus, alpha.*Sw, HSw);

5 Tage ago | 0

Answered
How to plot multiple matrices?
Y = [y1(:), y2(:), y3(:)]; plot(Y)

6 Tage ago | 0

Answered
Can't find the error in my code
exp^ to exp

6 Tage ago | 1

| accepted

Answered
Adding successive cells in a columns
Assuming after sir Walter’s comment: T = TabLe{:, :}; n = numel(TabLe); t = [TabLe, nan(1, 16 - mod(n, 16))]; Wanted ...

6 Tage ago | 0

Answered
function of two variables
C = cell(numel(x1)); for k = 1:numel(x1) C{k} = f(x1(k), x2(k)); % of f() is vectorised you won’t need a loop end...

6 Tage ago | 0

Load more