All Courses
All Courses
Courses by Software
Courses by Semester
Courses by Domain
Tool-focused Courses
Machine learning
POPULAR COURSES
Success Stories
Q1. Aim: Project : In a laboratory experiment, data of voltage and current has been recorded and the same is attached in an excel file ( Click on this link VI.xlsx ). Read the excel file in the Matlab program and perform the interpolation in the range of -17.3:0.1:0.9. Generate the interactive plot for…
Pratik Joshi
updated on 02 Sep 2022
Q1.
Aim:
Project :
In a laboratory experiment, data of voltage and current has been recorded and the same is attached in an excel file ( Click on this link VI.xlsx ). Read the excel file in the Matlab program and perform the interpolation in the range of -17.3:0.1:0.9. Generate the interactive plot for the interpolated data and store them in a text file.
Key Highlights:
Deliverables:
Ans:
Here we have used the command 'interp1' for interpolation. The output xq1 is put to the text file called 'interpolation'.
Code for interpolation:
fileID = fopen('interpolation.txt','w'); % Open the text file to write the output
x = ImAmp; % defining a variable x from excel file
y = VVolt; % defining a variable y from excel file
xq = [-17.3:0.1:0.9]; % defining the range for interpolation
xq1 = interp1(y,x,xq); % interpolation
figure(1);
plot(x,y,'o',xq,xq1,':'); % plotting the interpolation
grid;
fprintf(fileID,'%f','xq1'); % print the output xq1 to the text file
Workspace:
Output:
Output in text file:
Leave a comment
Thanks for choosing to leave a comment. Please keep in mind that all the comments are moderated as per our comment policy, and your email will not be published for privacy reasons. Please leave a personal & meaningful conversation.
Other comments...
Project - Speed Control of a Direct Current (DC) motor
Aim: In this project, a Simulink model for the DC motor will be first developed per the schematic shown in Figure 1. Use the Proportional, Integral, and Derivative (PID) control design knowledge gained in the training to design, develop and test a controller to maintain a desired speed for the motor. Ans: Subsystem Dc…
10 Sep 2022 01:46 PM IST
Project - Data Handling and Interpolation
Q1. Aim: Project : In a laboratory experiment, data of voltage and current has been recorded and the same is attached in an excel file ( Click on this link VI.xlsx ). Read the excel file in the Matlab program and perform the interpolation in the range of -17.3:0.1:0.9. Generate the interactive plot for…
02 Sep 2022 05:07 PM IST
Project 2-Highway Assistant-Lane Changing Assistant
Aim: Highway Assistant – Lane Changing Assistant Introduction to the Feature: The Highway Assistant supports the driver and takes over the longitudinal and lateral guidance of the vehicle in monotonous driving situations on highways. The partially automated function can automatically start, accelerate, brake as well…
09 Aug 2022 08:36 PM IST
Project 1- Traffic Jam Assistant Feature
Aim: Traffic Jam Assistant Feature Introduction to the Feature: Traffic Jam Assistant is one of the most common feature in Advanced Driver Assistance System. Traffic Jam Assistant helps the driver arrive more relaxed at their destination, even in dense traffic or in traffic jams. As a partially automated comfort function,…
08 Aug 2022 03:36 PM IST
Related Courses
0 Hours of Content
Skill-Lync offers industry relevant advanced engineering courses for engineering students by partnering with industry experts.
© 2025 Skill-Lync Inc. All Rights Reserved.