Skip to main content

Posts

Showing posts from September, 2022

Stretch the dynamic range of the given 8-bit grayscale image using MATL...

How can i give a trained model some images as an input ?

  I trained a model with classification learner to classify fruits. Now i want to test my model. How can i give the model some images as an input ? NOTE:- Matlabsolutions.com  provide latest  MatLab Homework Help,MatLab Assignment Help  ,  Finance Assignment Help  for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research. in order to use the trained model to predict new data, you will first have to export the trained model to the workspace. You can click on the "Export Model" drop-down in the Classification Learner App, and select the first option. Once you have the trained model in the MATLAB workspace, you can call its "predict" method and supply new image data to make predictions.    SEE COMPLETE ANSWER CLICK THE LINK https://www.matlabsolutions.com/resour

how to convert grey image to RGB

  i have 60 slice grey image. how want to convert to RGB image?   as attached is my grey image (grey.jpg). rgb.jpg is from internet what i want like.   this is my coding, but got error.     P = zeros(103, 103, 60); for K = 1 : 60 K_file=30+10*K; petname = sprintf('I%d.dcm', K_file); P(:,:,K) = dicomread(petname); scale = 130/103 ; Pi(:,:,K) = imresize(P(:,:,K),scale) ; % where P is your 103*103 3D matrix end rgbImage = gray2rgb(Pi); imshow3D(rgbImage) this is my function function [Image]=gray2rgb(Image) %Gives a grayscale image an extra dimension %in order to use color within it [m n]=size(Image); rgb=zeros(m,n,3); rgb(:,:,1)=Image; rgb(:,:,2)=rgb(:,:,1); rgb(:,:,3)=rgb(:,:,1); Image=rgb/255; end BUT GOT ERROR. Unable to perform assignment because the size of the left side is 130-by-7800 and the size of the right side is 130-by-130-by-60. Error in gray2rgb (line 6) rgb(:,:,1)=Image; Error in sliderspect1 (line 12) rgbImage = gray2rgb(Pi);   NOTE:- Matlab

Why doesn't the lock mate correctly export SolidWorks

  Why doesn't the lock mate correctly export SolidWorks assemblies with Smart Fasteners in SimMechanics Link 3.2 (R2010a)?   I have a SolidWorks model that uses Smart Fasteners. When I export this to SimMechanics via SimMechanics Link, I get a very complicated model that correctly models these complex interfaces. I wish to suppress this mobility into a massive weld joint without having to remodel my SolidWorks model. I can use the Lock Mate but this is not supported by SimMechanics as detailed by the documentation on supported constraints here; NOTE:- Matlabsolutions.com  provide latest  MatLab Homework Help,MatLab Assignment Help  ,  Finance Assignment Help  for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research. Support for Lock Mates or a suppress Smart Fasteners featu

32-bit MATAB and 64-bit SolidWorks, which SimMechanics Link?

  I have Windows and SolidWorks 64-bit but MATLAB is 32-bit. Which versions should I install SimMechanics? NOTE:- Matlabsolutions.com  provide latest  MatLab Homework Help,MatLab Assignment Help  ,  Finance Assignment Help  for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research. That won't work. You need either a 32-bit installation of both MATLAB and SolidWorks or a 64-bit installation of both MATLAB and SolidWorks. You can't mix and match between the two. I would suggest doing a 64-bit installation of MATLAB, you can have both a 32-bit and a 64-bit installation of MATLAB on the same machine. You can then link SolidWorks to the 64-bit installation of MATLAB with SimMechanics Link. Use the 64-bit version of SimMechanics Link for R2010a.    SEE COMPLETE ANSWER CLICK TH

What are the SimMechanics Link Problem?

  I am trying to import a Solidowrks assembly into simMechanics. I followed all the steps as in the web site. I have the pull-down menu SinMechanics Link in SolidWorks. When I try to save the assembly in the xml format, I get this error:   Could not start MATLAB. Check your MATLAB installation. Consult documentation to identify possible causes of failure.   I get this error regarding Matlab is open or not.   Note: I am using Matlab 2010a and SolidWorks 2010 NOTE:- Matlabsolutions.com  provide latest  MatLab Homework Help,MatLab Assignment Help  ,  Finance Assignment Help  for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research. - Install matlab and solidworks on same drive (ex: C: or D:).   - Right-click on the MATLAB icon, and selecting "Run as Administrator" - Writ