Answered
how to subtract small window from an image by shifting pixel by pixel
Hi, inp_img = double(imread('cameraman.tif')); figure subplot(1,2,1); imshow(inp_img,[]); sub_mask_window = [14 25 16; 6 32...

5 years ago | 0

| accepted

Answered
How i can write array cell to excel sheet using loops?
Hi ahamd, use below script. % with for loop input_data = {'glcm11','glcm12','glcm13','glcm14'}; for i = 1 : length(input_dat...

5 years ago | 0

Answered
How to find Matlab Function blocks in a model?
Hi Hadi Zyien Yes, We have to use find_system to find matlab function block. After that, we need to use get_param command for...

5 years ago | 0

Answered
PNSR formula psnr=20.0* (log10(255/sqrt(mse)));
Hi Faizullah We can use 1 instead of 255, if your input image is logical (max pixel range is 1 ) or your image is uint8 then y...

5 years ago | 1

| accepted

Answered
How can I solve if condition in for loop matrix?
Hi use below code for your query. Here, B will check all rows, each column in A is less than, then it will allow to next iter...

5 years ago | 0

| accepted

Answered
how to get image from specific folder and resize each image and save them is a new folder
HI, Before reading the image (imread), you shoud change directory, where the files are present, as like as below clc; close ...

5 years ago | 1

| accepted

Answered
i want to send binary data from port of PC through GUI in MATLAB.i Need a code of this .is anyone here to help me?
Hi Abdul, Here I have attached pushBotton_comport.m and .fig file and screen shot for the same. I think this is what you are...

5 years ago | 0

Answered
Error: "Unable to read some of the variables due to unknown MAT-file error."
Hi Will Q, I can load 2nd (exampleActivations2) mat file data % load_mat = load('exampleActivations2.mat') load_mat = ...

5 years ago | 0

Answered
How to pass inputs to simulink for nested structures with array of structures
Hi You should create structure as like below. a = struct ('b',1,'c',2,'d',struct('f',{3,4,5},'g',{6,7,8},'h', ... {struct...

5 years ago | 0

Answered
How to assign values to 100 by 2 matrix?
x=ones(100,2); x(1:end,1) =2; x(1:end,2) =3; Try the above code. Thanks in advance!!!

5 years ago | 1

Answered
How to read a video and then write it, resulting to exact same video file ( same file size , same pixel values )
Hi, sotiraw sotiroglou Use this below code. Vptr = VideoReader('traffic.avi'); writer = VideoWriter('delete_me.avi', 'Motion ...

5 years ago | 0

Answered
save variable from callback function of GUI
Hi Fabio Righetti , I think, we can get the vaiable using global variable. so we first decalre a gloabal varible ,here "data" ...

5 years ago | 1

| accepted

Answered
how to change image format
Hi, @saeed hassiny. Use below code. clc clear all %% Get the info cd 'Images' img_dir = dir('*.pgm'); cd .. len...

5 years ago | 1

Question


How can we Systematically pause Simulink model and update the variable and continue model from Matlab command line
Hi Guys, I have few querys , how can we update the variable during simulaton time. Here I have created simple model. Param...

5 years ago | 1 answer | 0

1

answer

Question


how to do repeating numbers in array
Hi I have an array like [1 0 0 0 2 0 0 0 3 0 0 0 0 0 5 0 0 0 0]. I want output like, [1 1 1 1 2 2 2 2 3 3 3 3 3 3 5 5 5 5...

5 years ago | 2 answers | 0

2

answers

Question


View code generation readiness issues , c code generation from Matlab function
Hi guys, I got some issues while generate the 'C' Code from Matlab Function.Issue like this "Unsupported MATLAB Function calls" ...

7 years ago | 1 answer | 0

1

answer

Question


I have few doubt about MIL & SIL Test
Hi, I developed one model, and I have tested model using Signal Builder. Generally in this method, we will pass some inputs(test...

7 years ago | 0 answers | 0

0

answers