Community Profile

photo

Navdha Agarwal


10 total contributions since 2019

Navdha Agarwal's Badges

  • Revival Level 2
  • First Answer

View details...

Contributions in
View by

Answered
Placing a number to regularly increasing array
I hope the following snippet help you. a = 1:10; insert = 3.2; for i = 1:length(a) if( i == 1 && insert <= a(i)) ...

5 months ago | 0

Answered
How to make for loop for subtraction among consecutive array elements ???
Following is the code snippet for the iterations using the for loop. a =[2 3 1 8 5 6]; len = length(a); % length of the arr...

5 months ago | 0

Answered
How to print all 1x243 elements of an array in a single row
You can use reshape. If you have an array of dimensions 1x243, then using the following you can convert it to an array of dimen...

5 months ago | 0

Answered
How to use array2table without having headers?
If you have to write an array or a matrix to an excel file, you can do so without even converting it to a table. Following is t...

5 months ago | 0

Answered
Adding a smaller array to a larger array within a loop
Hi Liam, As I understand from your question, following is the code for what you want to achieve. From the elements after 1e3 i...

5 months ago | 0

Answered
How do i set empty matrix elements to zero?
Following assumptions are made for the solution stated below: The csv file is being read as a matrix and some cells are actuall...

5 months ago | 0

Answered
how to build a character array to show letters that appear multiple times in a word
As I understand from your question, you want to build a character array of all those letters that appear multiple times in a wor...

5 months ago | 0

Answered
Writing a matrix with header into a .csv file
- If you do not want the titles or the name of the columns then you can use: A=[1 2 3;4 5 6] csvwrite('file.csv',A) - ...

5 months ago | 0

Answered
How can I create table from matrix?
Suppose A is the matrix. You can convert it to the table using the following lines of code: T = array2table(A); % Default head...

5 months ago | 1

Answered
Given a matrix A, create the matrix B whose elements are the neighbor sumr for A
Hi Jose, As I understand from your question, you want to create a matrix B from a matrix A such that the elements of matrix B a...

5 months ago | 0