Community Profile

photo

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)

Statistics

All
  • MATLAB Mini Hack Participant
  • Treasure Hunt Participant
  • 12 Month Streak
  • Knowledgeable Level 5
  • Matrix Manipulation II Master
  • Curator
  • 5-Star Galaxy Level 1
  • Personal Best Downloads Level 1
  • Number Manipulation I Master
  • Sequences And Series I Master
  • Strings I Master
  • Cody Challenge Master

View badges

Content Feed

Answered
Using a range as an input value in symbolic equations
You get the error because A is 1x2 and x is 1x1 and you can not multiply 1x2 to 1x1. Now you would think of changing the order, ...

16 hours ago | 0

| accepted

Answered
Computing the Standard Deviation of Values in a column in Matlab
out = std(tablename.Speed(1:15))

18 hours ago | 0

Solved


Generate a Parasitic Number
This problem is the next step up from Problem 156. Rather than determining if an input is a parasitic number, you will be asked ...

20 hours ago

Answered
How to create array while using integral function?
%Formatting your code properly is a good coding practice K1=6; %(W/m.K)Thermal conductivity of Fe3O4 nanopa...

1 day ago | 0

Answered
Rainfall Accumulation Event Based
%Added values at end points y = [-6 -8 -10 0 1 1 2 0 0 0 0 2 4 5 2 0 0 3 5 7]; for k=2:numel(y) if y(k-1) && y(k) ...

2 days ago | 0

| accepted

Answered
Question about aligning x-axes in subplots on the same row in Matlab
One way to achieve this is to modify y-limits. figure x = linspace(0,10,1e3); subplot(2,2,1) y1 = sin(x); plot(x,y1) y...

2 days ago | 0

Answered
Live script plots not showing or overwriting
clc; clear all; close all; This is the root of your problem, this line clears all the data, variables, plots etc (basically any...

3 days ago | 0

| accepted

Answered
Function to find vertex of graph?
m = 2.5; % kg k = 6e6; % N/m c = 180; % N-s/m r = 0:0.01:2; Wn = sqrt(k/m); % rad/s zeta = c / (2*sqrt(k*m)); ...

3 days ago | 0

| accepted

Answered
How to stop pi appearing as a text in the disp result?
Convert the symbolic value to floating point value - format long syms x f = cos(x); t6 = taylor(f,x); val = double(subs(t6,...

3 days ago | 0

| accepted

Answered
How to do moving average for x and y data points in a scatter plot?
It's not clear to me what exactly do you want to achieve. You say 10 points, but you use N=8. "I want to see how moving avera...

3 days ago | 0

| accepted

Answered
I am getting "Conversion to logical from table is not possible." error, how do you solve it?
The input data to writetable() is supposed to be a table, which is not in this case. Use readmatrix and writematrix instead. An...

4 days ago | 0

Answered
How can I make a loop for solving a quadratic equation with 200 different data points and only include the positive values of the quadratic eqaution?
"eqn" is a quadratic equation in x and thus using solve() will give you 2 outputs. But you are trying to assign 2 outputs to one...

5 days ago | 0

Answered
How to solve equations in variable terms?
syms a b c d e f g h alpha A = [a b; c d]; R = [cos(alpha) -sin(alpha); sin(alpha) cos(alpha)]; D = (R*A)*transpose(R); ...

5 days ago | 0

| accepted

Answered
error in ode45. I have declared the vector to be 3x1 but it only reads it as 2x1.
You get the error because dpdt is empty, and thus dydt is 2x1. Instead of defining kpm as global, it is better to define it as...

5 days ago | 0

| accepted

Answered
How to generate the following Graph in MATLAB ?
Use the function distances to find the shortest distance for all pairs of nodes sr = [1,2,2,2,3,3,3,4,5]; ta = [2,3,6,8,6,4,7,...

5 days ago | 0

| accepted

Solved


Sequence Vectorization - II
This is the second part to the question - Sequence Vectorization - I Given an array of Natural numbers, N, return the sequence ...

5 days ago

Answered
Finding an index from a 3D matrix
sub2ind works for 3D arrays as well %Initial array, with random values for example in = reshape(1:105,3,5,7); %Array reshaped...

6 days ago | 0

| accepted

Answered
Avoid multiple output using fprintf of multiple variables in livescript
k=[3.96306869127352e-05; 1.33047441644794e-05; 3.37761112449900e-05; 7.19380417629400e-06]; confk=[2.956226131044...

7 days ago | 1

| accepted

Answered
Want to insert a matrix in a for loop and change it with a variable
d1 = 0.1077; lam = 3:0.1:7; th = 0; n1 = 2.32; %Define phi1 outside the loop as it is not varying with the loop phi1 = 2*...

7 days ago | 0

| accepted

Answered
How do I display only certain numbers from a plot?
"&&" can only be used when then result of each logical expression is a scalar (as the error states as well), in all other cases ...

8 days ago | 0

Answered
Insert symbolic equation in another symbolic equation
Use vpa to get numerical values. Convert them to double() if you need the values to be in numeric data type. syms z %first roo...

9 days ago | 0

| accepted

Solved


Easy Sequences 110: Integration of the Sum of a Recursive Trigonometric Function
A trigonometric function, , is defined as follows: , in radians Applying recursively we define another funct...

9 days ago

Answered
Solving Integral in matlab
There are cases when int is unable to compute the value of definite integral. In such cases, use vpa to obtain the approximate n...

9 days ago | 0

Solved


Easy Sequences 109: Summation of Derivatives of a Trigonometric Function
A trigonometric function, , is defined as follows: where: ; and ...

9 days ago

Solved


Determine the minimum number of swaps to sort a vector
Cody Problem 1401 asks us to sort a vector with the bubble sort algorithm and count the number of swaps needed. For example, to ...

10 days ago

Answered
Attempting to take the z transform of a continuous transform function
tau = 1; sys = tf(5,[1 5],'InputDelay',tau) Alternate way s = tf('s'); G = exp(-tau*s)/(s+5)

10 days ago | 0

Question


MATLAB Answers Down?
I am unable to load new questions or recent questions (answered or unanswered). My feed is filled with activity from questions f...

10 days ago | 1 answer | 0

1

answer

Answered
Why is the legend in my MATLAB code showing only one color for all the items, even though the colors are different in the parallel coordinates graph?
Because there is only one line in the plot, as the plot is getting overwritten in each iteration. You need to use the command ...

10 days ago | 0

Answered
How to not prevent the msgbox and inputdlg from popping out at a same time?
You can merge the text and input the string in inputdlg() str = sprintf(['Please state your condition before taking the glucose...

11 days ago | 0

| accepted

Answered
Go back to user prompt in a switch case if no case is valid (Looping the switch statement)
"however the program seems to be in infinite loop" Because you have not added any break if any of the condition is satisfied. ...

11 days ago | 0

Load more