Month: July 2024
inaccessible input in Test Harness (Simulink Test)
I am getting ‘inaccessible’ for some of the inputs when performing MIL testing in Testsequence.I am getting ‘inaccessible’ for some of the inputs when performing MIL testing in Testsequence. I am getting ‘inaccessible’ for some of the inputs when performing MIL testing in Testsequence. inaccessible inputs MATLAB Answers — New Questions
In MATLAB I get the following python error: AttributeError: ‘module’ object has no attribute ‘fmi’
When I call my custom python function py.linFMI.run() in MATLAB R2016a I get the following error:
Error using fmi_algorithm_drivers><module> (line 28)
Python Error: AttributeError: ‘module’ object has no attribute ‘fmi’
Error in fmi>pyfmi.fmi.ModelBase._default_options (srcpyfmifmi.c:6394) (line 338)
Error in fmi>pyfmi.fmi.FMUModelME2.simulate_options (srcpyfmifmi.c:65521) (line 6515)
Error in linFMI>run (line 313)
opts=model.simulate_options()
The same function works fine in a windows or IPython console. Any ideas what is going wrong?When I call my custom python function py.linFMI.run() in MATLAB R2016a I get the following error:
Error using fmi_algorithm_drivers><module> (line 28)
Python Error: AttributeError: ‘module’ object has no attribute ‘fmi’
Error in fmi>pyfmi.fmi.ModelBase._default_options (srcpyfmifmi.c:6394) (line 338)
Error in fmi>pyfmi.fmi.FMUModelME2.simulate_options (srcpyfmifmi.c:65521) (line 6515)
Error in linFMI>run (line 313)
opts=model.simulate_options()
The same function works fine in a windows or IPython console. Any ideas what is going wrong? When I call my custom python function py.linFMI.run() in MATLAB R2016a I get the following error:
Error using fmi_algorithm_drivers><module> (line 28)
Python Error: AttributeError: ‘module’ object has no attribute ‘fmi’
Error in fmi>pyfmi.fmi.ModelBase._default_options (srcpyfmifmi.c:6394) (line 338)
Error in fmi>pyfmi.fmi.FMUModelME2.simulate_options (srcpyfmifmi.c:65521) (line 6515)
Error in linFMI>run (line 313)
opts=model.simulate_options()
The same function works fine in a windows or IPython console. Any ideas what is going wrong? python-2.7, pyfmi, interface, python MATLAB Answers — New Questions
Project for the Web start and end times
We have a business requirement to set start and end times (or could be start time and duration) for tasks. During a go-live, we plan tasks to the 15 minute increment. For example, we need to specify that Task1 starts at 9:00, Task 2 at 9:15, Task 3 at 9:30, task 4 at 10:15, etc. I feel like there should be Start/End DateTime field types, but cannot find such a thing.
Thoughts?
We have a business requirement to set start and end times (or could be start time and duration) for tasks. During a go-live, we plan tasks to the 15 minute increment. For example, we need to specify that Task1 starts at 9:00, Task 2 at 9:15, Task 3 at 9:30, task 4 at 10:15, etc. I feel like there should be Start/End DateTime field types, but cannot find such a thing. Thoughts? Read More
When Navigating Away and Returning to My Teams Static Tab Extension, It Reloads—How to stop reload?
I have developed a static tab extension for Microsoft Teams using ReactJS. The tab functions as expected; however, when I navigate to other Teams features such as Chat or Calendar and then return to my tab, it reloads from the beginning. This results in a poor user experience since the tab does not retain its previous state or position.
I want my static tab to behave like the native Teams tabs, where it retains its state and loads instantly when navigated back to. How can I achieve this in a ReactJS-based Teams tab? Are there any specific ways or methods to achieve native behavior? Additionally, are there any changes in the manifest that could fix this reload issue?
Any guidance or recommendations on how to effectively implement state persistence to achieve a seamless user experience would be greatly appreciated. Thank you in advance for your assistance.
I have developed a static tab extension for Microsoft Teams using ReactJS. The tab functions as expected; however, when I navigate to other Teams features such as Chat or Calendar and then return to my tab, it reloads from the beginning. This results in a poor user experience since the tab does not retain its previous state or position.I want my static tab to behave like the native Teams tabs, where it retains its state and loads instantly when navigated back to. How can I achieve this in a ReactJS-based Teams tab? Are there any specific ways or methods to achieve native behavior? Additionally, are there any changes in the manifest that could fix this reload issue?Any guidance or recommendations on how to effectively implement state persistence to achieve a seamless user experience would be greatly appreciated. Thank you in advance for your assistance. Read More
Row number creation
Hi,
I have a table like below
create table ##Test (Inv nvarchar(5), InvDate date)
insert into ##Test values (‘1001′,’2024-01-01’)
insert into ##Test values (‘1001′,’2024-01-01’)
insert into ##Test values (‘1001′,’2024-01-01’)
insert into ##Test values (‘1001′,’2024-01-02’)
insert into ##Test values (‘1001′,’2024-01-02’)
insert into ##Test values (‘1001′,’2024-01-03’)
select * from ##Test
drop table ##Test
I need a result set like below. how to achieve that
create table ##Result (RowNo int,Inv nvarchar(5), InvDate date)
insert into ##Result values (1, ‘1001’,’2024-01-01′)
insert into ##Result values (1, ‘1001’,’2024-01-01′)
insert into ##Result values (1, ‘1001’,’2024-01-01′)
insert into ##Result values (2, ‘1001’,’2024-01-02′)
insert into ##Result values (2, ‘1001’,’2024-01-02′)
insert into ##Result values (3, ‘1001’,’2024-01-03′)
select * from ##Result
drop table ##Result
Thanks
Hi, I have a table like below create table ##Test (Inv nvarchar(5), InvDate date)insert into ##Test values (‘1001′,’2024-01-01’)insert into ##Test values (‘1001′,’2024-01-01’)insert into ##Test values (‘1001′,’2024-01-01’)insert into ##Test values (‘1001′,’2024-01-02’)insert into ##Test values (‘1001′,’2024-01-02’)insert into ##Test values (‘1001′,’2024-01-03’)select * from ##Testdrop table ##Test I need a result set like below. how to achieve thatcreate table ##Result (RowNo int,Inv nvarchar(5), InvDate date)insert into ##Result values (1, ‘1001’,’2024-01-01′)insert into ##Result values (1, ‘1001’,’2024-01-01′)insert into ##Result values (1, ‘1001’,’2024-01-01′)insert into ##Result values (2, ‘1001’,’2024-01-02′)insert into ##Result values (2, ‘1001’,’2024-01-02′)insert into ##Result values (3, ‘1001’,’2024-01-03′)select * from ##Resultdrop table ##Result Thanks Read More
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