Question

In: Mechanical Engineering

I have a 3-D matrix with (100,100,100) elements in Matlab, but it exceeds the limit of...

I have a 3-D matrix with (100,100,100) elements in Matlab, but it exceeds the limit of display. I want to extract those values from Matlab to excel. I want to know how to extract all the data values?

Solutions

Expert Solution

1st off all in excel also you can write 100*100 2d Array in diffrent 100 sheet
For that the coding as below i use random variable but you can change as per your requirment

CODE:

clc;clear all
A=rand(100,100,100)% you can change your matrix as your wish
for i=1:100
xlswrite('rand.xls',A(:,:,i),i) ; % as per your rquiremnent change A with your name
end

Output:

in excel you can get the output

For any doubt comment below i will solve your query
Rate my answer your rating is important to us


Related Solutions

USING MATLAB In signal processing applications, the Hankel matrix is useful. The elements of a (N...
USING MATLAB In signal processing applications, the Hankel matrix is useful. The elements of a (N × N) Hankel matrix are given by h?? =0   ?+?−1>? =?+?−1 otherwise Write a script that takes as input from the user an integer, n. Your code should accept input ≥1 and <10. The user should be repeatedly prompted until acceptable input is entered. Next, create n Hankel matrices for N=1,2,...,n. That is, if the user enters 4, you’ll generate 1×1, 2×2, 3×3, and...
This is Using MATLAB: I am trying to store the solution of this matrix because I...
This is Using MATLAB: I am trying to store the solution of this matrix because I want to do something with the result like find the norm of that answer however I am stuck and cannot seem to be able to. Help would be appreciated! --------------------------------------------- MATLAB CODE: close all clear clc A = [1 -1 2 -1; 2 -2 2 -3; 1 1 1 0; 1 -1 4 5]; b = [-8 -20 -2 4]'; x = gauss_elim(A,b) function...
MATLAB Given a 20x20 matrix named G and a 20x1 vector named H, multiply the elements...
MATLAB Given a 20x20 matrix named G and a 20x1 vector named H, multiply the elements in the 14th column of G by the values in H (element-by-element multiplication, not a multiplication table).
Write a Matlab function for a matrix that takes in a matrix in echelon form and...
Write a Matlab function for a matrix that takes in a matrix in echelon form and will return the row canonical form. The function cannot use rref, or any other matlab built in functions.
solve for matrix B Let I be Identity matrix (I-2B)-1= 1 -3 3 -2 2 -5...
solve for matrix B Let I be Identity matrix (I-2B)-1= 1 -3 3 -2 2 -5 3 -8 9
MATLAB: Matrix M = [ 0 2 3 5; 7 3 8 4 ] Write one...
MATLAB: Matrix M = [ 0 2 3 5; 7 3 8 4 ] Write one command that stores all of the rows of columns 1, 2, and 3 of M into a matrix named M2.
I'm new in MATLAB and I have to write a code in MATLAB which converts a...
I'm new in MATLAB and I have to write a code in MATLAB which converts a number from one base to another without using base2base, etc
Diagonalize the matrix (That is, find a diagonal matrix D and an invertible matrix P such...
Diagonalize the matrix (That is, find a diagonal matrix D and an invertible matrix P such that A=PDP−1. (Do not find the inverse of P). Describe all eigenspaces of A and state the geometric and algebraic multiplicity of each eigenvalue. A= -1 3 0 -4 6 0 0 0 1
So, I have this Matlab program that I have made for a lab, and despite having...
So, I have this Matlab program that I have made for a lab, and despite having different frequencies, when I go to plot them, the graphs look exactly the same. Can someone tell me why that is? I also need to know how to determine the digital frequencies(rad/sec) and how many samples per period of both of the waves? Thank you Code: N = 100; % Total number of time domain samples in simulation. A1 = 1; % Amplitude of...
Orthogonally diagonalize the matrix by finding an orthogonal matrix Q and a diagonal matrix D such...
Orthogonally diagonalize the matrix by finding an orthogonal matrix Q and a diagonal matrix D such that QTAQ = D. (Enter each matrix in the form [[row 1], [row 2], ...], where each row is a comma-separated list.) A = 5 0 0 0 1 3 0 3 1 (D, Q) = $$ Incorrect: Your answer is incorrect. Submission 2(0/1 points)Monday, November 25, 2019 10:01 PM CST Orthogonally diagonalize the matrix by finding an orthogonal matrix Q and a diagonal...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT