MATLAB QUESTIONS & EXPERT ANSWERS

Ask an expert. Trust the answer.
Your academic and career questions answered by verified experts.

Illustration
How to form an array with the input values?
Alfredo - 2020-11-04

%How would i form an array if i had 5 inputs like this of random number % displayed at the end. clc,clear x = 12; num = 0; for index = 1:5 y = input('...

how to call out specific cell in a matrix
Nicholassmith - 2020-11-04

If I have A=[1,2,3,4,5] B=[6,7,8,9,10] C=[1,2,3,4,5] If there a way to call out specific position at each matrix so that: Sum first value of A and fir...

Merging two arrays based on index arrays
Mauricio - 2020-11-04

I have the  arrays z_index = [2 3] and y_index = [4 1 5]. They store the indices of a main array x. z(z_index) = [1 3] and y(y_index) = [-2 4 2]. How...

How to change the name of the images from frame1.jpg , frame2. jpg to image1.jpg etc etc
Genesis - 2020-11-03

 I would like to change the name of 100 images  from frame...jpg to image 1.jpg , image2.jpg etc etc....

Getting Index in position 1 exceeds arrray bound error
Isaiah - 2020-11-03

I wrote a MATLAB code which will put a black box of 10 pixels width at the center of image but I am getting error which says "Index in position 1 exce...

Plotting histogram of image data present in a stack
Jaxon - 2020-11-03

how to plot histogram of a single image data. But it's not clear to me how the data in a stack can be plotted. For exmaple,    f = "Test_Image.tiff"...

Color map from green to red
Audrey - 2020-11-03

I have a map with values and i would like to display the values with colors - from green to red. The value closest to 0 will be green and the farthest...

how to find euclidean distance for an image?
Savannah - 2020-11-03

I have 100 images and i have to find the euclidean distance for it,and i have to take a query image and find the euclidean distance and retrieve the i...

Summation Equation in matlab code
Zachary - 2020-11-02

How can I write this summation equation in matlab ? N is the number of pixel in the image...

I want to change the black background of my image into white.
Lincoln - 2020-11-02

rgbImage=imread('C:\Users\KeerthiDev\Desktop\tomato_dataset\Tomato_late_blight_water_mold\late130.jpg'); %figure,imshow(rgbImage, []); rgbImage = imad...

Get a Free Consultation or a Sample Assignment Review!