Community Profile # Dhritishman

Active since 2022

Hi, I am Dhritishman, an EDG intern('22) at MathWorks, Hyderabad.

Programming Languages:
C++, C, MATLAB, HTML, CSS
Spoken Languages:
English, Hindi

#### Statistics

• #### Content Feed

View by

How to create a simple matrix from two different kind of matrix size ?
You can use the reshape(used in reshaping arrays) and cat(used to concatenate arrays) functions in this case: mat1 = rand(2, 5,...

3 months ago | 0

Print a statement to the Command Window
Use the disp function to print to the command window: disp('job done')

3 months ago | 0

Operator '>' is not supported for operands of type 'struct'
a1= xin_s > lonsorgente-0.5 & xin_s < lonsorgente+0.5; In the above code, xins_s is a structure. A structure has fields and th...

3 months ago | 0

Array indices must be positive integers or logical values.
z1=z1+t(i-1); In your code, the value of i starts at 1, so t(i-1) will be trying to access t(0) which MATLAB doesn't allow as i...

3 months ago | 0

How to get the value of interpolated data for 2D table in matlab
Firstly, you need to import the file in MATLAB as a table. You can use Readtable to do that. T = readtable(filename); To inter...

3 months ago | 0

how to combine sections in live script
Two sections can be combined by deleting the second section break. The section break can be deleted by directly pressing the Bac...

3 months ago | 1

Index Matrix A and Matrix B Problems
MATLAB provides logical indexing which can be used to select or modify elements of a matrix. A = [0, 1, 1, 0, 1, 0, 1; 0, 0, 1,...

3 months ago | 0

How can I determine the angle between two vectors in MATLAB?
Currently, there is no built-in MATLAB function to calculate the angle between two vectors. However, you can use dot product pro...

3 months ago | 0

Justify text in MATLAB Live Editor
Text can be left/right/center justified. Refer to the documentation below: https://www.mathworks.com/help/matlab/matlab_prog/fo...

3 months ago | 0

how to enable label in x and y axis of this graph
Matlab provides two functions - xlabel and ylabel to label the x-axis and y-axis in the graph respectively. Syntax: xlabel(txt...

3 months ago | 0