Community Profile

photo

madhan ravi


Last seen: Today
4,059 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
Adding multiple rows of a cell array
Edit: cellfun() is a loop in disguise by the way. for k = 1:numel(cell_array) cell_array{k}(end+1,:) = sum(cell_array{...

5 hours ago | 0

Answered
how can i make this work
x = zeros(6,1); ./ .*

7 hours ago | 0

Answered
How do I plot separately the rows of a matrix?
plot(matrix.')

7 hours ago | 0

Answered
Writing into .txt file
T = array2table([v, angle_random], 'VariableNames', {'v', 'angle_random'}); writetable(T, 'random_cyling.txt','WriteVariabl...

9 hours ago | 0

| accepted

Answered
how to plot frequency spectrum of the signal
<https://www.mathworks.com/help/matlab/ref/fft.html#buuutyt-10 *Cosine Waves*>

9 hours ago | 0

Answered
How to store data
dp = pi/100; Angle = pi : dp : (2*pi - dp); D = 0.05; x = (D/2) * cos(Angle); y = (D/2) * sin(Angle); r = sqrt(...

10 hours ago | 0

| accepted

Answered
Is there maximum number of characters of the figure title latex interpreter string?
Painful but manageable ;) first = sprintf('$$\\psi = %.0f^{\\circ}$$', rotationAngle); second = sprintf('$$\\theta = %.0f^...

10 hours ago | 0

| accepted

Answered
Dimensions of matrices being concatenated are not consistent ?
You cannot have holes in a matrix so append NaN at the end. By the way you refer to them as string but in fact they are double a...

11 hours ago | 0

| accepted

Answered
how do I plot 2 matrix with different n of row and column (both are 9 x 6)
SO only has 8 rows. And Ofcourse supply matrices as a vector using *(:)*

18 hours ago | 0

Answered
0x1 empty double row vector
x = [-200:25:0, 20:20:100]

20 hours ago | 1

| accepted

Answered
Stacking many vector data into one resultant vector data but of the same length
nrecords = 10; Data = cell(nrecords, 1); for k = 1:nrecords Data{k} = dlmread(sprintf('data%d.txt',k)); end ...

22 hours ago | 0

Answered
how to match x-axis subplots?
<https://www.mathworks.com/matlabcentral/answers/563312-how-to-match-x-axis-subplots#comment_932861>

1 day ago | 0

| accepted

Answered
Indexing a cell array column from multiple sources
FileList.name = {'sjdjd.wav', 'sjdjf.wav'}; % example names combinedToneNames = {'ClowD(-0dB)', 'EF(-0dB)', 'BChigh(-0dB)'}...

1 day ago | 0

| accepted

Answered
How to create array xy corresponding z
xyz = {x(:), y(:), z(:)}

1 day ago | 0

Answered
Error in smimport(' ') command: Illegal use of reserved keyword "end" AND Attempt to execute SCRIPT smimport as a function
<https://www.mathworks.com/matlabcentral/answers/563081-error-in-smimport-command-illegal-use-of-reserved-keyword-end-and-attemp...

1 day ago | 0

| accepted

Answered
how can i make this loop work
function gpaname [x, y]= deal(cell(10,1)); for ii = 1:10 x{ii} = input('please enter your name=' , 's'); y{ii} ...

1 day ago | 0

Answered
Selecting specific columns in a for loop
jj = 401:500; Meas_Load = cell(numel(jj), 1); for k = 1:numel(jj) Meas_Load{k}= Rload2 - jj(k)*RPVR; end celld...

1 day ago | 0

Answered
i=1, 2, 3,,, However, when (a-i)> 0 is calculated.
clear station a = 4 ii = 1:a-1; N = 2; % any nunber station(ii+2) = (4-(4-ii))*N

1 day ago | 0

Answered
Setting Common Axes for all Figures
See my comment above.

1 day ago | 0

| accepted

Answered
Converting 3D plot into surface like plot.
[DAY, HOUR] = meshgrid(Day, Hour); NUMAIRCRAFT = repmat(numAircraft, 1,numel(Day)); surf(DAY, HOUR, NUMAIRCR...

1 day ago | 0

Answered
MATLAB Answers Wish-list #5 (and bug reports)
Not mandatory but a replying feature to a specific comment would be nice.

2 days ago | 0

Answered
plot on the same figure
syms t f=3*(t^2) + 2*t - 0.5 g=2*t*(cos(t)) fplot({f,g})

2 days ago | 1

| accepted

Answered
How to delete empty rows from string arrays contained in a cell array?
Wanted = arrayfun(@(y)cellfun(@(x) x(~(x=="")), c{y},'un', 0),1:numel(c)).' % c your cell array

2 days ago | 0

| accepted

Answered
How to remove certain rows and columns in a matrix?
w = A([1,2,7,8], :) Wanted = w(:, [1,2,7,8])

2 days ago | 1

| accepted

Answered
ploting a function handle
SF=4.0; d0=1; c = 3e8; h_BS = 15; TRDistance= 20; TXPower=30; lambda = @(f) (c/(f*1e9)); PL_dB = @(f)(20*log(4*pi...

2 days ago | 0

| accepted

Answered
Generate matrix from non empty cells from another cell array
c = cell_array.'; ix = cellfun('isempty',c); w = cellfun(@flip,c(~ix),'un',0); Wanted = cat(1, w{:})

2 days ago | 0

| accepted

Answered
How to save each guess / output as an array via Newton's Method?
x = zeros(1e3, 1); x(1) = 3; for ii = 2:1e3 % Let this sucker go up to 1000. x(ii) = x(ii-1) - f(x(ii-1))/f_prime...

2 days ago | 0

Answered
handle character minus character
f = @(x) str2double(regexp(x,':','split')); t1 = num2cell(f(t1)); % where t1 & 2 are your char arrays t2 = num2cell(f(t2...

2 days ago | 0

| accepted

Answered
Filtering the contents of an array
filtered = Z(A, :)

2 days ago | 0

| accepted

Load more