MATLAB MATLAB Project: Tips, Guide & Concepts

  • Thread starter Thread starter needOfHelpCMath
  • Start date Start date
  • Tags Tags
    Matlab Project
AI Thread Summary
The discussion revolves around a project requiring assistance with MATLAB programming concepts, particularly focusing on image processing and video creation. The user is attempting to implement a for loop to access images from a specified directory but is unsure about the correctness of their code. They share a snippet that includes reading DICOM images and resizing a JPEG image, but they express difficulty in displaying the images correctly. Additionally, there is a request for guidance on the project, as the user has limited time to complete it due to back-to-back classes. Some participants in the discussion criticize the lack of initial work shown and emphasize the need for the user to demonstrate their understanding and progress to receive more effective help.
needOfHelpCMath
Messages
70
Reaction score
0
I have a project and i need some help to understand the concepts, what is it asking for, major tips, and guide me through the process of the project. The program I will be using to program will be MATLAB.https://blackboard.learn.fresnostat.../ECE72-01-74696-2167/Project 2 Directions.pdf
Code:
 // This is my for loop that i have to use to access my picture but unsure if it correct
           // THIS IS NOT FOR C++
srcFiles = dir('C:\Users\James\Documents\MATLAB\image');
for i = 1 : length(image)
  filename = image('',image(i).name);
  I = dicomread(filename);
  figure, imshow(I);
end
Code:
writerObj = VideoWriter(myAnimation, 'MPEG-4');
writerObj.FrameRate = 0.5;
open(writerObj);

a = imread('robot','jpg');
B=imresize(a,0.25);
figure(1)
imshow(B);

writeVideo(writeObj,'robot','jpg'); 

close(writeObj);
 

Attachments

Last edited:
Physics news on Phys.org
I, for one, cannot read those images.

You've posted an entire assignment without showing any work. What do you expect us to do?
 
Sorry for my bad images and not showing my work. I had class back to back had only 20 min passing period. I will tried resize the image show some of my work. :D
 
So I struggle trying put up the image so instead link the website to my pdf hopefully makes it better.
 
Back
Top