It is simple Using map object key as x and value as the calculation of function
% adding initial value to create map object
mapObject=containers.Map({-5},{-5*-5+3*-5-2});
% using for loop to calculate the value of function
for x=-4.5:0.5:5
% adding to map
mapObject(x)=x*x+3*x-2;
%end of for loop
end
Now you have the values and keys as x values in the map
Solution
It is simple Using map object key as x and value as the calculation of function
% adding initial value to create map object
mapObject=containers.Map({-5},{-5*-5+3*-5-2});
% using for loop to calculate the value of function
for x=-4.5:0.5:5
% adding to map
mapObject(x)=x*x+3*x-2;
%end of for loop
end
Now you have the values and keys as x values in the map

More Related Content

PDF
Vibrio cholerae is bacteria present in aquatic environment.It causes.pdf
PDF
This theory of Hamilton of kin selection based on basic element the .pdf
PDF
Thermoregulation is the ability of an organism to keep its body temp.pdf
PDF
There are many reasons that web- based cameras to study animal behav.pdf
PDF
The following survival strategies were employed by the birds if thei.pdf
PDF
SavingsAccount.javapublic class SavingsAccount{             .pdf
PDF
The java class Account that simultes the Account class.pdf
PDF
The number of protons in the nucleus of an elemen.pdf
Vibrio cholerae is bacteria present in aquatic environment.It causes.pdf
This theory of Hamilton of kin selection based on basic element the .pdf
Thermoregulation is the ability of an organism to keep its body temp.pdf
There are many reasons that web- based cameras to study animal behav.pdf
The following survival strategies were employed by the birds if thei.pdf
SavingsAccount.javapublic class SavingsAccount{             .pdf
The java class Account that simultes the Account class.pdf
The number of protons in the nucleus of an elemen.pdf

More from akshay1213 (20)

PDF
Resonance structures are simply alternate Lewis s.pdf
PDF
only above a certain temperature .pdf
PDF
molecular solids SO2, I2, P4, S8, H2O (ice) cov.pdf
PDF
MnO4- because it is stronger oxidizing agent. .pdf
PDF
Liquid decane because it is heavier and has great.pdf
PDF
IV is a saturate hydrocarbon (without multiple ca.pdf
PDF
in saturation ca2+ conc = OH- conc as 2 OH- will.pdf
PDF
D ALL of them .pdf
PDF
program filesadmin.aspx.csusing System; using System.Colle.pdf
PDF
C is best methode Bromination of alkane is most f.pdf
PDF
C. CH3Br note like dissolves like. All the othe.pdf
PDF
P(white head) = 1115P(white tails) = 925P(head white.pdf
PDF
Organelle participates in intracellular digestion isLysosomes.pdf
PDF
NH-2 as nitrogen has lone pair of electrons and a negatine charge on.pdf
PDF
lithuim has 3 atomic number.Li Solutionlithuim has 3 atomic.pdf
PDF
In the stratosphere ozone molecules are absorbing the uvlight. The.pdf
PDF
Information technology (IT) is dramatically changing the business la.pdf
PDF
In other words, this is asking you how to write a proper delta H rea.pdf
PDF
FalseExplanation cin object starts reading the input buffer and .pdf
PDF
f(x) = (x-5)^2Domain of the function = ( -infinity , + infinity).pdf
Resonance structures are simply alternate Lewis s.pdf
only above a certain temperature .pdf
molecular solids SO2, I2, P4, S8, H2O (ice) cov.pdf
MnO4- because it is stronger oxidizing agent. .pdf
Liquid decane because it is heavier and has great.pdf
IV is a saturate hydrocarbon (without multiple ca.pdf
in saturation ca2+ conc = OH- conc as 2 OH- will.pdf
D ALL of them .pdf
program filesadmin.aspx.csusing System; using System.Colle.pdf
C is best methode Bromination of alkane is most f.pdf
C. CH3Br note like dissolves like. All the othe.pdf
P(white head) = 1115P(white tails) = 925P(head white.pdf
Organelle participates in intracellular digestion isLysosomes.pdf
NH-2 as nitrogen has lone pair of electrons and a negatine charge on.pdf
lithuim has 3 atomic number.Li Solutionlithuim has 3 atomic.pdf
In the stratosphere ozone molecules are absorbing the uvlight. The.pdf
Information technology (IT) is dramatically changing the business la.pdf
In other words, this is asking you how to write a proper delta H rea.pdf
FalseExplanation cin object starts reading the input buffer and .pdf
f(x) = (x-5)^2Domain of the function = ( -infinity , + infinity).pdf
Ad

Recently uploaded (20)

PDF
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
PPTX
A powerpoint presentation on the Revised K-10 Science Shaping Paper
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PPTX
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
PDF
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
PDF
International_Financial_Reporting_Standa.pdf
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
PDF
Hazard Identification & Risk Assessment .pdf
PDF
Paper A Mock Exam 9_ Attempt review.pdf.
PPTX
B.Sc. DS Unit 2 Software Engineering.pptx
PPTX
Unit 4 Computer Architecture Multicore Processor.pptx
PDF
Trump Administration's workforce development strategy
PDF
IGGE1 Understanding the Self1234567891011
PDF
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
PDF
Environmental Education MCQ BD2EE - Share Source.pdf
PDF
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
PPTX
20th Century Theater, Methods, History.pptx
PDF
Practical Manual AGRO-233 Principles and Practices of Natural Farming
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
A powerpoint presentation on the Revised K-10 Science Shaping Paper
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
International_Financial_Reporting_Standa.pdf
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
Hazard Identification & Risk Assessment .pdf
Paper A Mock Exam 9_ Attempt review.pdf.
B.Sc. DS Unit 2 Software Engineering.pptx
Unit 4 Computer Architecture Multicore Processor.pptx
Trump Administration's workforce development strategy
IGGE1 Understanding the Self1234567891011
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
Environmental Education MCQ BD2EE - Share Source.pdf
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
20th Century Theater, Methods, History.pptx
Practical Manual AGRO-233 Principles and Practices of Natural Farming
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
Ad

It is simple Using map object key as x and value as the calculation .pdf

  • 1. It is simple Using map object key as x and value as the calculation of function % adding initial value to create map object mapObject=containers.Map({-5},{-5*-5+3*-5-2}); % using for loop to calculate the value of function for x=-4.5:0.5:5 % adding to map mapObject(x)=x*x+3*x-2; %end of for loop end Now you have the values and keys as x values in the map Solution It is simple Using map object key as x and value as the calculation of function % adding initial value to create map object mapObject=containers.Map({-5},{-5*-5+3*-5-2}); % using for loop to calculate the value of function for x=-4.5:0.5:5 % adding to map mapObject(x)=x*x+3*x-2; %end of for loop end Now you have the values and keys as x values in the map