Question

. Create a Matlab script that will load the file finc.mat and create a structure from...

. Create a Matlab script that will load the file finc.mat and create a structure from the appropriate with the following fields: • Company (string) • First_Name (string) • Last_Name (string) • Address (string) • Credit_Card_Number (Integer) • Account_Balance (Real) • Credit_Score (Real) • Transaction (Array) To the right of the field names above are the data type in parentheses. Your code should calculate and display the following: • The descriptive statistics discussed in class of the Credit Scores for each customer. • The Credit Score that is the demarcation of the top 10% of credit scores. • The full name, company, address, account balance, and credit score of the individual with the lowest credit score

Homework Answers

Answer #1
function [output]=dataconv(input,src_sig)
%
% dataconv
%
% Convolves the data stored in the input matrix with the selected source
% signature.
%
% IMPORTANT:
% PRELOAD DATA IN WORKSPACE
%
% Variable description:
% - input = input matrix, preloaded in workspace,  call without
%   hyphens nor .mat extension
% - src__sig = selected source signature, already resampled and centered, preloaded in workspace, call without
%   hyphens nor .mat. If .asc, there is no need to preload in workspace, replace 
%   src_filename=load('filename.asc'), i.e.: output=dataconv(data,load('filename.asc'))
% 
%
% EXAMPLE:
% test=dataconv(src6p,PGSsig1);;
%% PARAMETERS
[nt,ntrc]=size(input);
%% FULL CONVOLUTION
output=zeros(nt,ntrc);
for i=1:ntrc;
    output(:,i)=conv(input(:,i),src_sig,'same');
end
%% ZERO-OFFSET TRACE DISPLAY
input_trc=input(:,1);
output_trc=output(:,1);
dt=0.002;
t=(0:nt-1)*dt;
figure
subplot(3,1,1), plot(t,input_trc), grid on, xlim([0.4 2]); title('Green´s function data'), xlabel('Time [s]'); ylabel('Amplitude') 
subplot(3,1,2), plot(src_sig), grid on; title('Source signature:Resampled and Time-Shifted'),xlabel('Time [s]');ylabel('Amplitude')
subplot(3,1,3), plot(t,output_trc), grid on, xlim([0.4 2]); title('Convolution'),xlabel('Time [s]');ylabel('Amplitude')
axes;
h = title(['Zero-Offset Trace']);
set(gca,'Visible','off');
set(h,'Visible','on','Position',[0.5 1.05 0]);
Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
C++ //StudentDataStructure.txt //Student records are stored in a parallel-array Data Structure. Here is the code to...
C++ //StudentDataStructure.txt //Student records are stored in a parallel-array Data Structure. Here is the code to generate and populate Parallel-Array Data Structure: const int NG = 4; //Number of Grades string names[] = {"Amy Adams", "Bob Barr", "Carla Carr", "Dan Dobbs", "Elena Evans" }; int exams[][NG]= { {98,87,93,88}, {78,86,82,91}, {66,71,85,94}, {72,63,77,69}, {91,83,76,60} };    --------------------------------------------------------------------------------- 1 A) Create and Populate a Parallel-Array Data Structure using the code described in "StudentDataStructure.txt". B) Define a Record Data Structure for student records. It...
Write a 4-6 sentence summary explaining how you can use STL templates to create real world...
Write a 4-6 sentence summary explaining how you can use STL templates to create real world applications. In your summary, provide an example of a software project that you can create using STL templates and provide a brief explanation of the STL templates you will use to create this project. After that you will implement the software project you described . Your application must be a unique project and must incorporate the use of an STL container and/or iterator and...
Please read the article and answear about questions. Determining the Value of the Business After you...
Please read the article and answear about questions. Determining the Value of the Business After you have completed a thorough and exacting investigation, you need to analyze all the infor- mation you have gathered. This is the time to consult with your business, financial, and legal advis- ers to arrive at an estimate of the value of the business. Outside advisers are impartial and are more likely to see the bad things about the business than are you. You should...
Delta airlines case study Global strategy. Describe the current global strategy and provide evidence about how...
Delta airlines case study Global strategy. Describe the current global strategy and provide evidence about how the firms resources incompetencies support the given pressures regarding costs and local responsiveness. Describe entry modes have they usually used, and whether they are appropriate for the given strategy. Any key issues in their global strategy? casestudy: Atlanta, June 17, 2014. Sea of Delta employees and their families swarmed between food trucks, amusement park booths, and entertainment venues that were scattered throughout what would...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT