Community Profile # Dyuman Joshi

Last seen: Today Attivo dal 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)

#### Statistics

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

Visto da

Risposto
Error says: Variable yprime must be of data type symfun. It is currently of type sym. Check where the variable is assigned a value.
Looks like you are working on an older version of MATLAB, as your code runs without an error on R2021b. 1 - Use f directly to f...

circa un'ora fa | 1

Risposto
Covert a string to an array of individual characters.
If you need every alphabet presented individually, you will have to define them as strings. Either manually define each input w...

circa 3 ore fa | 0

| accettato

Risolto

Solve an ODE: draining tank
Write a function to compute the time to drain a cylindrical tank of diameter from an initial level to a level . The outflow oc...

circa 6 ore fa

Risposto
How to plot a 3d graph with z axis, not the same length as x,y from, the data is imported from an excel sheet ?
out=readmatrix('Test1.xlsx') %Extracting x, y and z data x = out(1,2:end); y = out(3:end,1); Z = out(3:end,2:end); %Creat...

circa 8 ore fa | 0

Risposto
Solving Inequalities with Matlab
You need to use 'ReturnConditions' as true to obtain the conditions on the solution syms x real sol=solve(abs(x-2) > 2*abs(x+1...

circa 19 ore fa | 1

| accettato

Risposto
How to pass on arguments in the form of two grids and return a matrix the elements of which involve conditional statements?
"I tried the following naive code but I only obtained a scalar and not the desired matrix" You obtained a scalar because you as...

circa 22 ore fa | 0

Risposto
Find datapoints a specified distance apart in matrix using while loop
Points which are >= 30 than the previous point starting with the 1st point - load t0_pos.mat gap=30; k=1; y=false(size...

1 giorno fa | 0

| accettato

Risposto
finding a numeric pattern in an array
vec=[11 5 3 4 5 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 1 ...

1 giorno fa | 0

Risposto
Labels on the top of bars for a bar plot
clear all close all clc x = categorical({'Rotor only','200% C_{ax}','100% C_{ax}','50% C_{ax}','25% C_{ax}'}); x = reorder...

1 giorno fa | 1

| accettato

Risposto
plotting side-by-side error bars and data points
To get error bars on either side of data points, modify their x-coordinates using a threshold. However, the plot obtained is no...

1 giorno fa | 0

| accettato

Risposto
How do I change the output of the graph from velocity to acceleration?
m = 46; % mass k = 3220; % spring constant c = sqrt(184*k); % damping constant f = 46*(9.8); %force Time = 0:0.1:1; %1X2 mat...

2 giorni fa | 0

| accettato

Risolto

Inscribe a circle in a triangle with a side of length equal to the circle’s circumference
A circle of radius is inscribed in a triangle with a side that has a length equal to the circle’s circumference. The center of ...

2 giorni fa

Risposto
Generate ones and zeros based on size of each element in a matrix nxn
The output corresponding to 0 in a (i.e. a(2,1)) is a single 1. If that is the desired output, you will have to replace all the ...

2 giorni fa | 0

| accettato

Risolto

Convert vector of strings to lower triangular matrix
Given a non-empty vector vec of strings, please put its elements into the lower triangular half of a square matrix M column-wise...

3 giorni fa

Risposto
Count repeated numbers from a data column and produce new columns
Code edited to include output3 added by OP. @Georgios Tsiledakis, Use repelem() rather than looping over the data (especially w...

4 giorni fa | 2

Risposto
Have one array follow another array with a threshhold
Use the same approach for A1 as well. A1 = [1 4 5 8 2 2 4]; A2 = [2 5 8 15 18 24 23]; A2Thresh = A2 < 10 | A2 > 30; A2(A2Thr...

4 giorni fa | 0

| accettato

Risposto
"for" cycle to plot the point in a matrix with a certain radius
You should use tolerance to compare floating point numbers. Set tolerance according to the level of precision you want. And use...

4 giorni fa | 1

| accettato

Risposto
When integrating numerically with integral2, the integral function contains a sign variable, causing the integral to keep reporting an error.
You don't need to use symbolic variables for this code. Define A as a function handle and use r values as an input to define the...

4 giorni fa | 0

| accettato

Risposto
Getting an error "Error using erfc... Input must be real and full"
The function erfc only supports real inputs (as evident by the error) and the input to erfc here is complex. You can either use...

4 giorni fa | 0

Risposto
Newton-Raphson algorithm stuck running after 4 or 5 iterations
Converting to numeric data type is much faster than using symbolic values syms x real %I have defined f to be an explicit func...

5 giorni fa | 0

| accettato

Risposto
plot legend that depicts different markes of nodes
The problem here is that legend will only provide labels for what graphics recognizes as individual objects. So in a line plot, ...

5 giorni fa | 0

| accettato

Risposto
Find minimum among matrices with different sizes
Your statements contradict each other, but I guess this is what you want to obtain A=[2 8 4; 7 3 9]; B=[1 3 5]; C=min(A,B)

6 giorni fa | 0

| accettato

Risposto
i want to solve a set of homogeneous linear equation
Note - Symbolic Toolbox required Note that you might not get a solution for x depending upon the values of A. One such exampl...

6 giorni fa | 0

| accettato

Risposto
i don't know code
Define f and g as function handles, and use x and the output of g(x) as inputs respectively - %Using different variable name to...

8 giorni fa | 1

Risposto
How to build a function fun that takes as input the matrix A and as output provides the matrix B which is produced out of A in the following ways.
A much simpler way - a=[1 2 3 4;5 6 7 8;9 10 11 12; 13 14 15 16] s=size(a)/2; b=circshift(a,s)

8 giorni fa | 3

Risposto

8 giorni fa | 1

| accettato

Risposto
The numbers do not appear in standard format despite the writing (format shortG)
Using format is only applicable to numeric outputs. Change the formatting operator in fprintf to obtain the proper value - for...

9 giorni fa | 0

Risolto

Zero finder
Write a function named 'zero_finder' that takes a matrix as input and returns the row index of the last zero for each for each c...

10 giorni fa

Risposto
How to save index of Values of an item in a matrix?
x=[0,0,0,1,0,0,0,0,1,0,1]; y=find(x>0)

11 giorni fa | 0

Risposto
symbolic trigonometrical function tan instead of log and imaginary equation
syms a b x real sol1=solve(a*sin(x) == b*cos(x),x,'Real',true) The solution obtained above can be derived by changing sin and ...

11 giorni fa | 1