I have written codes for generating series of patterns using matlab. I want to save the images generated in each loop indexed with the looping variable. I tried concatenation of strings but it shows error.
you can generate a mixed string and number name for your image using "sprintf" command. Then use generated names and "imwrite" to save images.
For a = 1:number_of_images
print(['my_figure_nr_' num2str(a)],'fig')
end
you can use these samples for saving your images:
%% saving images in an avi video file
clear;
clc;
for i=1:50
A(:,:,:,i)=uint8(255*rand(500,500,3));
imshow(A(:,:,:,i))
F(i)=getframe;
movie2avi(F,'test.avi')
%% saving images in n mat file
for i=1:10
B=uint8(255*rand(500,500,3));
save(strcat('A',num2str(i),'.mat'),'B');
%% saving images in n image file
imwrite(A(:,:,:,i),strcat('A',num2str(i),'.jpg'),'jpg')
Dear researchers, Kindly suggest any good scientist working on fungal metabolite for insect control..... If you have any interesting article or review, please share it..
19 August 2023 775 0 View
I have taken atomic absorption spectroscopy for nip alloy, I got the amount of nickel present in the given 12 mg of sample is 35.01 mg/l, I want to calculate the percentage of nickel and...
10 November 2014 2,162 4 View
I am looking for one good paper that tells the equation for phenotypic plasticity index. I know what phenotypic plasticity means but willing to calculate its index in my soybean for quantitative...
31 October 2014 1,697 6 View
As you know, the phenotypic plasticity is most widely studied in truss rather than in crop plants. Does anyone know how plasticity index should be calculated for phenotypic data derived from...
29 October 2014 9,490 7 View
In plants is it the short dense fibrous or long narrow taproots that absorb more water and nutrients needed for plant growth ?
25 October 2014 3,321 4 View
I am planning to use SAS PROCMIXED for BLUP analysis and the experimental design is RBD. I am aware that genotype can be used as fixed effect while using PROCMIXED alone but i would like to know...
29 September 2014 2,606 4 View
So does anyone know among various chlorophyll traits (Chlorophyll A, Chlorophyll B, Total Chlorophyll and Chlorophyll A/B ratio), is there any one best trait that can be used for measuring drought...
10 September 2014 2,530 23 View
I want to know how much depth X-ray can penetrate through a metal in the XRD measurement. Is there any software to find how much x-ray can penetrate.
06 September 2014 1,882 4 View
I have taken XRD for my Ni-Sn alloy and I have also studied FTIR for Ni-Sn alloy. Now, I want to support the XRD result with FTIR, so can any one help me in doing this.
07 August 2014 8,158 6 View
Can scattering cross-section calculated for visible light can be used to calculate the scattering cross-section of x-rays? What makes the difference between these two?
09 February 2014 696 3 View
I would like to understand potential safety concerns while handling SEB in the lab. Especially while working in animal house facility. Would like to know precautions for handling. Sigma MSDS...
07 August 2024 6,034 3 View
During low-temperature testing, new diffraction peaks that appear could be indicative of several phenomena. In one of our tests, we observed notable new peaks around 40° and 45° in a specific...
06 August 2024 726 3 View
TEP presentation caption (The Environmental Project) Re: Why should Washington’s DC, or any country government point of location think of as nowadays of as to being 'tomorrow as to come! if it...
03 August 2024 2,484 1 View
I am new to Micromechanics and having similar problem with understanding the implementation of the formula's. I would appreciate if anyone can guide me on how to go about getting a scalar value...
30 July 2024 969 0 View
Some Staphylococcus aureus strains Inhibit the growth of Mycobacteria in Mueller Hinton Agar medium containing 10% OADC. Do some Staphylococcus aureus strains have in vitro antimycobacterial activity?
29 July 2024 10,023 2 View
Please, what is the memory consumption of the Matlab function quad tree decomposition procedure [S = qtdecomp(I)] with respect to the input set I?
27 July 2024 5,455 2 View
all math can be traversed by code? all math can be translate to code?
26 July 2024 9,530 0 View
Hello, I am a research scholar currently working on a project involving image segmentation, and I am interested in using differential evolution for this purpose . I would greatly appreciate it if...
25 July 2024 9,926 1 View
Hello!!! I want to implement the Swerling characteristics functions (CF) directly in MATLAB without using its Fourier integral pairs...the Swerling CFs are actually Laplace Transform of the signal...
23 July 2024 4,925 1 View
Hello, colleagues! There is commenting open for new upcoming edition of USP 1033. Validation target acceptance criteria is now different from what it used to be and it doesn't include Cpm....
23 July 2024 7,292 3 View