MATLAB Solutions & Expert Answers

Ask an expert. Trust the answer.
Academic and engineering questions answered by verified MATLAB professionals.

MATLAB expert answering student questions
Showing page 200 of 208 Ask a Question
How to make a matrix from the cells inside the cell?
Bellasmith · Jul 29, 2020 · matrix , matlab

Hi! I have a cell variable, the size is 4 by 3. The third column of the variable contains cells again. I want to extract the numbers that I have inside every cell of the third colu…

How do I create a 2 column matrix from my x and y data
Poppy · Jul 29, 2020 · matlab , matrix

I want to make a 2 column matrix for my x and y data which consists of 1000 datapoints, I have tried this and it replaces only one column: x=[0 1 2 3 4 5]; y=[0 1 2 3 4 5];   A = …

How to export a matrix in a text file?
Kimayaojja · Jul 28, 2020 · matrix , matlab

I want to save a matrix in a text file with the data organised in columns. Exemple: A= 1 2 3 4 5 6 I want to get a text file in which A looks like : A= 1 2 3 4 5 6 When I used the …

randomly select elements of an array
Amolisingh · Jul 28, 2020 · array , matrix , matlabsolutions

Hi How i can select randomly elements from a matrix o array I have the matrix and i want to select "x" numbers of elements…

Integrate new rows inside matrix and repeating them
Saanvijain · Jul 24, 2020 · matlab , matrix , matlabsolutions

I want to integrate two lines inside matrix and repeated frequently before each rows: The original matrix:   A = [ G1 X8 Y118 G1 X8 Y135 G1 X 8 Y 150 G1 X 8 Y 172 G1 X 8 Y 209 G1 …

Combination of rows of two different matrices
Samantha · Jul 24, 2020 · matrix , matlab , matlabsolutions

Sorry if this is a repeated question but I failed to find an answer myself. I have two matrices:   A = [-0.6, -0.2; -60, 2; 6, -20]; B = [-0.4, -0.8; -40, 8; 4, -80]; I want to fi…

Get a Free Consultation or a Sample Assignment Review!