Category: News
Unable to start copilot using customization and open it after some delay
Unable to start copilot using customization and open it after some delay
I am customizing the copilot in power pages web template with given instruction https://learn.microsoft.com/en-us/microsoft-copilot-studio/customize-default-canvas?tabs=web/ and want to start conversation automatically with some delay. but it is not getting call.
below is my code
<!DOCTYPE html>
{% assign botconsumer = entities.adx_botconsumer[bot_consumer_id] %}
{% assign env = environment %}
{% assign languageCode = website.selected_language.code %}
{% assign botConfig = botconsumer.adx_configjson %}
{% assign delay = settings[‘pvaDelayTime’] %} //30 seconds delay for PVA to load on the form
<html lang=”{{languageCode}}”>
<head>
<meta charset=”UTF-8″>
<meta http-equiv=”X-UA-Compatible” content=”IE=edge”>
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
<title>Hub Virtual Assistant</title>
<style>
html, body {
height: 90%;
margin: 0;
}
#webchat-container {
position: fixed;
bottom: 0;
right: 0;
margin: 10px;
border-radius: 4px;
background-color: rgba(255, 255, 255, 0.85);
width: 500px;
height: 500px;
overflow: hidden;
z-index: 9999;
}
#webchat {
height: 89%; /* Adjust the height as needed */
overflow: auto;
}
#heading {
background-color: #5D025F;
padding: 13px 20px 0 20px;
margin-bottom: 10px;
display: flex;
justify-content: space-between;
align-items: center;
}
#heading h2 {
font-size: 16px;
font-family: Segoe UI;
line-height: 20px;
color: white;
margin: 0;
}
#toggle-button {
background: none;
border: none;
cursor: pointer;
color: white;
font-size: 24px;
}
.chat-icon {
width: 55px;
height: 50px;
background-color: #5D025F;
position: fixed;
bottom: 10px;
right: 5px;
border-radius: 50%;
background-image: url(‘{{ portal.context.baseUrl }}/Global/pva_chatbot.png’);
background-repeat: no-repeat;
background-position: center;
background-size: 50%;
z-index: 9999;
}
</style>
</head>
<body>
<div id=”webchat-container” class=”pva-floating-style”>
<div id=”heading”>
<h2>Hub Virtual Assistant</h2>
<button id=”toggle-button” onclick=”toggleWebChat()”>-</button>
</div>
<div id=”webchat” role=”main”></div>
</div>
<script src=”https://cdn.botframework.com/botframework-webchat/latest/webchat.js“></script>
<script>
//Initially hide the chatbot container
document.getElementById(‘webchat-container’).style.display = ‘none’;
const styleOptions = {
hideUploadButton: true,
backgroundColor: ‘#ffffff’,
bubbleBackground: ‘#F2F2F2’,
bubbleTextColor: ‘#262626’,
botAvatarInitials: ‘BOT’,
userAvatarInitials:’YOU’
};
//retrive the bot environment id
const env_ID = “{{env.Id}}”;
const envId = env_ID.replace(/-/g, ”).slice(0, -2) + ‘.’ + env_ID.slice(-2);
const theURL = “https://”+ envId +”.environment.api.powerplatform.com/powervirtualagents/botsbyschema/{{ botconsumer.adx_botschemaname }}/directline/token?api-version=2022-03-01-preview”;
let isWebChatMinimized = false;
//create store to get the build directline functionality to start bot automatically
const store = window.WebChat.createStore(
{},
({ dispatch }) => next => action => {
if (action.type === “DIRECT_LINE/CONNECT_FULFILLED”) {
dispatch({
meta: {
method: “keyboard”,
},
payload: {
activity: {
channelData: {
postBack: true,
},
name: ‘startConversation’,
type: “event”
},
},
type: “DIRECT_LINE/POST_ACTIVITY”,
});
}
return next(action);
}
);
function toggleWebChat() {
const webChatContainer = document.getElementById(‘webchat-container’);
const webChatHeading = document.getElementById(‘heading’);
isWebChatMinimized = !isWebChatMinimized;
const toggleButton = document.getElementById(‘toggle-button’);
if (isWebChatMinimized) {
webChatContainer.style.height = ’50px’;
webChatContainer.style.width = ’50px’;
webChatContainer.style.borderRadius = ‘50%’;
//added image as bot icon
webChatHeading.innerHTML ='<div class=”chat-icon” onclick=”toggleWebChat()”></div>’;
} else {
webChatContainer.style.height = ‘500px’; // Adjust the height as needed
webChatContainer.style.width = ‘500px’;
webChatContainer.style.borderRadius = ‘0%’;
webChatHeading.innerHTML ='<h2>Hub Virtual Assistant</h2><button id=”toggle-button” onclick=”toggleWebChat()”>-</button>’;
}
}
//set the delay for chatbot
setTimeout(() => {
// Show the chatbot container
document.getElementById(‘webchat-container’).style.display = ‘block’;
//to start the conversation automatically
fetch(theURL)
.then(response => response.json())
.then(conversationInfo => {
window.WebChat.renderWebChat(
{
directLine: window.WebChat.createDirectLine({
token: conversationInfo.token,
}),
store: store,
styleOptions
},
document.getElementById(‘webchat’)
);
})
.catch(err => console.error(“An error occurred: ” + err));
}, {{delay}}); //added the 30sec delay in opening of PVA chatbot
</script>
</body>
</html>
Unable to start copilot using customization and open it after some delayI am customizing the copilot in power pages web template with given instruction https://learn.microsoft.com/en-us/microsoft-copilot-studio/customize-default-canvas?tabs=web/ and want to start conversation automatically with some delay. but it is not getting call.below is my code<!DOCTYPE html>{% assign botconsumer = entities.adx_botconsumer[bot_consumer_id] %}{% assign env = environment %}{% assign languageCode = website.selected_language.code %}{% assign botConfig = botconsumer.adx_configjson %}{% assign delay = settings[‘pvaDelayTime’] %} //30 seconds delay for PVA to load on the form<html lang=”{{languageCode}}”><head><meta charset=”UTF-8″><meta http-equiv=”X-UA-Compatible” content=”IE=edge”><meta name=”viewport” content=”width=device-width, initial-scale=1.0″><title>Hub Virtual Assistant</title><style>html, body {height: 90%;margin: 0;}#webchat-container {position: fixed;bottom: 0;right: 0;margin: 10px;border-radius: 4px;background-color: rgba(255, 255, 255, 0.85);width: 500px;height: 500px;overflow: hidden;z-index: 9999;}#webchat {height: 89%; /* Adjust the height as needed */overflow: auto;}#heading {background-color: #5D025F;padding: 13px 20px 0 20px;margin-bottom: 10px;display: flex;justify-content: space-between;align-items: center;}#heading h2 {font-size: 16px;font-family: Segoe UI;line-height: 20px;color: white;margin: 0;}#toggle-button {background: none;border: none;cursor: pointer;color: white;font-size: 24px;}.chat-icon {width: 55px;height: 50px;background-color: #5D025F;position: fixed;bottom: 10px;right: 5px;border-radius: 50%;background-image: url(‘{{ portal.context.baseUrl }}/Global/pva_chatbot.png’);background-repeat: no-repeat;background-position: center;background-size: 50%;z-index: 9999;}</style></head><body><div id=”webchat-container” class=”pva-floating-style”><div id=”heading”><h2>Hub Virtual Assistant</h2><button id=”toggle-button” onclick=”toggleWebChat()”>-</button></div><div id=”webchat” role=”main”></div></div><script src=”https://cdn.botframework.com/botframework-webchat/latest/webchat.js”></script><script>//Initially hide the chatbot containerdocument.getElementById(‘webchat-container’).style.display = ‘none’;const styleOptions = {hideUploadButton: true,backgroundColor: ‘#ffffff’,bubbleBackground: ‘#F2F2F2’,bubbleTextColor: ‘#262626’,botAvatarInitials: ‘BOT’,userAvatarInitials:’YOU’};//retrive the bot environment idconst env_ID = “{{env.Id}}”;const envId = env_ID.replace(/-/g, ”).slice(0, -2) + ‘.’ + env_ID.slice(-2);const theURL = “https://”+ envId +”.environment.api.powerplatform.com/powervirtualagents/botsbyschema/{{ botconsumer.adx_botschemaname }}/directline/token?api-version=2022-03-01-preview”;let isWebChatMinimized = false;//create store to get the build directline functionality to start bot automaticallyconst store = window.WebChat.createStore({},({ dispatch }) => next => action => {if (action.type === “DIRECT_LINE/CONNECT_FULFILLED”) {dispatch({meta: {method: “keyboard”,},payload: {activity: {channelData: {postBack: true,},name: ‘startConversation’,type: “event”},},type: “DIRECT_LINE/POST_ACTIVITY”,});}return next(action);});function toggleWebChat() {const webChatContainer = document.getElementById(‘webchat-container’);const webChatHeading = document.getElementById(‘heading’);isWebChatMinimized = !isWebChatMinimized;const toggleButton = document.getElementById(‘toggle-button’);if (isWebChatMinimized) {webChatContainer.style.height = ’50px’;webChatContainer.style.width = ’50px’;webChatContainer.style.borderRadius = ‘50%’;//added image as bot iconwebChatHeading.innerHTML ='<div class=”chat-icon” onclick=”toggleWebChat()”></div>’;} else {webChatContainer.style.height = ‘500px’; // Adjust the height as neededwebChatContainer.style.width = ‘500px’;webChatContainer.style.borderRadius = ‘0%’;webChatHeading.innerHTML ='<h2>Hub Virtual Assistant</h2><button id=”toggle-button” onclick=”toggleWebChat()”>-</button>’;}}//set the delay for chatbotsetTimeout(() => {// Show the chatbot containerdocument.getElementById(‘webchat-container’).style.display = ‘block’;//to start the conversation automaticallyfetch(theURL).then(response => response.json()).then(conversationInfo => {window.WebChat.renderWebChat({directLine: window.WebChat.createDirectLine({token: conversationInfo.token,}),store: store,styleOptions},document.getElementById(‘webchat’));}).catch(err => console.error(“An error occurred: ” + err));}, {{delay}}); //added the 30sec delay in opening of PVA chatbot</script></body></html> Read More
How to make bold font for axis labe with latex interpreter
Hey i try to make my axis label that contain latex interpreter in bold style. I have try some suggestion befor but none of them seems to works. Anybody have a clue?
This is my line
ylabel(‘$|frac{ddot{X}(iomega)_{2}}{F(iomega)_{4}}|$ ($frac{mm/s^2}{N}$)’, ‘Interpreter’,’Latex’)Hey i try to make my axis label that contain latex interpreter in bold style. I have try some suggestion befor but none of them seems to works. Anybody have a clue?
This is my line
ylabel(‘$|frac{ddot{X}(iomega)_{2}}{F(iomega)_{4}}|$ ($frac{mm/s^2}{N}$)’, ‘Interpreter’,’Latex’) Hey i try to make my axis label that contain latex interpreter in bold style. I have try some suggestion befor but none of them seems to works. Anybody have a clue?
This is my line
ylabel(‘$|frac{ddot{X}(iomega)_{2}}{F(iomega)_{4}}|$ ($frac{mm/s^2}{N}$)’, ‘Interpreter’,’Latex’) latex interpreter, bold MATLAB Answers — New Questions
Import and Read data with several sheets
Hello Everyone,
I am trying to use the line of code below to read my matrix data from an excel file. However, I get stuck from the the 2nd line of code, which takes forever to run and not complete. I am wondering if I am doing something wrong. Can some help with advice?
[~,sheet_name]=xlsfinfo(‘Gas.xlsx’);
for k=1:numel(sheet_name)
data{k}=readmatrix(‘Gas.xlsx’,’Sheet’,sheet_name{k},’Range’,’A2:IP176′);
endHello Everyone,
I am trying to use the line of code below to read my matrix data from an excel file. However, I get stuck from the the 2nd line of code, which takes forever to run and not complete. I am wondering if I am doing something wrong. Can some help with advice?
[~,sheet_name]=xlsfinfo(‘Gas.xlsx’);
for k=1:numel(sheet_name)
data{k}=readmatrix(‘Gas.xlsx’,’Sheet’,sheet_name{k},’Range’,’A2:IP176′);
end Hello Everyone,
I am trying to use the line of code below to read my matrix data from an excel file. However, I get stuck from the the 2nd line of code, which takes forever to run and not complete. I am wondering if I am doing something wrong. Can some help with advice?
[~,sheet_name]=xlsfinfo(‘Gas.xlsx’);
for k=1:numel(sheet_name)
data{k}=readmatrix(‘Gas.xlsx’,’Sheet’,sheet_name{k},’Range’,’A2:IP176′);
end matrix excel, 3d plot MATLAB Answers — New Questions
Help with auto logging in.
At User Accounts there wasn’t a check box for ‘Users must enter a user name and password to use this computer’ so in the registry editor I had gone to
ComputerHKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionPasswordLessDeviceto modify DevicePasswordlessBuildVersion by changing it’s Value Data to 0. I then unchecked that check box in the User Accounts. I reset Windows and was surprised to find two names. There is only one name in User Accounts. I had tried rechecking that check box, resetting, and unchecking again, but that didn’t help
At User Accounts there wasn’t a check box for ‘Users must enter a user name and password to use this computer’ so in the registry editor I had gone toComputerHKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionPasswordLessDeviceto modify DevicePasswordlessBuildVersion by changing it’s Value Data to 0. I then unchecked that check box in the User Accounts. I reset Windows and was surprised to find two names. There is only one name in User Accounts. I had tried rechecking that check box, resetting, and unchecking again, but that didn’t help Read More
folder desktop keep pop-up
Hello everyone,
I had a problem since yesterday, it’s making me crazy (
Whenever i click on a folder (documents, dowload, movie, pictures,… or any others folders), desktop page open (in a new page everytime
I tried many things, clean cache, watch for a virus,…
PS : i have two accounts on my laptop, one private and one for work, the one for work is fine, i don’t have this problem, but in my private i cant access to my photo or others folders.
Hello everyone,I had a problem since yesterday, it’s making me crazy (Whenever i click on a folder (documents, dowload, movie, pictures,… or any others folders), desktop page open (in a new page everytimeI tried many things, clean cache, watch for a virus,… PS : i have two accounts on my laptop, one private and one for work, the one for work is fine, i don’t have this problem, but in my private i cant access to my photo or others folders. Read More
determine optimal p for AR model
hi i wanna determine AR model p using PACF
in this plot how can i determine optimal p? it seems not convergedhi i wanna determine AR model p using PACF
in this plot how can i determine optimal p? it seems not converged hi i wanna determine AR model p using PACF
in this plot how can i determine optimal p? it seems not converged pacf, ar model, optimal p MATLAB Answers — New Questions
How to create a dialog box in the plot window.
As a personal project, I have been writing a game engine in Matlab. It will be a sort of text-based RPG, where you input your command into a text box and then the game interprets that. Right now, this is the state of my getCommand function:
function GetCommand(n)
sprintf("GetCommand %d", n)
pause(0.1)
String = input(‘Input n’, ‘s’);
String = split(String);
Command = String{1,1};
Subject = String{2,1};
switch command
case ‘go’
go(subject)
end
The idea is to run Command through a switch function to find that command, and run the command using Subject as its argument.
It currently works well enough. However, the input function requests input directly from Matlab’s command line. I would like to request input from the plot window, which is where I’m rendering the game. I found inputdlg(), but that creates an entirely new window, which is not what I want either.
I hope I made myself clear. Is there any way to create a dialog box within the plot window?As a personal project, I have been writing a game engine in Matlab. It will be a sort of text-based RPG, where you input your command into a text box and then the game interprets that. Right now, this is the state of my getCommand function:
function GetCommand(n)
sprintf("GetCommand %d", n)
pause(0.1)
String = input(‘Input n’, ‘s’);
String = split(String);
Command = String{1,1};
Subject = String{2,1};
switch command
case ‘go’
go(subject)
end
The idea is to run Command through a switch function to find that command, and run the command using Subject as its argument.
It currently works well enough. However, the input function requests input directly from Matlab’s command line. I would like to request input from the plot window, which is where I’m rendering the game. I found inputdlg(), but that creates an entirely new window, which is not what I want either.
I hope I made myself clear. Is there any way to create a dialog box within the plot window? As a personal project, I have been writing a game engine in Matlab. It will be a sort of text-based RPG, where you input your command into a text box and then the game interprets that. Right now, this is the state of my getCommand function:
function GetCommand(n)
sprintf("GetCommand %d", n)
pause(0.1)
String = input(‘Input n’, ‘s’);
String = split(String);
Command = String{1,1};
Subject = String{2,1};
switch command
case ‘go’
go(subject)
end
The idea is to run Command through a switch function to find that command, and run the command using Subject as its argument.
It currently works well enough. However, the input function requests input directly from Matlab’s command line. I would like to request input from the plot window, which is where I’m rendering the game. I found inputdlg(), but that creates an entirely new window, which is not what I want either.
I hope I made myself clear. Is there any way to create a dialog box within the plot window? user input, string, plot window, plotting, dialog box MATLAB Answers — New Questions
Extract Data from Table by Data Values
Hi all,
I am trying to extract rows matching one of multiple values but I am not sure which functions to use. I have a 9,857,445 x 3 table. The headers are in the 3 columns, and all 3 columns A,B, C, contain numerical data.
I am trying to extract based on data for the first column A. For example, I want to extract the rows that have the following values for A; A= 1, A=6, A=4 or A =12. Based on all the rows that match any of the possible listed values for A, I would like to create a new table Final Data, that only lists rows that match the given values for A. I am using 2015a.
Thanks for your help.Hi all,
I am trying to extract rows matching one of multiple values but I am not sure which functions to use. I have a 9,857,445 x 3 table. The headers are in the 3 columns, and all 3 columns A,B, C, contain numerical data.
I am trying to extract based on data for the first column A. For example, I want to extract the rows that have the following values for A; A= 1, A=6, A=4 or A =12. Based on all the rows that match any of the possible listed values for A, I would like to create a new table Final Data, that only lists rows that match the given values for A. I am using 2015a.
Thanks for your help. Hi all,
I am trying to extract rows matching one of multiple values but I am not sure which functions to use. I have a 9,857,445 x 3 table. The headers are in the 3 columns, and all 3 columns A,B, C, contain numerical data.
I am trying to extract based on data for the first column A. For example, I want to extract the rows that have the following values for A; A= 1, A=6, A=4 or A =12. Based on all the rows that match any of the possible listed values for A, I would like to create a new table Final Data, that only lists rows that match the given values for A. I am using 2015a.
Thanks for your help. table, data MATLAB Answers — New Questions
insight – PowerShell proper setup
Hello, been using Windows 11 for few months since MS will be ending support next year windows 10 by far is better. Anyways I was wondering why there are different versions of Power shell windows 11 came with 5.1 or 5.2 i downloaded power shell 7.1 now it seems that power shell has two different versions installed is this true? what is the proper way to have power shell setup / updated and ready to use? I know there are new features and what not but just want to make sure it is setup correctly on my system for example updating Power shell 5.1 with latest command updates does not install power shell 7.1 why is this , is it a entire new module? Read More
Centralizing user data folders in a dual-boot Windows 11 configuration
I just built a new computer and I’ve setup a dual-boot, both with Windows 11 Pro. One install is for normal computing, work, web surfing, whatever; basically anything I’m using my computer for that isn’t gaming. The other is my gaming install and I will only install the bare minimum of apps and only things I need for gaming. I plan to keep that instance extremely lean, clean and organized. I pulled a spare 2 TB Samsung 970 Evo Plus out of my old computer and am going to use it as a bulk storage drive. I plan to move my user data folders there. My question is, can I have the user data folders from both Windows 11 installations point to the same location on this drive and share them between both installs? It would just be much cleaner if I could keep everything in one location, rather than having two documents folders, two pictures folders, two video folders, etc.
I should mention that I’m obviously not talking about AppData or any other more important system like directory. I speaking mainly of Documents, Downloads, Music, Pictures, Saved Games, Videos.
Thanks.
I just built a new computer and I’ve setup a dual-boot, both with Windows 11 Pro. One install is for normal computing, work, web surfing, whatever; basically anything I’m using my computer for that isn’t gaming. The other is my gaming install and I will only install the bare minimum of apps and only things I need for gaming. I plan to keep that instance extremely lean, clean and organized. I pulled a spare 2 TB Samsung 970 Evo Plus out of my old computer and am going to use it as a bulk storage drive. I plan to move my user data folders there. My question is, can I have the user data folders from both Windows 11 installations point to the same location on this drive and share them between both installs? It would just be much cleaner if I could keep everything in one location, rather than having two documents folders, two pictures folders, two video folders, etc. I should mention that I’m obviously not talking about AppData or any other more important system like directory. I speaking mainly of Documents, Downloads, Music, Pictures, Saved Games, Videos. Thanks. Read More
Issue with OneDrive App Folder Creation – Need Assistance
Subject: Issue with OneDrive App Folder Creation – Need Assistance
Hello everyone,
I am currently facing an issue with OneDrive where it’s not creating a folder for my application in the Apps folder of the user’s OneDrive root directory when I first invoked the folder using the special folder namespace. I would appreciate any help or suggestions from the community.
Here are the steps I’ve taken so far:
I added the Files.ReadWrite.AppFolder permission to the application. I have successfully obtained the token.
I attempted to use the API to create my app’s folder, but unfortunately, it failed. I have attached a screenshot for reference (Please see the attachment below).
As a reference, I have been following this Knowledge Base article: Creating your app’s folder in OneDrive
I’m not sure why the app folder creation is not working as expected. If anyone has encountered a similar issue or has any suggestions, I would be grateful for your input.
Thank you in advance for your help!
Best regards,
Leo
Subject: Issue with OneDrive App Folder Creation – Need AssistanceHello everyone,I am currently facing an issue with OneDrive where it’s not creating a folder for my application in the Apps folder of the user’s OneDrive root directory when I first invoked the folder using the special folder namespace. I would appreciate any help or suggestions from the community.Here are the steps I’ve taken so far:I added the Files.ReadWrite.AppFolder permission to the application. I have successfully obtained the token.I attempted to use the API to create my app’s folder, but unfortunately, it failed. I have attached a screenshot for reference (Please see the attachment below). As a reference, I have been following this Knowledge Base article: Creating your app’s folder in OneDriveI’m not sure why the app folder creation is not working as expected. If anyone has encountered a similar issue or has any suggestions, I would be grateful for your input.Thank you in advance for your help!Best regards,Leo Read More
Multiple Sessions of excel open unexpectedly
I will have an excel session open. If I then attempt to click on file in my downloads to open, a second session of Excel will open instead of opening in the first (primary) session. Very annoying as it attempts to open Personal.xlsb and tells me it is already in use. I then have to close the second session and proceed with my work.
1) Why is this happening?
2) How can I prevent this from happening.
I will have an excel session open. If I then attempt to click on file in my downloads to open, a second session of Excel will open instead of opening in the first (primary) session. Very annoying as it attempts to open Personal.xlsb and tells me it is already in use. I then have to close the second session and proceed with my work.1) Why is this happening?2) How can I prevent this from happening. Read More
Hardware Compatibility:
“How can developers ensure that their mixed reality applications are compatible with a wide range of MR hardware devices, such as HoloLens, VR headsets, and AR glasses?”
“How can developers ensure that their mixed reality applications are compatible with a wide range of MR hardware devices, such as HoloLens, VR headsets, and AR glasses?” Read More
I’m getting a new line (without adding n) and an indented line when using the function input() (MATLAB Online)
Hello,
I have been trying to read the input from the user using the input function as shown below.
function open_webpage
url = input("Enter the url: ", "s");
while isempty(url)
fprintf("You didn’t enter any url. Please try again.n")
url = input("Enter the url: ", "s");
end
end
The function works fine so far. However, when I run it, I keep getting a new line when prompted to enter the URL as shown below. Also, I don’t understand why is the text indented.
I even checked the documentation and it seems I did everything correctly. Am I missing something?Hello,
I have been trying to read the input from the user using the input function as shown below.
function open_webpage
url = input("Enter the url: ", "s");
while isempty(url)
fprintf("You didn’t enter any url. Please try again.n")
url = input("Enter the url: ", "s");
end
end
The function works fine so far. However, when I run it, I keep getting a new line when prompted to enter the URL as shown below. Also, I don’t understand why is the text indented.
I even checked the documentation and it seems I did everything correctly. Am I missing something? Hello,
I have been trying to read the input from the user using the input function as shown below.
function open_webpage
url = input("Enter the url: ", "s");
while isempty(url)
fprintf("You didn’t enter any url. Please try again.n")
url = input("Enter the url: ", "s");
end
end
The function works fine so far. However, when I run it, I keep getting a new line when prompted to enter the URL as shown below. Also, I don’t understand why is the text indented.
I even checked the documentation and it seems I did everything correctly. Am I missing something? input, n, matlab online MATLAB Answers — New Questions
problem with storing in an array
% The previous code was omitted
% Part of the code for the preliminary detection of extreme points
num = 0;
extreme_point = [];
for oct_i = 1 : octave
dog = dog_pyr{oct_i};
[dog_r, dog_c, dog_page] = size(dog);
for r = 6 : dog_r – 5
for c = 6 : dog_c – 5
for page_i = 2 : dog_page – 1
dog_near = zeros(3, 3, 3);
dog_near(:, :, 1) = dog(r – 1 : r + 1, c – 1 : c + 1, page_i – 1);
dog_near(:, :, 2) = dog(r – 1 : r + 1, c – 1 : c + 1, page_i);
dog_near(:, :, 3) = dog(r – 1 : r + 1, c – 1 : c + 1, page_i + 1);
point_vale = dog_near(2, 2, 2);
if (point_vale == max(dog_near(:))) || (point_vale == min(dog_near(:)))
num = num +1;
sigma_i = k ^ (page_i -1) * sigma0;
extreme_point(num, 🙂 = [oct_i, page_i, r, c, sigma_i, 0]; % ???
end
end
end
end
end
hi, I’d like to ask you a questio, about the last line "extreme_point(num, 🙂 = [oct_i, page_i, r, c, sigma_i, 0];", Pls if it is written "extreme_point(num) = [oct_i, page_i, r, c, sigma_i, 0];", an error message that the assignment cannot be performed because the index on the left is incompatible with the size on the right will appear.
May I ask why this error occurs?
At the beginning of learning not quite understand, this is about the sift algorithm part of the content, the overall problem is all machine rollover, please understand.% The previous code was omitted
% Part of the code for the preliminary detection of extreme points
num = 0;
extreme_point = [];
for oct_i = 1 : octave
dog = dog_pyr{oct_i};
[dog_r, dog_c, dog_page] = size(dog);
for r = 6 : dog_r – 5
for c = 6 : dog_c – 5
for page_i = 2 : dog_page – 1
dog_near = zeros(3, 3, 3);
dog_near(:, :, 1) = dog(r – 1 : r + 1, c – 1 : c + 1, page_i – 1);
dog_near(:, :, 2) = dog(r – 1 : r + 1, c – 1 : c + 1, page_i);
dog_near(:, :, 3) = dog(r – 1 : r + 1, c – 1 : c + 1, page_i + 1);
point_vale = dog_near(2, 2, 2);
if (point_vale == max(dog_near(:))) || (point_vale == min(dog_near(:)))
num = num +1;
sigma_i = k ^ (page_i -1) * sigma0;
extreme_point(num, 🙂 = [oct_i, page_i, r, c, sigma_i, 0]; % ???
end
end
end
end
end
hi, I’d like to ask you a questio, about the last line "extreme_point(num, 🙂 = [oct_i, page_i, r, c, sigma_i, 0];", Pls if it is written "extreme_point(num) = [oct_i, page_i, r, c, sigma_i, 0];", an error message that the assignment cannot be performed because the index on the left is incompatible with the size on the right will appear.
May I ask why this error occurs?
At the beginning of learning not quite understand, this is about the sift algorithm part of the content, the overall problem is all machine rollover, please understand. % The previous code was omitted
% Part of the code for the preliminary detection of extreme points
num = 0;
extreme_point = [];
for oct_i = 1 : octave
dog = dog_pyr{oct_i};
[dog_r, dog_c, dog_page] = size(dog);
for r = 6 : dog_r – 5
for c = 6 : dog_c – 5
for page_i = 2 : dog_page – 1
dog_near = zeros(3, 3, 3);
dog_near(:, :, 1) = dog(r – 1 : r + 1, c – 1 : c + 1, page_i – 1);
dog_near(:, :, 2) = dog(r – 1 : r + 1, c – 1 : c + 1, page_i);
dog_near(:, :, 3) = dog(r – 1 : r + 1, c – 1 : c + 1, page_i + 1);
point_vale = dog_near(2, 2, 2);
if (point_vale == max(dog_near(:))) || (point_vale == min(dog_near(:)))
num = num +1;
sigma_i = k ^ (page_i -1) * sigma0;
extreme_point(num, 🙂 = [oct_i, page_i, r, c, sigma_i, 0]; % ???
end
end
end
end
end
hi, I’d like to ask you a questio, about the last line "extreme_point(num, 🙂 = [oct_i, page_i, r, c, sigma_i, 0];", Pls if it is written "extreme_point(num) = [oct_i, page_i, r, c, sigma_i, 0];", an error message that the assignment cannot be performed because the index on the left is incompatible with the size on the right will appear.
May I ask why this error occurs?
At the beginning of learning not quite understand, this is about the sift algorithm part of the content, the overall problem is all machine rollover, please understand. array,sift,if MATLAB Answers — New Questions
Extract image from lidar Map without showing figure
Hello lads
I am pretty new in Matlab and I am studying about lidar Maps.
I have been thru the example: Build Map from 2-D Lidar Scans Using SLAM – MATLAB & Simulink – MathWorks United Kingdom.
It worked fine and the lidarMap is shown in a new figure screen.
However, I would like to get the image created from that map and display it to a App GUI Image component rather than opening a new pop-up window.
I’ve been trying to create image from axes using getimage() function but, it did not work.
Can anyone please help me with that? I know it could be a silly question for Matlab experts but, any example I went thru so far did not work.
Any help is much appreciated.
Thanks
KleberHello lads
I am pretty new in Matlab and I am studying about lidar Maps.
I have been thru the example: Build Map from 2-D Lidar Scans Using SLAM – MATLAB & Simulink – MathWorks United Kingdom.
It worked fine and the lidarMap is shown in a new figure screen.
However, I would like to get the image created from that map and display it to a App GUI Image component rather than opening a new pop-up window.
I’ve been trying to create image from axes using getimage() function but, it did not work.
Can anyone please help me with that? I know it could be a silly question for Matlab experts but, any example I went thru so far did not work.
Any help is much appreciated.
Thanks
Kleber Hello lads
I am pretty new in Matlab and I am studying about lidar Maps.
I have been thru the example: Build Map from 2-D Lidar Scans Using SLAM – MATLAB & Simulink – MathWorks United Kingdom.
It worked fine and the lidarMap is shown in a new figure screen.
However, I would like to get the image created from that map and display it to a App GUI Image component rather than opening a new pop-up window.
I’ve been trying to create image from axes using getimage() function but, it did not work.
Can anyone please help me with that? I know it could be a silly question for Matlab experts but, any example I went thru so far did not work.
Any help is much appreciated.
Thanks
Kleber lidar map slam MATLAB Answers — New Questions
Variation in answers with Copilot
Hello everyone, I have been wondering the reason why sometimes colleagues and myself get different responses from Copilot to the same prompt.
We have found that sometimes Copilot is working with me but my colleagues recieve messages like “I can’t answer this right now, ask later”, “I have trouble anwering this”, and those type of messages. Is that a connection to the web type of scneario or why is that we get different answers?
Also, I have found out that sometimes it gives me the answer just as I need, I try to modify the prompt to see if I can get better results and it stops working. Then later, 2 o 3 hours later, I try again and it works again, same prompt. Why is that?
Thank you in advance!
Hello everyone, I have been wondering the reason why sometimes colleagues and myself get different responses from Copilot to the same prompt.We have found that sometimes Copilot is working with me but my colleagues recieve messages like “I can’t answer this right now, ask later”, “I have trouble anwering this”, and those type of messages. Is that a connection to the web type of scneario or why is that we get different answers? Also, I have found out that sometimes it gives me the answer just as I need, I try to modify the prompt to see if I can get better results and it stops working. Then later, 2 o 3 hours later, I try again and it works again, same prompt. Why is that? Thank you in advance! Read More
outlook set up mail Chinese fonts garbled
I have a very irritating problem. Everyday the default Chinese fonts (including all fonts for reply emails, new emails, and forwards) that I set after clocking outlook would become garbled. Every time I reset it, the result is that the next time my computer reboots to clock outlook will revert to a garbled font again. Very irritating. The screenshot below shows the garbled fonts that appeared yesterday and today. Can you please help me to solve this problem? Thanks for your help.
I have a very irritating problem. Everyday the default Chinese fonts (including all fonts for reply emails, new emails, and forwards) that I set after clocking outlook would become garbled. Every time I reset it, the result is that the next time my computer reboots to clock outlook will revert to a garbled font again. Very irritating. The screenshot below shows the garbled fonts that appeared yesterday and today. Can you please help me to solve this problem? Thanks for your help. Read More
twitter error “HTTP/1.1 403 Forbidden'”
Hello, I seem to have a good connection but I’m receiving a "HTTP/1.1 403 Forbidden’" error. Please see below. Thanks.
>> c
c =
twitter with properties:
Name: ‘MyName’
ScreenName: ‘MyScreenName’
MetaData: [1×1 struct]
StatusCode: OK
>> d = search(c,’#MySearch’)
d =
ResponseMessage with properties:
StatusLine: ‘HTTP/1.1 403 Forbidden’
StatusCode: Forbidden
Header: [1×10 matlab.net.http.HeaderField]
Body: [1×1 matlab.net.http.MessageBody]
Completed: 0
>> ver
—————————————————————————————————–
MATLAB Version: 24.2.0.2622594 (R2024b) Prerelease
MATLAB License Number: Prerelease
Operating System: Microsoft Windows 10 Pro Version 10.0 (Build 19045)
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
—————————————————————————————————–
MATLAB Version 24.2 (R2024b)
…
Datafeed Toolbox Version 24.2 (R2024b)
…Hello, I seem to have a good connection but I’m receiving a "HTTP/1.1 403 Forbidden’" error. Please see below. Thanks.
>> c
c =
twitter with properties:
Name: ‘MyName’
ScreenName: ‘MyScreenName’
MetaData: [1×1 struct]
StatusCode: OK
>> d = search(c,’#MySearch’)
d =
ResponseMessage with properties:
StatusLine: ‘HTTP/1.1 403 Forbidden’
StatusCode: Forbidden
Header: [1×10 matlab.net.http.HeaderField]
Body: [1×1 matlab.net.http.MessageBody]
Completed: 0
>> ver
—————————————————————————————————–
MATLAB Version: 24.2.0.2622594 (R2024b) Prerelease
MATLAB License Number: Prerelease
Operating System: Microsoft Windows 10 Pro Version 10.0 (Build 19045)
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
—————————————————————————————————–
MATLAB Version 24.2 (R2024b)
…
Datafeed Toolbox Version 24.2 (R2024b)
… Hello, I seem to have a good connection but I’m receiving a "HTTP/1.1 403 Forbidden’" error. Please see below. Thanks.
>> c
c =
twitter with properties:
Name: ‘MyName’
ScreenName: ‘MyScreenName’
MetaData: [1×1 struct]
StatusCode: OK
>> d = search(c,’#MySearch’)
d =
ResponseMessage with properties:
StatusLine: ‘HTTP/1.1 403 Forbidden’
StatusCode: Forbidden
Header: [1×10 matlab.net.http.HeaderField]
Body: [1×1 matlab.net.http.MessageBody]
Completed: 0
>> ver
—————————————————————————————————–
MATLAB Version: 24.2.0.2622594 (R2024b) Prerelease
MATLAB License Number: Prerelease
Operating System: Microsoft Windows 10 Pro Version 10.0 (Build 19045)
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
—————————————————————————————————–
MATLAB Version 24.2 (R2024b)
…
Datafeed Toolbox Version 24.2 (R2024b)
… twitter x datafeed MATLAB Answers — New Questions
a D matrix with a delay block in the synchronous machine Simulink block
Hi everyone,
I have a question about a reshaped D matrix taking as an input to the discrete state space solver of the synchronous machine block in Simulink
What could be the reason to do so?Hi everyone,
I have a question about a reshaped D matrix taking as an input to the discrete state space solver of the synchronous machine block in Simulink
What could be the reason to do so? Hi everyone,
I have a question about a reshaped D matrix taking as an input to the discrete state space solver of the synchronous machine block in Simulink
What could be the reason to do so? simpowersystems, electrical machines, synchronous machines MATLAB Answers — New Questions