Community Profile

# Dyuman Joshi

Last seen: Today Active since 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)

All

#### Content Feed

View by

Code not working on my computer, but same file working on my schools computer
As the error states, 'optimoptions' requires Optimization Toolbox. The school's PC has the Optimation Toolbox downloaded, where ...

11 hours ago | 0

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...

17 hours ago | 1

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...

18 hours ago | 0

| accepted

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...

23 hours ago | 0

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...

1 day ago | 1

| accepted

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...

1 day ago | 0

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 day ago | 0

| accepted

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 day ago | 0

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...

2 days ago | 1

| accepted

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...

2 days ago | 0

| accepted

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 days ago | 0

| accepted

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 ...

3 days ago | 0

| accepted

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 days ago | 2

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 days ago | 0

| accepted

"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...

5 days ago | 1

| accepted

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...

5 days ago | 0

| accepted

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...

5 days ago | 0

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 days ago | 0

| accepted

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, ...

6 days ago | 0

| accepted

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)

7 days ago | 0

| accepted

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...

7 days ago | 0

| accepted

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 days ago | 1

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)

9 days ago | 3

9 days ago | 1

| accepted

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 days ago | 0

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 days ago | 0

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 ...

12 days ago | 1

How to obtain vector of specific values in MATLAB
It's not a good idea to dynamically define variables. Read - Why Variables Should Not Be Named Dynamically You can make a 96x16...

12 days ago | 0

How to take an average from range of values?
It seems you have copied the data from Excel and there is a loss of data in doing that. A= [0.0000 0.4341 -0.0000 -0.5910 -0.03...

12 days ago | 0

| accepted