Community Profile

photo

Dhruv G


Last seen: circa 2 mesi ago Active since 2020

Student at IIT Madras. Building Race Cars, Interested in AI and Quantum Computing

Statistics

All
  • Knowledgeable Level 1
  • First Answer
  • MATLAB Central Treasure Hunt Finisher
  • Solver

View badges

Content Feed

View by

Answered
How can I classify a fruit based on its color into white(unripe), turning, ripe using color image processing in matlab. Is there any code for it or some ideas on how to do it.
If the fruit occupies most of the image you can get the RGB values of a cluster of pixels near the center of the image and avera...

4 mesi ago | 0

Answered
Merge struct with matrix
say the structure is named s, s.outputSignal = modelOutputSignal; adds the matrix as an element to the structure. You ca...

5 mesi ago | 0

Answered
Sort entire 3D matrix
You'd have to flatten the matrix into a 1d vector, sort that, then reshape it back to the initial shape. See https://in.mathwork...

5 mesi ago | 0

| accepted

Answered
First time passage distribution fitting
https://in.mathworks.com/matlabcentral/fileexchange/73599-map-m-s-g-solver-for-steady-state-and-first-passage-times The above l...

5 mesi ago | 0

Answered
Change a specific color in an image to another one
The issue here is you aren't changing redChannel, blueChannel or greenChannel anywhere. I'm not sure what you are trying to do w...

5 mesi ago | 0

Answered
Decision Branching, modification Script
if doPlot plot(density) title("Sample Densities") xticklabels(element) ylabel("Density (g/cm^3)") end

5 mesi ago | 1

Answered
Create a mask of a rectangular region
https://in.mathworks.com/help/images/ref/imroi.createmask.html#mw_e3abf7da-98e3-4f78-894d-422543e67069 should be what you are lo...

5 mesi ago | 0

| accepted

Answered
Relationship between (i & j) of a nested for loop and (x & y) coordinates?
As @KSSV has noted, the for loop just means that the indices will increase while the loop runs. In a table, what you've drawn is...

5 mesi ago | 0

Answered
write a script to find the sum of an array of numbers of the form 2n-10, n = 1,2,…, 10.
Think about how the ':' is used when defining an array within parantheses or in square brackets. Think about how multiplying an ...

5 mesi ago | 0

Answered
Error when using abs: Too many input arguments
If you type 'U' in the command window you would find that it is an array of symbolic equations (or expressions I'm not too sure)...

5 mesi ago | 0