Community Profile

photo

madhan ravi


Last seen: Today
4,377 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
How to create another line of code
It’s because you’re typing it in the COMMAND WINDOW. Use a script/live script.

2 hours ago | 0

Answered
How to plot all data points on one graph
R = [0.8 0.85 0.9 0.95 0.99]; y = 1 : numel(R); high = 1-((1-R.^y).^2); plot(R, y) % follow the same for low

5 hours ago | 0

| accepted

Answered
Row and Column permutation of a matrix
Wanted = M(:, perm2)

5 hours ago | 1

Answered
Creating functions with certain inputs but no outputs
doc * doc + doc - doc / doc function

7 hours ago | 0

Answered
How can I show axis ticks as fractions?
yticklabels("1/" + (150 : -25 : 50)) % or yticklabels(compose("1/%d", (150 : -25 : 50)) % or set(gca, 'YTickLabel', sprintfc...

12 hours ago | 0

| accepted

Answered
How to convert an expression to a function with lossless precision?
vpa(f_func(sym(sol1), sym(sol2)))

15 hours ago | 0

Answered
Help... what is my mistake and what should i do now?? please
Since you have shown efforts: too_young = under_age(2, []) % [] means no limit was given function too_young = under_age(...

2 days ago | 0

| accepted

Answered
How do I have input an evenly spaced vector.
doc linspace

2 days ago | 0

Answered
perform matrix operation without for loop
xe = exp(reshape(beta, 1, 1, []) .* exp_data) .* (exp_data > 1.5) + 1 * (exp_data <= 1.5); % use bsxfun() for implicit expansio...

2 days ago | 0

Answered
after how many terms does an equation have the same five decimals as pi/4?
if abs(p - pi/4) < 1e-5 Look through the tag floating-point to know why tolerance is used to compare decimals.

2 days ago | 0

| accepted

Question


Viewing figure is not possible.
Why can't I view the figure? P.S: The following is just to familiarise with Python in MATLAB environment. System: MacOs. >> p...

3 days ago | 1 answer | 0

1

answer

Answered
Cell array variable problem
Structure_Global_Stiffness{kk,zz}(~eye(3)) = 0;

3 days ago | 0

| accepted

Answered
How to convert first cell value into zero
cell_array(cellfun(@isstring, cell_array)) = {0}

3 days ago | 1

| accepted

Answered
Implementation of formula in a single line.
_“Implementation of formula in a single line.”_ Z = (L * A * (exp(X) - 1)) .* (X < 0) + (L * X) .* (X >= 0);

3 days ago | 0

| accepted

Answered
Defining Variables In a Function
for index = 1 : numel(a) c(index) = a(index) + b(index); end By the way it’s simply: c = a + b; % don’t know w...

3 days ago | 0

Answered
How to write double integral equation
Use int() twice? doc int

3 days ago | 0

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

3 days ago | 0

| accepted

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

3 days 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-...

3 days ago | 1

| accepted

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 *...

3 days 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...

3 days ago | 0

| accepted

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

3 days ago | 1

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

4 days ago | 1

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

4 days ago | 1

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

4 days ago | 1

| accepted

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

4 days ago | 0

Load more