Community Profile

photo

madhan ravi


2,726 2018 年以降の合計貢献数

Communication through MATLAB is always better than arguing.

madhan ravi's バッジ

  • 6 Month Streak
  • Ace
  • Thankful Level 3
  • Knowledgeable Level 4
  • Promoter
  • Commenter
  • Revival Level 3
  • Solver
  • First Answer

詳細を表示...

貢献した分野
表示方法

回答済み
What is the best way to save data into a txt file
If your using 2019a you may try the newly introduced writematrix().

約3時間 前 | 0

回答済み
Couldn't find what's wrong
q = 3; b = find( cellfun( @numel, a ) == q ) %or b = find( cellfun( 'prodofsize', a ) == q )

約3時間 前 | 1

| 採用済み

回答済み
How to sort only nonzeros values of an array that is linked to cell array ?
[~,I] = sort(vertcat(T{:,3})); sorted_T = T(I,:); Corresponding_matche_s = T(vertcat(T{:,3})==6.008,:)

約4時間 前 | 0

| 採用済み

回答済み
How do I put this formula int matlab?
https://in.mathworks.com/matlabcentral/answers/451685-how-do-i-put-this-formula-int-matlab#comment_684284

約7時間 前 | 1

| 採用済み

回答済み
How to put hat over a greek symbol express its value in legend of a plot?
legend(sprintf('$\\hat{\\alpha}(0) = %d$',2),'Interpreter','latex') % ^----- numeric va...

約11時間 前 | 0

| 採用済み

回答済み
Transforming a multidimensional array to a two dimensional array?
reshape( yourmatrix, [ N N*n ] )

約13時間 前 | 0

回答済み
Check if element in array are square of each other
nnz(V.^2==V.')>=1 % where V your vector, result 0 means false, 1 means true

約13時間 前 | 1

回答済み
How to append elements in a vector one by one
No loop is needed: Vertically concatenate the two vectors and use reshape.

1日 前 | 0

回答済み
symbolic substitution dfgsdfgs dfgsdfgs
subs(eq1,z,rhs(eq2))

1日 前 | 0

回答済み
Selecting a Range of Rows in An Array Based off a Certain Value.
a(1:find(a(:,3)==1,1,'first')-1,:) % a your matrix

1日 前 | 0

回答済み
How can I use a loop and solve or ode45 to plot dy +4y=10 with y(0) = 0:0.1:2? Plot each solution on the same graph.
Show your attempt to get further help: y0 = 0:.1:2; % before loop ic = y(0)==y0(k) % inside loop % k loop iterator doc dso...

2日 前 | 0

回答済み
confusion related to 'for' loop.
p = num2cell(2.^(1:8))

2日 前 | 0

| 採用済み

回答済み
How to create a matrix using conditional statements in a loop based in another matrix
H=zeros(size(Comb,1),1); idx=any(Comb,2); H(idx)=sum(Comb(idx,:),2)

2日 前 | 1

回答済み
How to compare and combine two matrix
idx=A1(:,1)==A2(:,1); A3=[A1(idx,:),A2(idx,2:end)]

2日 前 | 0

| 採用済み

回答済み
Matlab is not drawing my 3D function correctly with surf command
z = (c*x.^2)-(d*x.^2.*y.^2); % ^---- element - wise operation

2日 前 | 0

| 採用済み

回答済み
How to split a vector in many sub-vectors with different sizes ?
Sub=mat2cell(A,1,[3,1,2,4]); Sub{:}

2日 前 | 0

回答済み
Taking average of 3 rows from a matrix
Simpler and faster than the other two: [m,n]=size(A); % A is your matrix Mean=reshape(mean(reshape(A,3,[])),[],n)

3日 前 | 1

| 採用済み

回答済み
Taking average of 3 rows from a matrix
Using mat2cell() and cellfun() is slower than an explicit loop follow this instead: [m,n]=size(A); % A is your matrix U1=resha...

3日 前 | 0

回答済み
How to combine two matrix
a.'*b % a size 1 X 120 % b size 1 X 2001

3日 前 | 0

| 採用済み

回答済み
Trying to get name to print in the display
%s

3日 前 | 0

回答済み
Para error at END
The loop has for missing at the beginning should be for ii = 1:21 cos() not cod().

3日 前 | 0

回答済み
Error in plot function
You have a script named plot.m please remove it from the path ,rename or delete it , it is shadowing the in-built plot() functio...

3日 前 | 0

| 採用済み

回答済み
Do I need pre-allocation ?
Preallocation is not necessary in your second version.

3日 前 | 0

回答済み
Create a symbolic function with varying number of elements
syms x N=4; f(x)=sum(x.^(0:N))

3日 前 | 0

| 採用済み

回答済み
How to replace some values in an array with zero and some with values from another array?
C=A; C(A==0)=B; C(A>0)=0

3日 前 | 1

| 採用済み

回答済み
How to use 'setdiff' func. on cells
cellfun(@setdiff,a,b,'un',0)

3日 前 | 1

| 採用済み

回答済み
Where is an error of product operation in SIMULINK?
Leave the matrix as size 1 X 178 don’t transpose.

3日 前 | 1

| 採用済み

回答済み
how to compare non numerical values or character strings element-wise between a table and a one dimensional array ?
https://in.mathworks.com/matlabcentral/answers/450866-how-to-compare-non-numerical-values-or-character-strings-element-wise-betw...

4日 前 | 0

| 採用済み

回答済み
how to store output for different values of i's ?
p=cell(1,4); % before loop p{i}=... % inside loop

4日 前 | 0

| 採用済み

Load more