# Dyuman Joshi

Mechanical Engineer IITG'20 Time zone - GMT +5.30 (IST)

**Programming Languages:**

MATLAB

**Spoken Languages:**

English

**Professional Interests:**

Fluid Dynamics, Aerospace Engineering, Aerodynamics, Computational Fluid Dynamics (CFD)

**Statistics**

RANK**70**

of 281.591

REPUTATION**2.314**

CONTRIBUTIONS

**9** Questions

**653** Answers

ANSWER ACCEPTANCE **
77.78%
**

VOTES RECEIVED**362**

RANK**9.666** of 19.053

REPUTATION**62**

AVERAGE RATING**5.00**

CONTRIBUTIONS**1** File

DOWNLOADS **14**

ALL TIME DOWNLOADS**489**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

I want to plot a transparent triangle

Use the color 'white' W = 0.5; L = 0.3; Patch = [-0.3, -W/2; -0.3, W/2; L, 0]; triangle_local = Patch; triangle_handle = f...

ongeveer 2 uur ago | 0

| accepted

How I can run following code for different p and t values?

You can run a for loop through the elements of t and p and get the output. Another option is to use arrayfun, which I have done ...

ongeveer 2 uur ago | 0

How do I create an array for the square of numbers from 1 to 100?

a1 = ones(100,1); %Avoid using the superfluous [], as they are used for concatenation a2 = (1:100)'; A = [a2.^2 a2 a1]

ongeveer 17 uur ago | 0

Bisection Method Table Generation Error - Array Indices Issue

You have > not passed the variable velocity_target to the function > not defined the output root in the function Make the ap...

ongeveer 18 uur ago | 0

plot surface 3d from table

Import the data, assign the first column as x data, top row as y data (or vice-versa, depending upon how you define the axis) an...

ongeveer 18 uur ago | 1

| accepted

how to make upper triangular matrix easlily by pivoting(Gauss elimination)

"so i want to make the code like this "if the abs(a(1,1))is smaller than other elments of 1st column(absolute value), the row t...

ongeveer 21 uur ago | 0

Adding a new variable to a table and assigning a value

"How can I define Station ID's dimensions and fill all 1349 rows with the same value? " There are many ways of doing that - %...

ongeveer 22 uur ago | 0

How to do a summation with a for loop

You are over-writing the variable a - a = 1:5; %Initiate a variable as 0 to store the sum s = 0; %loop over a, using ano...

ongeveer 24 uur ago | 0

extract a number N of equally spaced rows within a matrix

You are on the right course - a=(1:1:100)'; b=(0.1:0.1:10)'; M=[a,b]; % example matrix N=7; % number of rows step = he...

1 dag ago | 0

Find X for a given Y using interpolation

x and y are not mapped one-to-one for interpolation, there is an element missing in y. interp1 is what you are looking for.

1 dag ago | 0

| accepted

split cell (containing strings) into cell according to the value of C (column)

load a4 %in load a4_new %out %Checking the values of the variables a4 a4_new Col = 6; %Split according to the multip...

3 dagen ago | 0

| accepted

Not enough input arguments when using bar()

It works fine here - R2023b but does not on my MATLAB app - R2021a. Since you have R2023a, it means that the support for string...

3 dagen ago | 1

divide the matrix (Rx2) into submatrices based on the values of the second column

discretize and splitapply for the win! load matrix_out %Mention the bins to group data in j = [0 0.1:0.1:1.2 Inf]; %Discre...

3 dagen ago | 0

| accepted

Can not use gamma function in an external function

Using function names as variable names is not a good idea - in your case gamma. I have changed the names to gamma0 and added a ...

3 dagen ago | 0

| accepted

MATLAB Function에서 struct의 배열 별 요소 개수 구하기

%Defining structure cell_num = struct(); arr = struct("sig1",{{1,2,3,4}},"sig2",{{4,5,6}},"sig3",{{7,8}}) %Field names of the...

3 dagen ago | 1

How do I change font size on YTickLabel in tiledlayout in Live Script? [Bug]

tl1.YLabel.FontSize = 12; What are you trying to change is the font size of the ylabel not the font size of the yticklabel. An...

3 dagen ago | 0

複数の陰関数を一度にプロットする方法

You will have to draw the 3 implicit curves separetly - Ia_start = 1; Ia_end = 5; Ia_count = 2; figure hold on for Ia =...

3 dagen ago | 1

Error using sin in my code

sin is not a variable that you are multiplying with s*r0*t, it is a function which needs input arguements to provide an output. ...

4 dagen ago | 0

| accepted

xtick label font change affect ytick label font

"How do I control them independently?" There is no particular quantity 'Tick Label Font size' you can change, however you can c...

4 dagen ago | 0

How to plot a random line in between 0 and a random variable?

I assume you want to you don't just want integers, otherwise you would have used randi for that. V = randi([1 12]) t = linspac...

4 dagen ago | 0

| accepted

Increase size of array within cellfun

"I'd rather avoid looping over each cell, can this be done with cellfun?" That's the thing - Cellfun is just a loop in disguise...

4 dagen ago | 0

How do I convert UTC time to Unix time?

%Example y = datetime('now','TimeZone','UTC') %Get time in UNIX format z=posixtime(y) %Change the display format format lon...

4 dagen ago | 1

| accepted

Create multiple copies of a .txt file according to N x 1 array

The data in the text file is heterogeneous and stored non-uniformly. This approach should work for that - y = readlines('MyFil...

4 dagen ago | 0

| accepted

seach string in arraycell and find idx

When using ismember, if any of the input is a Cell array, it is expected that it will be a cell array of character vectors. > w...

5 dagen ago | 1

Frequency response from a transfer function?

Use freqs. Note - Requires the Signal Processing Toolbox. Refer to the documentation page linked above for more info. help fre...

5 dagen ago | 1

remove numbers of an matrix from another matrix

M1 = [7 21; 41 52; 47 65; 14 41; 14 55]; M11 = [14 55; 47 65; 41 52; 14 41; 7 21]; M2 = [5 15; 7 21; 41 52; 47 65; 98 74; 14 4...

5 dagen ago | 0

| accepted

It's a matter of differential calculation. I'm getting a formula error. Please help me

That's not how the syntax for exp works - It was explained in the previous question of yours as well. syms x y n y= 5*(x+3)^4+...

5 dagen ago | 0

| accepted

Question about selecting elements in a vektor

Similar to your previous question - a = [780 465 983 125 756 429 143 23 51 47 86 95 47 85 55 44 77 99]; %Index idx = 5; %...

5 dagen ago | 0

| accepted

How do I solve an equation with an unknown variable?

You can use fzero v=90; % velocity ro=1.225; % density at sea level, kg/m^3 Sw=3; % wing area, m^2 c=0.4; % chord, m %Def...

5 dagen ago | 0

aligni to the center character string in array cells

If you mean to align the strings in center justification, use strjust - C1 = {'Euler '; 'Fibonacci'; ' Gau...

5 dagen ago | 0