Community Profile

photo

Dyuman Joshi


Last seen: Today Con actividad desde 2012

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

Programming Languages:
Python, MATLAB
Spoken Languages:
English, Hindi
Pronouns:
He/him
Professional Interests:
Fluid Dynamics, Aerospace Engineering, Aerodynamics, Computational Fluid Dynamics (CFD)

Estadísticas

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

Ver insignias

Content Feed

Respondida
identify rows with [] within a cell
You should use isempty for checking if an array (of any data type) is empty or not - load('M.mat') M cellfun('isempty', M)...

alrededor de 4 horas hace | 0

| aceptada

Respondida
Shifting columns while filling matrix with data
From what I understood - n=5; %database x = meshgrid(1:n) %matrix y = zeros(n); for k=1:n y(:,1:k) = x(:,k:-1:1)...

1 día hace | 0

| aceptada

Respondida
use the if-else loop considering a variable 'char' in the workspace
You can use ischar and isnumeric - out = 'analysis'; % or number if ischar(out) disp('character') elseif isnumeric(o...

1 día hace | 0

| aceptada

Respondida
MATLAB Not plotting table in workspace
When you use parenthesis, (), on a table, the output is also a table. Use curly brackets, {}, to access the data inside the ta...

1 día hace | 0

Respondida
Surface plot plotting in a square X and Y axis, need it to be rectangular
You can change the aspect ratio of the plotting box - %Ratio chosen for example - x/y/z = 1/0.5/0.75 figure surf(peaks) a...

2 días hace | 0

| aceptada

Respondida
How to extract all values along the third axis of a 3d-array using a logical 2d-array?
Change the order of the dimension, and apply the logical indexing to the last two dimensions - a = rand(10,10); a(5,5) = 10 ...

2 días hace | 1

| aceptada

Respondida
How to plot a curve when x(3,idx) is within a certain range
In MATLAB, when using multiple conditions to compare, the conditions need to be specified separately - idx = 6.077865<x(3,:) &...

2 días hace | 0

| aceptada

Respondida
how to change the marker style of qq plot? If i do it in the same way as that of line plot then it shows error as too many input arguments.
Get the handle of the plot, and make changes accordingly. The first handle corresponds to the data points with the default '+' ...

2 días hace | 0

| aceptada

Respondida
How to create line breaks in x-axis tick labels of a boxplot in MATLAB?
Change the TickLabelInterpreter to 'tex'. You can adjust the x-axis fontsize to avoid the overlapping among labels. boxplot(r...

2 días hace | 1

| aceptada

Respondida
error using the function 'splitapply'
accumarray will be a better fit here. matrix_out_12 = importdata("matrix_out_12.mat"); matrix_out_98 = importdata("matrix_out_...

2 días hace | 0

Respondida
omment rearranger une matrce long en une seul ligne
A=[16 3 5 10 9 6 4 15 2 13 11 8 7 12 14 1]; B = resha...

2 días hace | 0

| aceptada

Respondida
Why am I getting a red message when trying to run this code.
Based on the picture of the code you have attached, there seems to be a typo while defining x0. %typo % v x0 = ran...

3 días hace | 0

| aceptada

Respondida
Why these two path strings are different? (manual string vs. pwd + fullfile)
The file separator character for the OS you have must be backslash, as you get the result of the comparison to be 0. Let's take...

3 días hace | 0

| aceptada

Respondida
Want to save in a selected folder
Use exportgraphics or print and specify the full path with the filename.

3 días hace | 0

| aceptada

Respondida
A problem caused by 'xlim' and 'axis equal'
"So, how can I use xlim([-inf inf]) and axis equal at the same time?" You can not. As I said before, atleast 1 input value to x...

3 días hace | 0

| aceptada

Respondida
How to calculate the sum of all neighbouring elements in a random matrix
Use conv2 - A = [ 0 0 1 1 0 0 0 1 0 0 0 1 0 0 0 0 0 1 0 1 0 1 0 1 1 ...

3 días hace | 1

| aceptada

Respondida
Convert matrix from 3d to 4d?
Use permute - y = rand(120,120,200); size(y) z = permute(y, [1 2 4 3]); size(z)

3 días hace | 0

Respondida
Importing open street map data through readgeotable fails
The functionality of reading .OSM files via readgeotable was introduced in R2023b. Reference - https://in.mathworks.com/help/map...

3 días hace | 0

| aceptada

Respondida
extracting percentages from text
Use readtable

3 días hace | 0

Respondida
Index exceeds the number of array elements. Index must not exceed 1.
There was a missing element-wise division sign in the definition of f_prime_j, causing the said variable to be defined as a scal...

3 días hace | 0

| aceptada

Respondida
How do you search for a number in a cell array containing different length arrays?
in = {[2 5 8 9] [1 2 4 5 7 10] [3 5 6 7 8 9 10] [1 2 3 5 8 9 10] [1 2 4 6 8 9] [1 3 4 5 6 8] [1 2 4] [4 5 7 9] [1 2 5 7 10] [1 2...

4 días hace | 0

| aceptada

Respondida
Unable to perform assignment because the left and right sides have a different number of elements.
The output of g(....) is a 5x1 numerical array and DX(i) is a 1x1 numerical element. And you can not assign 5x1 numerical array ...

4 días hace | 0

| aceptada

Respondida
How can I get the value of a and b as a real number not as matrix
solve provides the option to generate multiple outputs - syms a b eqns = [2*a^2 + 4*a - 3 - 2*b^2 - 4*b + 3 == 0,a^3 - 4*a +...

4 días hace | 1

| aceptada

Respondida
How to find the x value of a function given by points?
Use logical indexing - Find Array Elements That Meet a Condition Also, as you are working with floating point numbers, it would...

4 días hace | 0

| aceptada

Respondida
Mean of a cell array with different cell sizes?
If the data in the cell array is compatible for concatenation, concatenate them and use mean for the specific dimension - a = ...

4 días hace | 1

| aceptada

Respondida
Conversion to cell from double is not possible.
You need to use curly brackets, {} %% Calculate delayed states for multiple delays x_d = cell(length(tau), 1); for k = 1:leng...

4 días hace | 0

| aceptada

Respondida
How can I merge two arrays in adjacent cells?.
I assume that the x and y data is stored in arrays x_vertices and y_vertices respectively. C = [x_vertices(:) y_vertices(:)] H...

4 días hace | 0

Respondida
How do I generate executable code from imported data?
You need to add the @(list_of_independent_variables) before the formulae. Flushmatrix = readtable('Spülmatrix2.xlsx','PreserveV...

5 días hace | 1

| aceptada

Respondida
A compact way to reduce, or remove, the fractional part (separated by a decimal point) of numbers in a table
Take the floor of the data. LastName = {'Paris';'London'}; Feature1 = [71.4589;69.1432]; Feature2 = [176.3458;163.9082]; T =...

5 días hace | 1

| aceptada

Respondida
change negative data to zero in one table in matlab
Find Array Elements That Meet your Condition and assign them to be 0.

5 días hace | 0

Cargar más