Question

Converting a cell array into a matrix of stipulated number of columns and rows

Consider I have a cell array containing 4 cells Each cell containd 'n' elements Now I want to covert it into an array of si...

1 month ago | 2 answers | 0

Question

Can I pass fitobject as a variable to a function

I have curve fit my data using the fit command as given below [cfit,gof,output] = fit(x,y,fitType) Now my fitobject is in cfi...

2 months ago | 1 answer | 0

Question

problem in dealing Cell and array

I have a cell name 'k' Each cell of 'k' contains two dimensional array with row size 'r' and column size 'q' (r*q) I want to m...

3 months ago | 1 answer | 0

Question

How to convert a table into an array

I have uploaded my table here. I just want to convert this table into an array. I tried command like table2array but i am ge...

4 months ago | 2 answers | 0

Question

How to design a Toeplitz matrix with negative lower triangle elements and zero main diagonal elements

I want to design a square symmetric toeplitz matriz with diagagonal elements zero and lower triangle elements should be negative...

4 months ago | 1 answer | 0

Question

How to Assign vectors to each dynamic variable name?

Firstly I want to create variable names like z1,z2,..,Zn with n decided by the user I have an array A of size n*n I want to as...

4 months ago | 1 answer | 0

Question

Error is generated while using uigetfile while loading text files manually

I have to manually select the files which have to be loaded. Each text file is loaded seperately into different cells "Amplitude...

5 months ago | 0 answers | 0

Question

Plotting columns of a matrix into a graph

Hi, I want to plot columns of two matrices Z_imag and Z_real in two separate graphs. I tried to do this code but I wasnt ab...

5 months ago | 0 answers | 0

Question

Plotting all the columns of a matrix

Hi, I want to plot columns of two matrices Z_imag and Z_real in two separate graphs. I tried to do this code but I wasnt ...

5 months ago | 2 answers | 0

Question

I want to load multiple text files into variable cell array

Hi I want to load multiple text files into call array variable and then read the data from it and store them in different var...

5 months ago | 1 answer | 0

Question

How can we transpose a row vector into column vector in a cell

I want to convert a row vector in my defined cell into coulumn vector A{1} = [1 2 3 4]; A{2} = [5 6 7 8]; I want to conve...

5 months ago | 1 answer | 0

Question

How to use Prod function with cell arrays

I have defined a cell array in the name of "T_mn" having "n_layers" number of cells. Each cell is having a vector containing "n...

5 months ago | 2 answers | 0

Question

Coding for nested loop problem

I want to run nested loop with two variables 'p' and 'q' Outer loop is for 'p' and Inner loop is for 'q' The problem is q shou...

5 months ago | 1 answer | 0

Question

Want to apply two different functions on different elements of a vector.

How can we operate two seperate functions on elements of a row vector: one function should be operated on even position elements...

9 months ago | 1 answer | 0