Month: July 2024
Is there a way to check answers using rand in MATLAB Grader?
I am using MATLAB Grader to check students’ work. Many basic problems ask them to create particular arrays using rand or randi. Is there a way to check if their answer is a possible correct answer?
For example, a problem could ask them to generate a vector v1 of 20 random integers between -4 and 2.
v1 = randi([-4,2],1, 20);
But if I use the assessVariableEqual function to check their answer, it won’t work because their answer contains randomized values. I’d like to be able to check the min, max, and length of the result to see that it is within the expected range. Is there a way to do that?I am using MATLAB Grader to check students’ work. Many basic problems ask them to create particular arrays using rand or randi. Is there a way to check if their answer is a possible correct answer?
For example, a problem could ask them to generate a vector v1 of 20 random integers between -4 and 2.
v1 = randi([-4,2],1, 20);
But if I use the assessVariableEqual function to check their answer, it won’t work because their answer contains randomized values. I’d like to be able to check the min, max, and length of the result to see that it is within the expected range. Is there a way to do that? I am using MATLAB Grader to check students’ work. Many basic problems ask them to create particular arrays using rand or randi. Is there a way to check if their answer is a possible correct answer?
For example, a problem could ask them to generate a vector v1 of 20 random integers between -4 and 2.
v1 = randi([-4,2],1, 20);
But if I use the assessVariableEqual function to check their answer, it won’t work because their answer contains randomized values. I’d like to be able to check the min, max, and length of the result to see that it is within the expected range. Is there a way to do that? grader, rand, randi MATLAB Answers — New Questions
Which products should I select ?
When I download and install R2024a i saw alot lot of products ,what should i install as a Mathematics student ?When I download and install R2024a i saw alot lot of products ,what should i install as a Mathematics student ? When I download and install R2024a i saw alot lot of products ,what should i install as a Mathematics student ? mathematics, math, product MATLAB Answers — New Questions
Please help me to sove this problem, thank you so much!
Error in ‘bingwangnibia1/Subsystem/vo’: Initialization commands cannot be evaluated.
Caused by:
PSB option menu block block (mask) does not have a parameter named ‘NonlinearTolerance’Error in ‘bingwangnibia1/Subsystem/vo’: Initialization commands cannot be evaluated.
Caused by:
PSB option menu block block (mask) does not have a parameter named ‘NonlinearTolerance’ Error in ‘bingwangnibia1/Subsystem/vo’: Initialization commands cannot be evaluated.
Caused by:
PSB option menu block block (mask) does not have a parameter named ‘NonlinearTolerance’ nonlineartolerance MATLAB Answers — New Questions
Convert an 8 bit image to 12 bit
I am trying to convert an image from 8bit to 12 bit. I understand 8 bit can go from 0-256 while 12 can go from 0-4095 i believe. Basically i am using the bit value for analysis purpose so using a 12 bit image makes more sense for me. However I don’t have a lot of experience with image processing. Can i simply multiply the 8 bit values by a fraction of 256 or something similar? If anyone has any experience doing this can provide some feedback. I have read about going from 12 bit to 8 bit but it is hard to find information on going the other way.I am trying to convert an image from 8bit to 12 bit. I understand 8 bit can go from 0-256 while 12 can go from 0-4095 i believe. Basically i am using the bit value for analysis purpose so using a 12 bit image makes more sense for me. However I don’t have a lot of experience with image processing. Can i simply multiply the 8 bit values by a fraction of 256 or something similar? If anyone has any experience doing this can provide some feedback. I have read about going from 12 bit to 8 bit but it is hard to find information on going the other way. I am trying to convert an image from 8bit to 12 bit. I understand 8 bit can go from 0-256 while 12 can go from 0-4095 i believe. Basically i am using the bit value for analysis purpose so using a 12 bit image makes more sense for me. However I don’t have a lot of experience with image processing. Can i simply multiply the 8 bit values by a fraction of 256 or something similar? If anyone has any experience doing this can provide some feedback. I have read about going from 12 bit to 8 bit but it is hard to find information on going the other way. image analysis, image processing, digital image processing MATLAB Answers — New Questions
Microsoft Visual Studio 2022 set up as default C and C++ compiler in Matlab 2021a
That´s my need. It´s installed but Matlab doesn´t know that it is.
if I put: mex -setup, Microsoft visual studio doesn´t appear.
Thank you very much for helping!
What must I do in order to set Visual Studio as the Matlab C and C++ Compiler?
My default Compiler now is mingw64-g++ but I want to generate an audio plugin and it can´t be compiled, this is the message:
"Error using generateAudioPlugin
Toolchain ‘MinGW64 Compiler (C++)’ is not supported for generating audio plug-ins. Use one
of the following:
Microsoft Visual C++ 2017
Microsoft Visual C++ 2015."
Visual C++ is already installed in my desktop but how can I integrate it to MATLAB in order to be the compiler in use with it?That´s my need. It´s installed but Matlab doesn´t know that it is.
if I put: mex -setup, Microsoft visual studio doesn´t appear.
Thank you very much for helping!
What must I do in order to set Visual Studio as the Matlab C and C++ Compiler?
My default Compiler now is mingw64-g++ but I want to generate an audio plugin and it can´t be compiled, this is the message:
"Error using generateAudioPlugin
Toolchain ‘MinGW64 Compiler (C++)’ is not supported for generating audio plug-ins. Use one
of the following:
Microsoft Visual C++ 2017
Microsoft Visual C++ 2015."
Visual C++ is already installed in my desktop but how can I integrate it to MATLAB in order to be the compiler in use with it? That´s my need. It´s installed but Matlab doesn´t know that it is.
if I put: mex -setup, Microsoft visual studio doesn´t appear.
Thank you very much for helping!
What must I do in order to set Visual Studio as the Matlab C and C++ Compiler?
My default Compiler now is mingw64-g++ but I want to generate an audio plugin and it can´t be compiled, this is the message:
"Error using generateAudioPlugin
Toolchain ‘MinGW64 Compiler (C++)’ is not supported for generating audio plug-ins. Use one
of the following:
Microsoft Visual C++ 2017
Microsoft Visual C++ 2015."
Visual C++ is already installed in my desktop but how can I integrate it to MATLAB in order to be the compiler in use with it? c++ compiler set up, c++ compiler configuration MATLAB Answers — New Questions
How to improve efficiency of patternsearch function optimization with multiple outputs
I have written a code that uses patternsearch to optimize a complex aircraft geometry for a desired flight condition. The code itself is extremely long, so I’m writing a simpler version below. The function of interest takes multiple geometric variables as inputs, and outputs lift (the objective) and volume (the constraint). I have followed some guides, and have my code setup in a way like this at the moment (this is an extremely simplified version for brevity):
obj = fcn2optimexpr(@lift_fun,x1,x2,x3,x4,x5);
prob = optimproblem("Objective",1/obj);
const1 = fcn2optimexpr(@volume_fun,x1,x2,x3,x4,x5);
prob.Constraints.vol = const1 >= 5;
x0 = [1 2 3 4 5];
[sol] = solve(prob,x0,"Solver","patternsearch","Options",options);
function [lift] = lift_fun(w,n,beta,epsS,p2,p3,Mdesign)
[lift,~] = master_function(x1,x2,x3,x4,x5);
end
function [volume] = volume_fun(w,n,beta,epsS,p2,p3,Mdesign)
[~,volume] = master_function(x1,x2,x3,x4,x5);
end
As I understand it, this code is calling the function ‘master_function’ twice for every optimization loop. This is a problem because this function takes up to a minute to run every time. Because of this I am wondering if it is possible to edit this code so that ‘master_function’ is only called once, providing both the objective and the constraint for the patternsearch optimization? Thank you for your helpI have written a code that uses patternsearch to optimize a complex aircraft geometry for a desired flight condition. The code itself is extremely long, so I’m writing a simpler version below. The function of interest takes multiple geometric variables as inputs, and outputs lift (the objective) and volume (the constraint). I have followed some guides, and have my code setup in a way like this at the moment (this is an extremely simplified version for brevity):
obj = fcn2optimexpr(@lift_fun,x1,x2,x3,x4,x5);
prob = optimproblem("Objective",1/obj);
const1 = fcn2optimexpr(@volume_fun,x1,x2,x3,x4,x5);
prob.Constraints.vol = const1 >= 5;
x0 = [1 2 3 4 5];
[sol] = solve(prob,x0,"Solver","patternsearch","Options",options);
function [lift] = lift_fun(w,n,beta,epsS,p2,p3,Mdesign)
[lift,~] = master_function(x1,x2,x3,x4,x5);
end
function [volume] = volume_fun(w,n,beta,epsS,p2,p3,Mdesign)
[~,volume] = master_function(x1,x2,x3,x4,x5);
end
As I understand it, this code is calling the function ‘master_function’ twice for every optimization loop. This is a problem because this function takes up to a minute to run every time. Because of this I am wondering if it is possible to edit this code so that ‘master_function’ is only called once, providing both the objective and the constraint for the patternsearch optimization? Thank you for your help I have written a code that uses patternsearch to optimize a complex aircraft geometry for a desired flight condition. The code itself is extremely long, so I’m writing a simpler version below. The function of interest takes multiple geometric variables as inputs, and outputs lift (the objective) and volume (the constraint). I have followed some guides, and have my code setup in a way like this at the moment (this is an extremely simplified version for brevity):
obj = fcn2optimexpr(@lift_fun,x1,x2,x3,x4,x5);
prob = optimproblem("Objective",1/obj);
const1 = fcn2optimexpr(@volume_fun,x1,x2,x3,x4,x5);
prob.Constraints.vol = const1 >= 5;
x0 = [1 2 3 4 5];
[sol] = solve(prob,x0,"Solver","patternsearch","Options",options);
function [lift] = lift_fun(w,n,beta,epsS,p2,p3,Mdesign)
[lift,~] = master_function(x1,x2,x3,x4,x5);
end
function [volume] = volume_fun(w,n,beta,epsS,p2,p3,Mdesign)
[~,volume] = master_function(x1,x2,x3,x4,x5);
end
As I understand it, this code is calling the function ‘master_function’ twice for every optimization loop. This is a problem because this function takes up to a minute to run every time. Because of this I am wondering if it is possible to edit this code so that ‘master_function’ is only called once, providing both the objective and the constraint for the patternsearch optimization? Thank you for your help optimization, functions MATLAB Answers — New Questions
how to perform two dimensional deconvolution in matlab?
result2=[600 600] matrix,
frq22=[600 600] matrix,
I have to deconvolve these two matrices.For this I am using the following code but it’s not working.
Img=deconv(result2,frq22,’same’);result2=[600 600] matrix,
frq22=[600 600] matrix,
I have to deconvolve these two matrices.For this I am using the following code but it’s not working.
Img=deconv(result2,frq22,’same’); result2=[600 600] matrix,
frq22=[600 600] matrix,
I have to deconvolve these two matrices.For this I am using the following code but it’s not working.
Img=deconv(result2,frq22,’same’); deconvolution of signals, 2d deconvolution MATLAB Answers — New Questions
How to open a 12-bit .raw image file from Matlab
Hello guys,
Firt timer here asking a question. I have a 12-bit .raw image file save from our experiment – this normall consist of up to 10,000 frames.
I am trying to us matlab to read this .raw file and reconstruct it back into frame images, e.g. Tiff ones. But, as you may expect already, I kept on failing. I have attached a single frame example here.
What I tried is to reconstruct this single frame first.
file=fopen(‘Example.raw’,’r’);
ImgFile=fread(file,’*ubit12′);
Just to read this what I got is a 2621440×1 single array unit 16. My image is 1280×1024, so for some reason I dont know, the element count doubled. I tried some method to pick 1310720 elements out and use reshape to get an image, but never got what I need.
Some assistance here would be greatly appreciated. cheersHello guys,
Firt timer here asking a question. I have a 12-bit .raw image file save from our experiment – this normall consist of up to 10,000 frames.
I am trying to us matlab to read this .raw file and reconstruct it back into frame images, e.g. Tiff ones. But, as you may expect already, I kept on failing. I have attached a single frame example here.
What I tried is to reconstruct this single frame first.
file=fopen(‘Example.raw’,’r’);
ImgFile=fread(file,’*ubit12′);
Just to read this what I got is a 2621440×1 single array unit 16. My image is 1280×1024, so for some reason I dont know, the element count doubled. I tried some method to pick 1310720 elements out and use reshape to get an image, but never got what I need.
Some assistance here would be greatly appreciated. cheers Hello guys,
Firt timer here asking a question. I have a 12-bit .raw image file save from our experiment – this normall consist of up to 10,000 frames.
I am trying to us matlab to read this .raw file and reconstruct it back into frame images, e.g. Tiff ones. But, as you may expect already, I kept on failing. I have attached a single frame example here.
What I tried is to reconstruct this single frame first.
file=fopen(‘Example.raw’,’r’);
ImgFile=fread(file,’*ubit12′);
Just to read this what I got is a 2621440×1 single array unit 16. My image is 1280×1024, so for some reason I dont know, the element count doubled. I tried some method to pick 1310720 elements out and use reshape to get an image, but never got what I need.
Some assistance here would be greatly appreciated. cheers image processing, .raw, image analysis MATLAB Answers — New Questions
How to splice fiber optic?
Optical fiber splicing, also known as optical fiber splicing, is a process in which two separated optical fibers are fused into one by a special equipment, fiber splicing machine. Fiber fusion is not as simple as fusing two bare fibers together as people think, it is a series of meticulous work, very testing the patience and expertise of the operator.
1.What are the advantages of fiber fusion?
(1)The fiber welding loss is small (0.01 to 0.02);
(2)The fused optical fiber is basically not affected by the environment and has low maintenance cost in the later period.
2.What is fiber optic fusion splicer?
Optical fiber splicer is a kind of equipment that fuses two optical fibers together to form a long optical fiber by using high-voltage arc to produce high temperature above 2000℃, so that optical signals can be transferred from one optical fiber to another optical fiber with little loss.
According to different alignment methods, optical fiber fusion splicer can be divided into two categories: cladding alignment and core alignment.
2.1 Cladding alignment
Cladding alignment is the cladding of optical fiber rather than optical fiber. The fiber loss after fusion and splicing is relatively large. It is suitable for short distance transmission, such as optical fiber to the home and other occasions with low requirements, so the price is relatively low.
2.2 Core alignment
The core aligners are equipped with more advanced technology and better performance hardware, which can accurately identify the type of fiber and automatically select the matching welding mode and splice. The welding quality is higher and the loss is lower. It is suitable for all applications of optical fiber welding, so the relative price is higher.
Finally, if you need a core alignment welding machine, then fusion splicer BD-FS-41B is suitable for you, with high welding accuracy, high reliability, military grade, 7 seconds of welding, 18 seconds of heating, cost-effective. If you need a portable machine, I recommend you choose handheld BD-FS-35, 8 second splicing, 30 second heating, easy to use and easy to carry.
3.How to splice fiber optic?
The most efficient way to splice optical fibers is to use an optical fiber splicer. Fusion splicing machine is an automatic machine. You can set your own splicing parameters or use factory-recommended parameters.
Basically, there are nine basic steps to splicing fiber with a splicer.
(1) Firstly, open the fiber Fusion splicer to stand by.
(2) Insert the cooling tree in the back of the heating trough.
(3)Put on the fusion splice protection sleeve.
(4) Peel off the fibers.
Strip off all fiber coating, leaving only 125um of bare fiber, then use 99% isopropyl alcohol to clean the bare fiber.
(5) Cut the fibers.
Open the fiber cleaver pulls the fiber into the fiber cleaver and press the yellow knob in the front to cleave the fiber.
(6)Put the fiber into the fiber holders of the fusion machine.
Press the Start button to start the fusion splicing.
(7) Remove the fiber and reinforce it with a heater.
Take out the optical fiber from the welding machine, put the heat shrink tube into the heater to heat, the heating process is down after hearing the beep, then take out the optical fiber.
(8) Cooling the fiber. Place the heat shrink tube onto the cooling tray to cool down in around 10 to 20 seconds.
(9) Pull out the fiber.
Finally, if you want to know more about this process you can click on the video link below, I hope it helps you.
More information can be found on the website baudcom.Optical fiber splicing, also known as optical fiber splicing, is a process in which two separated optical fibers are fused into one by a special equipment, fiber splicing machine. Fiber fusion is not as simple as fusing two bare fibers together as people think, it is a series of meticulous work, very testing the patience and expertise of the operator.
1.What are the advantages of fiber fusion?
(1)The fiber welding loss is small (0.01 to 0.02);
(2)The fused optical fiber is basically not affected by the environment and has low maintenance cost in the later period.
2.What is fiber optic fusion splicer?
Optical fiber splicer is a kind of equipment that fuses two optical fibers together to form a long optical fiber by using high-voltage arc to produce high temperature above 2000℃, so that optical signals can be transferred from one optical fiber to another optical fiber with little loss.
According to different alignment methods, optical fiber fusion splicer can be divided into two categories: cladding alignment and core alignment.
2.1 Cladding alignment
Cladding alignment is the cladding of optical fiber rather than optical fiber. The fiber loss after fusion and splicing is relatively large. It is suitable for short distance transmission, such as optical fiber to the home and other occasions with low requirements, so the price is relatively low.
2.2 Core alignment
The core aligners are equipped with more advanced technology and better performance hardware, which can accurately identify the type of fiber and automatically select the matching welding mode and splice. The welding quality is higher and the loss is lower. It is suitable for all applications of optical fiber welding, so the relative price is higher.
Finally, if you need a core alignment welding machine, then fusion splicer BD-FS-41B is suitable for you, with high welding accuracy, high reliability, military grade, 7 seconds of welding, 18 seconds of heating, cost-effective. If you need a portable machine, I recommend you choose handheld BD-FS-35, 8 second splicing, 30 second heating, easy to use and easy to carry.
3.How to splice fiber optic?
The most efficient way to splice optical fibers is to use an optical fiber splicer. Fusion splicing machine is an automatic machine. You can set your own splicing parameters or use factory-recommended parameters.
Basically, there are nine basic steps to splicing fiber with a splicer.
(1) Firstly, open the fiber Fusion splicer to stand by.
(2) Insert the cooling tree in the back of the heating trough.
(3)Put on the fusion splice protection sleeve.
(4) Peel off the fibers.
Strip off all fiber coating, leaving only 125um of bare fiber, then use 99% isopropyl alcohol to clean the bare fiber.
(5) Cut the fibers.
Open the fiber cleaver pulls the fiber into the fiber cleaver and press the yellow knob in the front to cleave the fiber.
(6)Put the fiber into the fiber holders of the fusion machine.
Press the Start button to start the fusion splicing.
(7) Remove the fiber and reinforce it with a heater.
Take out the optical fiber from the welding machine, put the heat shrink tube into the heater to heat, the heating process is down after hearing the beep, then take out the optical fiber.
(8) Cooling the fiber. Place the heat shrink tube onto the cooling tray to cool down in around 10 to 20 seconds.
(9) Pull out the fiber.
Finally, if you want to know more about this process you can click on the video link below, I hope it helps you.
More information can be found on the website baudcom. Optical fiber splicing, also known as optical fiber splicing, is a process in which two separated optical fibers are fused into one by a special equipment, fiber splicing machine. Fiber fusion is not as simple as fusing two bare fibers together as people think, it is a series of meticulous work, very testing the patience and expertise of the operator.
1.What are the advantages of fiber fusion?
(1)The fiber welding loss is small (0.01 to 0.02);
(2)The fused optical fiber is basically not affected by the environment and has low maintenance cost in the later period.
2.What is fiber optic fusion splicer?
Optical fiber splicer is a kind of equipment that fuses two optical fibers together to form a long optical fiber by using high-voltage arc to produce high temperature above 2000℃, so that optical signals can be transferred from one optical fiber to another optical fiber with little loss.
According to different alignment methods, optical fiber fusion splicer can be divided into two categories: cladding alignment and core alignment.
2.1 Cladding alignment
Cladding alignment is the cladding of optical fiber rather than optical fiber. The fiber loss after fusion and splicing is relatively large. It is suitable for short distance transmission, such as optical fiber to the home and other occasions with low requirements, so the price is relatively low.
2.2 Core alignment
The core aligners are equipped with more advanced technology and better performance hardware, which can accurately identify the type of fiber and automatically select the matching welding mode and splice. The welding quality is higher and the loss is lower. It is suitable for all applications of optical fiber welding, so the relative price is higher.
Finally, if you need a core alignment welding machine, then fusion splicer BD-FS-41B is suitable for you, with high welding accuracy, high reliability, military grade, 7 seconds of welding, 18 seconds of heating, cost-effective. If you need a portable machine, I recommend you choose handheld BD-FS-35, 8 second splicing, 30 second heating, easy to use and easy to carry.
3.How to splice fiber optic?
The most efficient way to splice optical fibers is to use an optical fiber splicer. Fusion splicing machine is an automatic machine. You can set your own splicing parameters or use factory-recommended parameters.
Basically, there are nine basic steps to splicing fiber with a splicer.
(1) Firstly, open the fiber Fusion splicer to stand by.
(2) Insert the cooling tree in the back of the heating trough.
(3)Put on the fusion splice protection sleeve.
(4) Peel off the fibers.
Strip off all fiber coating, leaving only 125um of bare fiber, then use 99% isopropyl alcohol to clean the bare fiber.
(5) Cut the fibers.
Open the fiber cleaver pulls the fiber into the fiber cleaver and press the yellow knob in the front to cleave the fiber.
(6)Put the fiber into the fiber holders of the fusion machine.
Press the Start button to start the fusion splicing.
(7) Remove the fiber and reinforce it with a heater.
Take out the optical fiber from the welding machine, put the heat shrink tube into the heater to heat, the heating process is down after hearing the beep, then take out the optical fiber.
(8) Cooling the fiber. Place the heat shrink tube onto the cooling tray to cool down in around 10 to 20 seconds.
(9) Pull out the fiber.
Finally, if you want to know more about this process you can click on the video link below, I hope it helps you.
More information can be found on the website baudcom. fiber MATLAB Answers — New Questions
Philippines Currency Missing from Partner Center Payout and Tax Profile!.
Hi There,
Does anyone know why the Philippines currency is missing from Partner Center Payout and Tax Profile?
I’m trying to configure a payment profile within partner Center and it prompts me configure the currency for the new MPN id location I created but when I go to Partner Center to complete the profile setup, I don’t see the Philippines Peso ,PHP code, so how can I proceed to set this up?
Partner Center shows a default list of payment currency and the PHP isn’t among it…
Hi There, Does anyone know why the Philippines currency is missing from Partner Center Payout and Tax Profile? I’m trying to configure a payment profile within partner Center and it prompts me configure the currency for the new MPN id location I created but when I go to Partner Center to complete the profile setup, I don’t see the Philippines Peso ,PHP code, so how can I proceed to set this up? Partner Center shows a default list of payment currency and the PHP isn’t among it… Read More
Updating a teams meeting
Every time i set up a meeting and I have to change the time, when I click on the “send Update button, I get a pop up windows that says” One or more items in the folder you synchronized do not match. To resolve the conflicts, open the items, and then try this operation again” All I did was change the time or added another person.
Dan
Every time i set up a meeting and I have to change the time, when I click on the “send Update button, I get a pop up windows that says” One or more items in the folder you synchronized do not match. To resolve the conflicts, open the items, and then try this operation again” All I did was change the time or added another person. Dan Read More
Creating histograms of a matrix with weights in separate matrix
I have a matrix A with n values, and each value has a corresponding weight in matrix B. How do I create a weighted histogram in this case? I would like to not specify the number of bins, only the binwidth.
Thank you.
Note: There are no repeating values in A, and alos no repeating values in B.
A = randperm(100); % list of values I need a histogram of
B = randperm(100); % weights for every value in A
h = hist(A)
h.BinWidth = 10;I have a matrix A with n values, and each value has a corresponding weight in matrix B. How do I create a weighted histogram in this case? I would like to not specify the number of bins, only the binwidth.
Thank you.
Note: There are no repeating values in A, and alos no repeating values in B.
A = randperm(100); % list of values I need a histogram of
B = randperm(100); % weights for every value in A
h = hist(A)
h.BinWidth = 10; I have a matrix A with n values, and each value has a corresponding weight in matrix B. How do I create a weighted histogram in this case? I would like to not specify the number of bins, only the binwidth.
Thank you.
Note: There are no repeating values in A, and alos no repeating values in B.
A = randperm(100); % list of values I need a histogram of
B = randperm(100); % weights for every value in A
h = hist(A)
h.BinWidth = 10; histogram, weighted histogram MATLAB Answers — New Questions
Need help to understand what Always On is creating with domainServer$
Hi I hope this is the right group to post this, if not, let me know please.
When installing AlwaysOn and setting permissions, it makes you grant permissions to a domainServer$ account in the domain (which gets created, but seemingly it can be deleted with no issue). There is no Server$ in AD i can find (hence my previous statement). what is up with the the domainServer$ creatation?
Hi I hope this is the right group to post this, if not, let me know please.When installing AlwaysOn and setting permissions, it makes you grant permissions to a domainServer$ account in the domain (which gets created, but seemingly it can be deleted with no issue). There is no Server$ in AD i can find (hence my previous statement). what is up with the the domainServer$ creatation? Read More
Error in cascading Combo Boxes
Hi Access community,
In a form, I’d like to filter choices in combo box cobStatus based on the value I select in combo box cobCountry. The code I copied from an online post is:
Private Sub cobCountry_AfterUpdate()
Dim strSQL As String
strSQL = “SELECT [Tables]![Project Database].[Project Stage]” & _
“FROM [Tables]![Project Database]” & _
“WHERE [Tables]![Project Database].Country = ” & Me.cobCountry & _
“ORDER BY [Tables]![Project Database].[Project Stage];”
Me.cobStatus.RowSource = strSQL
Me.cobStatus.Requery
End Sub
So, I select a country in cobCountry but, when selecting cobStatus an alert pops us:
‘Syntax error in FROM clause’
As I said, I copied the code from a demo database a user shared online and in his demo database the code works. The only difference btw my DB and his is that he’s pulling values from two separate tables (tblCountry and tblStatus), whereas I am pulling data from a single table. May that be the issue?
Thanks for any help you can provide!
Hi Access community, In a form, I’d like to filter choices in combo box cobStatus based on the value I select in combo box cobCountry. The code I copied from an online post is: Private Sub cobCountry_AfterUpdate()Dim strSQL As StringstrSQL = “SELECT [Tables]![Project Database].[Project Stage]” & _”FROM [Tables]![Project Database]” & _”WHERE [Tables]![Project Database].Country = ” & Me.cobCountry & _”ORDER BY [Tables]![Project Database].[Project Stage];”Me.cobStatus.RowSource = strSQLMe.cobStatus.RequeryEnd Sub So, I select a country in cobCountry but, when selecting cobStatus an alert pops us: ‘Syntax error in FROM clause’ As I said, I copied the code from a demo database a user shared online and in his demo database the code works. The only difference btw my DB and his is that he’s pulling values from two separate tables (tblCountry and tblStatus), whereas I am pulling data from a single table. May that be the issue? Thanks for any help you can provide! Read More
how to realize look up function in m script
hello, i have x axle table and y axle table, when i set value within the range of x, how to get the output from y, may be some interpolation and curve smoothing should used. i hope it works in m script.hello, i have x axle table and y axle table, when i set value within the range of x, how to get the output from y, may be some interpolation and curve smoothing should used. i hope it works in m script. hello, i have x axle table and y axle table, when i set value within the range of x, how to get the output from y, may be some interpolation and curve smoothing should used. i hope it works in m script. curve fitting, curve smoothing, interpolation MATLAB Answers — New Questions
unable to provide consent
Hi All,
I am facing an issue with API permissions. I have an Azure App Registration with the following Microsoft Graph API permissions. Let’s say the App Registration name is TESTAPP and the Client ID is xxxx-xxxx-xxxxx-xxxxx.
I have a SharePoint site, let’s say mysite1, and I am trying to provide permissions in the following way:
I obtained the site ID using the following URL:
https://mydomain.sharepoint.com/sites/mysite1/_api/site/id. Let’s say the site ID i got is
11111-111-1111-11221
i have logged into https://developer.microsoft.com/en-us/graph/graph-explorer/
Post–>v1.0–>https://grapsh.microsoft.com/v1.0/sites/{11111-111-1111-11221}/permissions
Request headers: Key:application/json
Request Body:
{
“roles”: [
“write”
],
“grantedToIdentities”: [
{
“application”: {
“id”: “xxxx-xxxx-xxxxx-xxxxx”, # This is my app regisration id
“displayName”: “TESTAPP”
}
}
]
}
When i click modify permissions and search for sites permissions, i am unable to provide consent, its grayed out. I am a global admin and i have full access on the SharePoint site. Please guide me.
Hi All,I am facing an issue with API permissions. I have an Azure App Registration with the following Microsoft Graph API permissions. Let’s say the App Registration name is TESTAPP and the Client ID is xxxx-xxxx-xxxxx-xxxxx. I have a SharePoint site, let’s say mysite1, and I am trying to provide permissions in the following way:I obtained the site ID using the following URL:https://mydomain.sharepoint.com/sites/mysite1/_api/site/id. Let’s say the site ID i got is11111-111-1111-11221 i have logged into https://developer.microsoft.com/en-us/graph/graph-explorer/ Post–>v1.0–>https://grapsh.microsoft.com/v1.0/sites/{11111-111-1111-11221}/permissionsRequest headers: Key:application/jsonRequest Body:{“roles”: [“write”],”grantedToIdentities”: [{“application”: {“id”: “xxxx-xxxx-xxxxx-xxxxx”, # This is my app regisration id”displayName”: “TESTAPP”}}]} When i click modify permissions and search for sites permissions, i am unable to provide consent, its grayed out. I am a global admin and i have full access on the SharePoint site. Please guide me. Read More
How to define Block Size Based on Input Image Dimensions in BLOCKPROC with SEMANTICSEG()
Dear all,
I am using the BLOCKPROC command to segment an input image (21828x54644x3) by passing blocks to the SEGMANTICSEG() function. In this case, I found that the smallest block size that executes without error is [2048,2048]. However, when using an even larger input image (22609x24064x3), the command does not execute if I keep the same block size of [2048,2048]. I need to increase the block size slightly, and it worked with a block size of [2100,2100]. I would like to understand the reason for this and how I can determine the smallest block size based on the image size. Could someone help me?
Thank you.
IMG = imread(‘image.tif’);
BlockSize = [2048 2048];
fun_proc_semanticseg = @(bloco)semanticseg(bloco.data, net, ExecutionEnvironment="gpu",
MiniBatchSize=16,OutputType="uint8");
C = blockproc(IMG, BlockSize, fun_proc_semanticseg);Dear all,
I am using the BLOCKPROC command to segment an input image (21828x54644x3) by passing blocks to the SEGMANTICSEG() function. In this case, I found that the smallest block size that executes without error is [2048,2048]. However, when using an even larger input image (22609x24064x3), the command does not execute if I keep the same block size of [2048,2048]. I need to increase the block size slightly, and it worked with a block size of [2100,2100]. I would like to understand the reason for this and how I can determine the smallest block size based on the image size. Could someone help me?
Thank you.
IMG = imread(‘image.tif’);
BlockSize = [2048 2048];
fun_proc_semanticseg = @(bloco)semanticseg(bloco.data, net, ExecutionEnvironment="gpu",
MiniBatchSize=16,OutputType="uint8");
C = blockproc(IMG, BlockSize, fun_proc_semanticseg); Dear all,
I am using the BLOCKPROC command to segment an input image (21828x54644x3) by passing blocks to the SEGMANTICSEG() function. In this case, I found that the smallest block size that executes without error is [2048,2048]. However, when using an even larger input image (22609x24064x3), the command does not execute if I keep the same block size of [2048,2048]. I need to increase the block size slightly, and it worked with a block size of [2100,2100]. I would like to understand the reason for this and how I can determine the smallest block size based on the image size. Could someone help me?
Thank you.
IMG = imread(‘image.tif’);
BlockSize = [2048 2048];
fun_proc_semanticseg = @(bloco)semanticseg(bloco.data, net, ExecutionEnvironment="gpu",
MiniBatchSize=16,OutputType="uint8");
C = blockproc(IMG, BlockSize, fun_proc_semanticseg); blocksize, matlab, blockproc, semanticseg MATLAB Answers — New Questions
Why am I getting gaps in my data when I attempt to interpolate my curve?
I am trying to make finner steps (x) for my data file attached. I am using matlab’s interp function. Upon doing so, I get the curve attached with a big gap in the data. Any idea what I am doing wrong?
xInterp=linspace(Dist(1),Dist(end),2500);%also tried less points (500->1000) and it was worse
yInterp=interp1(Dist,Power,xInterp,’spline’);
figure
plot(xInterp,yInterp)
set(gca, ‘YScale’, ‘log’)I am trying to make finner steps (x) for my data file attached. I am using matlab’s interp function. Upon doing so, I get the curve attached with a big gap in the data. Any idea what I am doing wrong?
xInterp=linspace(Dist(1),Dist(end),2500);%also tried less points (500->1000) and it was worse
yInterp=interp1(Dist,Power,xInterp,’spline’);
figure
plot(xInterp,yInterp)
set(gca, ‘YScale’, ‘log’) I am trying to make finner steps (x) for my data file attached. I am using matlab’s interp function. Upon doing so, I get the curve attached with a big gap in the data. Any idea what I am doing wrong?
xInterp=linspace(Dist(1),Dist(end),2500);%also tried less points (500->1000) and it was worse
yInterp=interp1(Dist,Power,xInterp,’spline’);
figure
plot(xInterp,yInterp)
set(gca, ‘YScale’, ‘log’) interpolation MATLAB Answers — New Questions
How to convert a table containing numbers and booleans to a double array?
using table2array I get a string array, but I need an array of numbers where the booleans become 0 or 1 respectivly. double(table2array(arr)) results in NaN for every boolean valueusing table2array I get a string array, but I need an array of numbers where the booleans become 0 or 1 respectivly. double(table2array(arr)) results in NaN for every boolean value using table2array I get a string array, but I need an array of numbers where the booleans become 0 or 1 respectivly. double(table2array(arr)) results in NaN for every boolean value table, array MATLAB Answers — New Questions
Rate equation for a two level laser
Pumping Stimulated rate
Spontaneous decay ratePumping Stimulated rate
Spontaneous decay rate Pumping Stimulated rate
Spontaneous decay rate two level laser MATLAB Answers — New Questions