Community Profile

photo

madhan ravi


Last seen: Today
3.578 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
error: invalid range ; What could be the reason for the invalid error in the code I wrote? If the reason is inf, will they explain ?
Replace inf with a very large finite number for instance 1e6 . Note: You haven't defined K. The reason is simple , imagine yo...

alrededor de 11 horas ago | 0

Answered
Changing corresponding column based on condition, for a table.
T{ismember(T{:,10},'female'),9} = {'false'} % T your table

alrededor de 11 horas ago | 1

| accepted

Answered
How to replace a missing value in a table with a string?
Grouped_Weights.Country(cellfun(@isempty,Grouped_Weights.Country),:) = {'OTHER'}

alrededor de 20 horas ago | 0

| accepted

Answered
Why "-pi/8 <= 0.0099 < pi/8" return logical 0?
>> -pi/8 <= 0.0099 ans = logical 1 >> ans < pi/8 ans = logical 0 >> pi/8 <= 0.0099 ans = ...

alrededor de 21 horas ago | 0

| accepted

Answered
Somone can help me with unique and find function?
[lo,ix]= ismember(A,B,'rows') B = B(~lo,:) vector = ix(lo)

alrededor de 22 horas ago | 0

| accepted

Answered
Read and process multiple images
https://www.mathworks.com/matlabcentral/answers/7342-reading-multiple-images-in-a-folder-imread?s_tid=answers_rc1-2_p2_MLT

1 día ago | 0

Answered
Writing m function to be read by Livescript
https://www.mathworks.com/help/matlab/ref/function.html - you need to read more

1 día ago | 0

| accepted

Answered
Extracting values from a cell then converting to a matrix
A([1,2],:) = []; A(:,1) = []; Mat = cell2mat(A)

1 día ago | 0

| accepted

Answered
1st order fucntion with no zero
doc pzmap doc pidtune doc pidtuner

2 días ago | 0

Answered
i am not getting correct output for this sawtooth plot
T = 6; Fs = 1e3; dt = 1/Fs; t = 0:dt:T-dt; a = 4; x = a*sawtooth(2*pi*t); t = t*5; plot(t,x) grid on

2 días ago | 0

| accepted

Answered
How to calculate detivative of a function with respect to another function
syms u x subs(diff(u^2 - 1), u, cos(x))

2 días ago | 0

| accepted

Answered
Number the subplot quarter
https://www.mathworks.com/matlabcentral/answers/538831-number-the-subplot-quarter#comment_876123

2 días ago | 0

| accepted

Answered
Array indices must be positive integers or logical values.
f & df should be a function handle , can't see how you defined so it might be the issue.

2 días ago | 0

Answered
Howto Replace Specified and Non-Specified Elements in Matrix with Strings
Wanted = repmat("neither",size(matrix)); Wanted(matrix == 0) = "zero"; Wanted(matrix == 1) = "one"

2 días ago | 0

| accepted

Answered
Can Matlab Livescript read function m files (not local functions) outside .mix file?
Ofcourse if it is under the working directory.

2 días ago | 0

| accepted

Answered
putting zero between sequence
y = [x, zeros(1, 92e2 - 74e2)]

2 días ago | 0

Answered
How to use for loop correctly and indexing my result?
Use *;* at the end of each line inside the loop. X1(3,:) % after the loop

2 días ago | 0

Answered
How can i add zeros to same specified matrix column and row?
[m,n] = size(A); rc = [4,5]; % where to place zeros N = 2; % 2 columns and rows b = zeros(m+N,N+n); R = setdiff(1:...

2 días ago | 0

| accepted

Answered
i don't understand
Replace 1 with ~0 and 0 with ~1.

2 días ago | 0

| accepted

Answered
My loop returns imaginary results!
Evaluate the part ((16.6 - sum(A(1:i-1,:)))/ 42) and see what happens when the sum(...) is greater than 16.6 Note: N...

2 días ago | 0

| accepted

Answered
change order of a row vector
ix = setdiff(1:numel(vector), B); Wanted = [vector(B), vector(ix)]

2 días ago | 0

| accepted

Answered
I cannot write a system with three equations with cases
Use equation -> LaTeX and: \begin{cases} eq 1 \\ eq 2 \\ eq 3 \end{cases}

2 días ago | 0

| accepted

Answered
How to add new field to existing structure?
If S is your struct: S.Newfield = "Hi there;)"

3 días ago | 1

Answered
How to define simultaneous equations for ODE45
f1 = @(t,x) x(1) + x(2) f2 = @(t,x,a) x(1)-a*x(2) F = @(t,x,a) [f1(t,x);f2(t,x,a)]

3 días ago | 0

| accepted

Answered
how to display images in separate figures?
for k = 1:8 figure(k) I = imread(sprintf('im%d',k)); % you forgot to read the image imshow(I) end

3 días ago | 0

Answered
finding repeated values of two columns data?
No loops needed: [Rows,~,c]= unique(ex,'rows'); Counts = accumarray(c,1); Wanted = [table(Rows),table(Counts)...

3 días ago | 0

Answered
Ploting a series and finding lim to infinity
N = 1e2; % an inf number a = zeros(1,N); a(1) = 1/3; a(2) = 2/7; for n = 1:N-2 a(n+2) = a(n+1) / (n+1)...

3 días ago | 0

Answered
what is the difference of plot 3d and comet 3d?
doc comet3 doc plot3

4 días ago | 0

| accepted

Load more