Community Profile

photo

madhan ravi


2,521 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

詳細を表示...

貢献した分野
表示方法

回答済み
Calculating mean over multiple dimensions
mean(data,'all') % or mean(data,[3 2 1])

約15時間 前 | 0

回答済み
Plot multiple data in one plot using for loop
If you look the data in each cell closely infact they are all the same so all the plots overlap each other: plot(x,[y{:}]) % yo...

約19時間 前 | 0

| 採用済み

回答済み
write statement without using for loop
gi=Alpha.*(bi==0)+Beta.*(bi==1)

約20時間 前 | 1

| 採用済み

回答済み
For loop averaging increments
Since it’s homework take mean along the first dimension: doc mean

約23時間 前 | 0

回答済み
How can I subs 2 symbolic vectors in 1 comand?
Edit: Corrected the mistake. A workaround: Z=matlabFunction([X,Y]); % change this line XY=num2cell([X0,Y0]); Z(XY{:}) % eval...

1日 前 | 0

回答済み
How can I type inverse sign in axis labels? like 1/CL
xlabel('$\frac{1}{CL}$','Interpreter','latex')

1日 前 | 0

回答済み
How can I get outcome at a particular value after performing differentiation?
Another option: dx(x)=diff(f); dx(3)

2日 前 | 0

回答済み
change appearance of formula
vpa(Total)

2日 前 | 0

| 採用済み

回答済み
How to Show 1/4 in 1/2^2?
I can only think of printing it using fprintf(): fprintf('1/%d^2 ',x)

2日 前 | 1

回答済み
Find the row number of element that meets the condition
index=find(A>500,1,'first') B(index)

2日 前 | 1

| 採用済み

回答済み
read csv file in sequence and post process data
Use cell arrays instead of numbering variables ( https://www.mathworks.com/matlabcentral/answers/105936-how-to-make-dynamic-vari...

3日 前 | 1

| 採用済み

回答済み
How to find rearrange these values in a new row and column?
newmatrix = matrix([2 4 5 8],:)

3日 前 | 0

回答済み
Why does my index exceed array bounds for the following for loop?
You don’t need a loop mewp* % ^-—-—-missed it

3日 前 | 0

回答済み
divide data according to year, month, day
https://www.mathworks.com/help/matlab/ref/datetime.ymd.html

3日 前 | 0

回答済み
negative number in vector
c=v(1:find(v<0,1,'first')-1)

3日 前 | 1

| 採用済み

回答済み
How to read only 1 value in row 2, column 1 ?
M = dlmread('csvlist.dat',',',[0,1,0,1])

3日 前 | 0

回答済み
How to find first non repeated (unique) character in a string?
u=unique(s,'stable'); % where s is your input Z=arrayfun(@(x)nnz(s==u(x)),1:numel(u)); Result=u(find(Z==1,1,'first'))

4日 前 | 1

| 採用済み

回答済み
Merge two matrices taking non-Null values
C=zeros(size(A)); C(:,~all(isnan(A)))=A(:,~all(isnan(A))); C(:,~all(isnan(B)))=B(:,~all(isnan(B)));

4日 前 | 0

回答済み
How to remove numbers between specific symbols in text array?
a="Gas_1_O2"; regexprep(a,'\_\d*.?\d*\_','_')

4日 前 | 0

| 採用済み

回答済み
Problem in running my code
Don't name variable max because there is an inbuilt function named max(), preallocate Rhn for speed and efficiency: TN=4; n_ve...

4日 前 | 0

回答済み
dsolve problem not showing result
syms y(x) eqn = diff(y) == y/x; vars = y(x); V = odeToVectorField(eqn) M = matlabFunction(V,'vars', {'x','Y'}) interval = [...

4日 前 | 1

| 採用済み

回答済み
I am getting an error like function definitions are not permitted in this context in matlab R2014b
P.s - I am not going to look into your code. I am just answering your main question. https://www.mathworks.com/help/matlab/ref/...

4日 前 | 0

回答済み
Can't get fprintf to display my equations answer
%.2f ^-—-—missed it

4日 前 | 0

| 採用済み

回答済み
Problem when importing a TXT file into MATLAB with "readtable". Text and numbers are between single quotes...
T=table2cell(data); T(:,3:end)=cellfun(@str2double,T(:,3:end),'un',0)

4日 前 | 0

回答済み
indexing multiple values in two arrays with different size
A=sum(a(:,1)==b(:,1).'); a(:,2)=repelem(b(:,2),A).'

4日 前 | 0

| 採用済み

回答済み
Combining arrays of different row length
ABC={A,B,C}; MAX=max(cellfun(@numel,ABC)); D=cell2mat(cellfun(@(x)[x;nan(MAX-numel(x),1)],ABC,'un',0))

4日 前 | 0

回答済み
Find the the inices of columns of nonzero entries from rows of a matrix
O=arrayfun(@(x)find(k(x,:)),1:size(k,1),'un',0); celldisp(O)

4日 前 | 0

| 採用済み

回答済み
i want to delete a specific number of NaN in a matrix
A(:,all(isnan(A)))=[]; % delete columns with only NaNs A(:,sum(~isnan(A))==1)=[] % deletes column filled with one number

4日 前 | 0

| 採用済み

回答済み
Computing the rows of the matrix
Interpreting ratio as division: a(3,:)=a(1,:)./a(2,:) % where a is your matrix

5日 前 | 1

| 採用済み

Load more