Community Profile # Dyuman Joshi

Last seen: 2 jours il y a Actif depuis 2012

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)

#### Statistiques

All
• • • • • • • • • • • • #### Content Feed

Afficher par

A répondu
Removing rows except containing certain numbers of "33"
You are trying to compare numeric data with character data. You will have to convert your initial data to do that comparison. I...

4 jours il y a | 1

A répondu
Summation of a Gamma series
syms x n %summation out = symsum(ExpressionToBeSummed, n, 0, Inf) You will obtain the sum in terms of the Hypergeometric func...

4 jours il y a | 0

A répondu
Is it possible to truncate a vector to form one of lower dimension?
a=[1;2;3;4;5;6;7;8;9]; %number of terms to truncate n=4; b=a(1:end-n)

5 jours il y a | 0

A répondu
3D plot Between one known and two unknown parameter.
"In 2D, it will definitely give a circle." I assume you want to obtain all the circles corresponding to values in R in the same...

5 jours il y a | 0

| A accepté

A résolu

Draw '5' in Chinese.
Draw a x-by-x matrix '五' using 1s and 0s. Example: x=5 ans= [1 1 1 1 1 0 1 0 0 0 1 1 1 1 0 0 1 0 1 0 1 1 1 1 1] x=7...

6 jours il y a

A répondu
Plotting in 3D
If you have already posted a question, add any related info to the same question. Do not post a new question with new informatio...

6 jours il y a | 1

| A accepté

A répondu
how i can fix this error?
@Armina Petrean, keep in mind that posting the picture of the code is not helpful. Even if we suggest a solution, it is not guar...

7 jours il y a | 0

A répondu
Is this the right way to use permute and bsxfun?
Yes, it is correct. You can verify it by comparing it to the result obtained via loops - %Random data A = rand(1000,200,500); ...

7 jours il y a | 1

| A accepté

A répondu
Unrecognized function or variable 'a'.
You get an error because you have undefined variables in your code, that are a, b and c. If they have any numeric value, then a...

7 jours il y a | 0

A répondu
How can I fix this "Error using / Matrix dimensions must agree."
I assume you want to do element-wise division, use "./" for that % Step 1: Define the parameters and initial conditions. B = ...

8 jours il y a | 1

| A accepté

A répondu
Symbolic rewriting of trigonometric functions with a exponential function.
rewrite() does not produce the following conversion. You can do the following - syms t %Define expressions separately y1 = (...

8 jours il y a | 0

| A accepté

A résolu

Create an empty array
Suppose you need an empty array. e = [] will give you one, but it's a double array, which may not help if you need a differen...

8 jours il y a

A résolu

Find the circle inscribed in a triangle
Write a function that takes the x- and y-coordinates of three points describing the vertices of a triangle and returns the cente...

9 jours il y a

Question

Inconsisent(?) behaviour of str2num() with a particular usage
The task in hand for me was to generate an empty array corresponding to the class/datatype of the input. %Example 1 input = 's...

9 jours il y a | 2 réponses | 0

### 2

réponses

A répondu
recreating mesh grid plot of polar formula
"Also i get my radian axis till 2000 instead of 6.28." Because your data spans from 2*pi to 2*pi*360 (~2262) instead of 0 to 2*...

10 jours il y a | 0

| A accepté

A résolu

Continuous NaNs - I
Remove any continuous NaNs that appear in the array - %Example 1 input = [1 NaN 2 NaN NaN 3 NaN NaN NaN] output = [1 NaN 2 ...

10 jours il y a

A répondu
I'm trying to write 5 for loop cycles with a step
Vectorization ftw! %Define variables b = [0:0.4:2]; errore = [0.4:0.3:1.5]; %To obtain the combination according to the co...

11 jours il y a | 0

A répondu
i have an error when i draw a polar The error is
Use readmatrix to directly load the data into a numeric array. importdata loads the data into a structure array for the given ...

11 jours il y a | 0

A répondu
Problem with variable 'nanmean'.
nanmean is a part of the "Statistics and Machine Learning Toolbox", which I believe you do not have and which is why you get the...

11 jours il y a | 0

Problème

Continuous NaNs - I
Remove any continuous NaNs that appear in the array - %Example 1 input = [1 NaN 2 NaN NaN 3 NaN NaN NaN] output = [1 NaN 2 ...

11 jours il y a | 0 | 5 solveurs

A répondu
I need to create a loop to evaluate a function at decreasing points.
You can use a for loop to do that, evaluate the function at each point and store the result. Another way is vectorize the opera...

12 jours il y a | 0

| A accepté

A répondu
Deleting elements of an array with consecutively occurring NaN values
Note that this removes any NaN groups occuring at the start or at the end of the data. %Modified data A = [43 NaN NaN NaN 45 N...

12 jours il y a | 0

| A accepté

A répondu
Solving equation using 'vpa' function
The equation you have has multiple solutions, see plot below for reference. If you want to return a particular solution, use vp...

13 jours il y a | 0

A répondu
solve the equation for one variable and find the value of variable
"out come is shows only a constant valu s=1 for all value of p kindly check this error" That's not an error. a==1 is a solut...

15 jours il y a | 0

| A accepté

A répondu
How to repeat a vector number of times with a certain value added to each row
vec = 1:5; rep = 3; val = 4; out = vec + val*(0:rep-1)'

15 jours il y a | 0

A répondu
Creating vectors from columns of a matrix
You can not obtain the output you want in terms of numeric data type due to size mismatch for vertical concatenation. You can ob...

17 jours il y a | 0

| A accepté

A répondu
How to randomly extract 10 elements from that matrix
A = rand(1000,1); %10 random indices less than or equal to the number of elements in A idx = randperm(numel(A),10) out = A(id...

18 jours il y a | 0

A répondu
how to calculate mean of interrupted data
A=1:20; A([2 4 8 16]) = NaN; disp(A) idx = [0 find(isnan(A)) numel(A)+1] for k = 1:numel(idx)-1 %Range of indices betwe...

18 jours il y a | 0

| A accepté

A répondu
How can I align a sequence of three data points?
data_A = [0 4 5 7 8 9]; data_B = [4 5 7 8 1 5 6]; data_C = [2 5 3 4 5 7 8]; Note that this is not the best method to obtain ...

18 jours il y a | 1

A répondu
whats wrong with this code? Im trying to find the first 50 primes in a sequence, and then sort it into a 5x10 array
Firstly, do not use built-in functions as variables names, primes in this case. Secondly, all the functions in a script must be...

19 jours il y a | 0