Community Profile

# Aakash Deep

48 total contributions since 2018

I am a B.Tech 4th year CSE student.

View details...

Contributions in
View by

Lists in matlab to store iterative data.
Hello Nilesh, From your question I understand that you are trying to add a new value into your pre-defined vector. So for th...

mer än 2 år ago | 0

| accepted

Solved

Second Diagonal
Transpose the matrix from it's second diagonal.

mer än 2 år ago

Readtable error: Index exceeds array bounds.
Hello, You can try dlmread command to read a .csv file If you think path is creating problem somewhere, you can k...

mer än 2 år ago | 0

picking maximum difference across entries of row vectors, Part 2
Hello, In order to find out the maximum difference between two elements in a row vector, you can first sort it and then take ...

mer än 2 år ago | 0

Convert unfolded tensor back to higher dimensional tensor?
Hey Rohit, Let's first see how we can unfold a tensor to matrix then you might get some insight how to unfold it back. Let's ...

mer än 2 år ago | 0

Problem

Second Diagonal
Transpose the matrix from it's second diagonal.

mer än 2 år ago | 0 | 30 solvers

MATLAB crashes if imshow is used.
If you have a valid license then you can contact support from the below link <https://mathworksservicerequest.secure.force.co...

mer än 2 år ago | 0

convert matrix to tensor

mer än 2 år ago | 0

how to make a tree
Here are some of the references which you can look at, <https://www.mathworks.com/matlabcentral/answers/35698-c4-5> <https...

mer än 2 år ago | 0

3D plot of a matrix
Hello Anshuman, You can just use the surf command for this. It will take care of your axis and color contrast itself. A...

mer än 2 år ago | 0

could anyone tell me how to save the values while the code is getting executed
Use save command to save the current value of the variable. save filename variable1 This will create .mat file (for this...

mer än 2 år ago | 0

Save workspace output to a file
Hello Alpedhuez, You can use the save command to save multiple workspace variables in a single file. You can do this ...

mer än 2 år ago | 0

Extract features from an EEG (single channel) signal
Hello Chiara, If you want to extract the alpha and theta rhythm of the signal, you can find the wigner-ville transform of the...

mer än 2 år ago | 0

Matlab taking too much time to give output
Hey Pushkar, Solving a convex optimization problem is a big task. Yes, it can take a long time to converge. You can not minim...

mer än 2 år ago | 0

how to make if statement repeat only once ?
Hey, From your question, I understand that you have a if condition inside a loop which you need to execute only once for a p...

mer än 2 år ago | 3

change a script to function
Hey, In order to create a function in MATLAB, add a couple of lines to your code function [out_1, out_2, ....., out_n]...

mer än 2 år ago | 0

| accepted

how to plot surface for this problem.
I am assuming that your matrix *X* has a dimension nx3 where n can be your iterations. After executing your function command *F=...

mer än 2 år ago | 0

Converting a 1x1 Vector into a Scalar Number
I agree with Stephen Cobeldick comments that there is no data class as scalar/vector/matrix, it all depends on their dimensions....

mer än 2 år ago | 0

Solved

Bullseye Matrix
Given n (always odd), return output a that has concentric rings of the numbers 1 through (n+1)/2 around the center point. Exampl...

mer än 2 år ago

Solved

Nearest Numbers
Given a row vector of numbers, find the indices of the two nearest numbers. Examples: [index1 index2] = nearestNumbers([2 5 3...

mer än 2 år ago

Solved

Target sorting
Sort the given list of numbers |a| according to how far away each element is from the target value |t|. The result should return...

mer än 2 år ago

Solved

Return the largest number that is adjacent to a zero
This example comes from Steve Eddins' blog: <http://blogs.mathworks.com/steve/2009/05/27/learning-lessons-from-a-one-liner/ Lear...

mer än 2 år ago

Solved

The Goldbach Conjecture
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...

mer än 2 år ago

Solved

Which values occur exactly three times?
Return a list of all values (sorted smallest to largest) that appear exactly three times in the input vector x. So if x = [1 2...

mer än 2 år ago

Solved

Sort a list of complex numbers based on far they are from the origin.
Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

mer än 2 år ago

Solved

Remove the vowels
Remove all the vowels in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill' Output s2 is 'Jck nd Jll wn...

mer än 2 år ago

Solved

Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

mer än 2 år ago

Solved

Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

mer än 2 år ago

Solved

Most nonzero elements in row
Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

mer än 2 år ago

Solved

Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

mer än 2 år ago