Category: News
Readjust a camera data set
I have a data set of size 2000*300*20. It is a data from a camera with 2000 pixel.
I want to extract out the last data set in the x and y cordinates i.e. at 300 and 20.
Afterwards, I want to use it to replace all the data points of all other x and y components.
I have made some attempts but with no success, I will attached my code for any for useful comments. Thanks
m=size(A.Volume); % A data of size; 2000*300*20
new_A.Volume=A.Volume;
for i = 1:m(2);
for j = 1:m(3);
new_A.Volume(i, j)=A.Volume(:,m(2),m(3));
end
endI have a data set of size 2000*300*20. It is a data from a camera with 2000 pixel.
I want to extract out the last data set in the x and y cordinates i.e. at 300 and 20.
Afterwards, I want to use it to replace all the data points of all other x and y components.
I have made some attempts but with no success, I will attached my code for any for useful comments. Thanks
m=size(A.Volume); % A data of size; 2000*300*20
new_A.Volume=A.Volume;
for i = 1:m(2);
for j = 1:m(3);
new_A.Volume(i, j)=A.Volume(:,m(2),m(3));
end
end I have a data set of size 2000*300*20. It is a data from a camera with 2000 pixel.
I want to extract out the last data set in the x and y cordinates i.e. at 300 and 20.
Afterwards, I want to use it to replace all the data points of all other x and y components.
I have made some attempts but with no success, I will attached my code for any for useful comments. Thanks
m=size(A.Volume); % A data of size; 2000*300*20
new_A.Volume=A.Volume;
for i = 1:m(2);
for j = 1:m(3);
new_A.Volume(i, j)=A.Volume(:,m(2),m(3));
end
end readjust a camera data set MATLAB Answers — New Questions
Building C Code of Simulink Model with UDP Send/Receive
Hi all,
I am about to build Simulink models utilizing the "UDP Send" or "UDP Receive" blocks from the DSP System Toolbox.
I am not building an executable (*.exe) from the Simulink Model directly. The source and header files generated in the "…grt_rtw" are referenced in further code that comes from our inhouse software toolchain…
The overall building toolchain works for many other models / applications. Only now, as i am playing around with the UDP blocks I am receiving a linker error (LNK2019 unresolved external symbol) when building the code in Visual Studio.
Is it even possible to use the "UDP Send" and "UDP Receive" blocks for code generation other than building an *.exe?
I have referenced the DAHhostLib_network.h and *.rtw.h as well as the *.c files.
I understand, that the networkdevice.dll is cruicial for this to be working. According to one of our IT guys, I am in need of a *.lib file to link to that *.dll? But we couldn’t find any.
Thank you for any help! Would be great to get this running somehow 🙂
Best,
RaphaelHi all,
I am about to build Simulink models utilizing the "UDP Send" or "UDP Receive" blocks from the DSP System Toolbox.
I am not building an executable (*.exe) from the Simulink Model directly. The source and header files generated in the "…grt_rtw" are referenced in further code that comes from our inhouse software toolchain…
The overall building toolchain works for many other models / applications. Only now, as i am playing around with the UDP blocks I am receiving a linker error (LNK2019 unresolved external symbol) when building the code in Visual Studio.
Is it even possible to use the "UDP Send" and "UDP Receive" blocks for code generation other than building an *.exe?
I have referenced the DAHhostLib_network.h and *.rtw.h as well as the *.c files.
I understand, that the networkdevice.dll is cruicial for this to be working. According to one of our IT guys, I am in need of a *.lib file to link to that *.dll? But we couldn’t find any.
Thank you for any help! Would be great to get this running somehow 🙂
Best,
Raphael Hi all,
I am about to build Simulink models utilizing the "UDP Send" or "UDP Receive" blocks from the DSP System Toolbox.
I am not building an executable (*.exe) from the Simulink Model directly. The source and header files generated in the "…grt_rtw" are referenced in further code that comes from our inhouse software toolchain…
The overall building toolchain works for many other models / applications. Only now, as i am playing around with the UDP blocks I am receiving a linker error (LNK2019 unresolved external symbol) when building the code in Visual Studio.
Is it even possible to use the "UDP Send" and "UDP Receive" blocks for code generation other than building an *.exe?
I have referenced the DAHhostLib_network.h and *.rtw.h as well as the *.c files.
I understand, that the networkdevice.dll is cruicial for this to be working. According to one of our IT guys, I am in need of a *.lib file to link to that *.dll? But we couldn’t find any.
Thank you for any help! Would be great to get this running somehow 🙂
Best,
Raphael udp, networkdevice.dll MATLAB Answers — New Questions
Windows Server 2022 Essential Activation
Hi,
I’m writing for the company in which I work.
The company, 1 year ago, bought a little server and the reseller gave us it with Windows Server 2022 Essential installed. The PK was put on the side of the server and gave us also a DVD.
After a year, the server was giving some issues, so I’ve decided to buy a new HD to install it again.
I’ve tried to put the DVD of Windows Server 2022 Essential into pc but I’ve just discovered it is in Deutch and I cannot speak in that language so for me is impossible to install it.
Since I was not able to find any iso of this OS in microsoft website I’ve downloaded the 2022 standard evaluation.
After installation I’ve tried to put into the activation tool the PK we have for this computer but system says this PK is not valid.
Pls can anyone help me to understand how can I install again the 2022 essential with our PK?
Thank you
Hi,I’m writing for the company in which I work.The company, 1 year ago, bought a little server and the reseller gave us it with Windows Server 2022 Essential installed. The PK was put on the side of the server and gave us also a DVD.After a year, the server was giving some issues, so I’ve decided to buy a new HD to install it again.I’ve tried to put the DVD of Windows Server 2022 Essential into pc but I’ve just discovered it is in Deutch and I cannot speak in that language so for me is impossible to install it.Since I was not able to find any iso of this OS in microsoft website I’ve downloaded the 2022 standard evaluation.After installation I’ve tried to put into the activation tool the PK we have for this computer but system says this PK is not valid.Pls can anyone help me to understand how can I install again the 2022 essential with our PK?Thank you Read More
SUM If with multiple Not equal to criteria.
I am having trouble with the formula below. The first part works perfectly. It is when I get to the is not equal to part that the formula does not work.
=sumif(‘APXBalances’!E:E,’APXBalances’!B:B=24,’APXBalances’!A:A”0735″)-SUMIFS(‘APXBalances’!C:C,”<>”,’APXBalances’!C:C,”<>00000″,’APXBalances’!C:C”<>05757″)
Here is an example of my data
FundAYAPPNRemaining Cash Balance BudgetAppropriation Cash AvailableAppropriation Accrued Cash Available073522 052623.4252623.4207352200000014899.9814899.980735220575500007352205862037723.4437723.4407352213001000
I am having trouble with the formula below. The first part works perfectly. It is when I get to the is not equal to part that the formula does not work. =sumif(‘APXBalances’!E:E,’APXBalances’!B:B=24,’APXBalances’!A:A”0735″)-SUMIFS(‘APXBalances’!C:C,”<>”,’APXBalances’!C:C,”<>00000″,’APXBalances’!C:C”<>05757″) Here is an example of my data FundAYAPPNRemaining Cash Balance BudgetAppropriation Cash AvailableAppropriation Accrued Cash Available073522 052623.4252623.4207352200000014899.9814899.980735220575500007352205862037723.4437723.4407352213001000 Read More
Custom Sort Excel Online
Hi I have an Online Excel Sheet (used in Safari). I have custom sort with three layers, it works. But it does not update automatically if I add more data, I need to reopen the sort menue (see picture) and reapply it. Is there any way to automate this?
Thanks for the help!
Hi I have an Online Excel Sheet (used in Safari). I have custom sort with three layers, it works. But it does not update automatically if I add more data, I need to reopen the sort menue (see picture) and reapply it. Is there any way to automate this? Thanks for the help! Read More
The Impact of Copilot on Excel Users and Analysts
Microsoft Copilot for Excel is poised to revolutionize the way users interact with data. By automating routine tasks like data cleaning, formatting, and formula creation, Copilot frees up valuable time for analysts to focus on strategic thinking, complex problem-solving, and deriving deeper insights. However, it’s essential to recognize that Copilot is a tool to augment human capabilities, not replace them. Successful integration of Copilot into workflows requires a balance of human expertise and AI-driven automation.
Microsoft Copilot for Excel is poised to revolutionize the way users interact with data. By automating routine tasks like data cleaning, formatting, and formula creation, Copilot frees up valuable time for analysts to focus on strategic thinking, complex problem-solving, and deriving deeper insights. However, it’s essential to recognize that Copilot is a tool to augment human capabilities, not replace them. Successful integration of Copilot into workflows requires a balance of human expertise and AI-driven automation. Read More
Quick- B00ks Remote Hosting: Benefits and Recommendations?
Hi everyone,
I’m considering using remote hosting for Quick- B00ks to streamline our business processes and improve accessibility for our team. What are the key benefits of using Quick- B00ks remote hosting? Are there any particular providers or setups you would recommend based on your experience? Any potential downsides or issues I should be aware of? Appreciate any insights or tips from those who have used it!
Thanks!
Hi everyone,I’m considering using remote hosting for Quick- B00ks to streamline our business processes and improve accessibility for our team. What are the key benefits of using Quick- B00ks remote hosting? Are there any particular providers or setups you would recommend based on your experience? Any potential downsides or issues I should be aware of? Appreciate any insights or tips from those who have used it!Thanks! Read More
Microsoft partner seeking to develop chatbots using Microsoft Copilot Studio for nonprofits
I am a Microsoft partner seeking to develop chatbots using Microsoft Copilot Studio for nonprofits and the education industry. Who can I contact at Microsoft to get started?
I am a Microsoft partner seeking to develop chatbots using Microsoft Copilot Studio for nonprofits and the education industry. Who can I contact at Microsoft to get started? Read More
data filter and pivot table manipulate data
Given
A list of 12 street names in different notations (column ORIGNALSCHREIBWEISE)
Problem I – Filter
Adding a filter and opening the dropdown list shows a reduced number (9 of 12) of ORIGNALSCHREIBWEISE-entries with standardised notations:
Problem II – pivot table
Creating a pivot table from the list the result is the same as in the filter drop down list: the number of notations is reduce to 9:
Error Interpretation
In both test cases Excel doesn’t work case sensitiv. It interprets
Sankt-Martin-str. / Sankt-Martin-Str.St.-martin-Str. / St.-Martin-Str.St.-Martin-straße / St.-Martin-Straße
as identical strings.
Question
How can I force Excel to work in both cases case sensitive?
GivenA list of 12 street names in different notations (column ORIGNALSCHREIBWEISE) Problem I – FilterAdding a filter and opening the dropdown list shows a reduced number (9 of 12) of ORIGNALSCHREIBWEISE-entries with standardised notations: Problem II – pivot tableCreating a pivot table from the list the result is the same as in the filter drop down list: the number of notations is reduce to 9: Error InterpretationIn both test cases Excel doesn’t work case sensitiv. It interpretsSankt-Martin-str. / Sankt-Martin-Str.St.-martin-Str. / St.-Martin-Str.St.-Martin-straße / St.-Martin-Straßeas identical strings.QuestionHow can I force Excel to work in both cases case sensitive? Read More
Incoming Teams Call does not Display Phone Number on iOS
When receiving a Phone Call to Teams (using Direct Routing) the iOS notification does not include the phone number. It only shows the caller Name.
Same goes for Microsoft Teams Call in the iOS Call history:
The only way to see phone number on the phone is to open the Microsoft Teams App:
I’m assuming this is 100% by design, but I’m curious if anyone has come up with any guidance or suggestions for users wanting to see the missed call #.
The best solve I have found to reduce confusion is to remove Teams Calls from Mobile Call History. Forcing users to use the Teams App
Which forces endusers to use Teams App, but it’s not an ideal workaround.
Does anyone have any better suggestions
When receiving a Phone Call to Teams (using Direct Routing) the iOS notification does not include the phone number. It only shows the caller Name. Same goes for Microsoft Teams Call in the iOS Call history: The only way to see phone number on the phone is to open the Microsoft Teams App: I’m assuming this is 100% by design, but I’m curious if anyone has come up with any guidance or suggestions for users wanting to see the missed call #.The best solve I have found to reduce confusion is to remove Teams Calls from Mobile Call History. Forcing users to use the Teams App Which forces endusers to use Teams App, but it’s not an ideal workaround. Does anyone have any better suggestions Read More
How to Set Up and Use Quick-B00ks Remote Access Tool?
Hi everyone, I’m looking for guidance on setting up the Quick-B00ks Remote Access Tool. I need to manage my business’s finances while traveling and ensure secure access to our Quick-B00ks data. Could someone explain the steps to configure it and any best practices for using this tool effectively? Are there specific security measures I should be aware of? Thanks in advance for your help!
Hi everyone, I’m looking for guidance on setting up the Quick-B00ks Remote Access Tool. I need to manage my business’s finances while traveling and ensure secure access to our Quick-B00ks data. Could someone explain the steps to configure it and any best practices for using this tool effectively? Are there specific security measures I should be aware of? Thanks in advance for your help! Read More
Q-B Pay-roll Update Error 15270 – Need Assistance
Hi Quick-B00ks Support Team,
I am encountering an issue with my Quick-B00ks Pay_roll update. Every time I try to update, I receive the following error message:
Error 15270: The (pay_roll) update did not complete successfully. The update is missing a file.
I’ve attempted several solutions, including restarting Quick-B00ks, ensuring my pay_roll subscription is active, and checking my internet connection. However, the problem persists.
Could you please provide detailed steps to resolve this error? Any help would be greatly appreciated.
Thank you in advance!
Hi Quick-B00ks Support Team,I am encountering an issue with my Quick-B00ks Pay_roll update. Every time I try to update, I receive the following error message:Error 15270: The (pay_roll) update did not complete successfully. The update is missing a file.I’ve attempted several solutions, including restarting Quick-B00ks, ensuring my pay_roll subscription is active, and checking my internet connection. However, the problem persists.Could you please provide detailed steps to resolve this error? Any help would be greatly appreciated.Thank you in advance! Read More
Azure Database for MySQL – June 2024 updates and latest feature roadmap
We’re excited to share a summary of the Azure Database for MySQL – Flexible Server announcements from last month, as well as the latest roadmap of upcoming features!
July 2024 Live webinar
These updates and the latest roadmap are also covered in our Monthly Live Webinar on YouTube (Click here to subscribe to our YouTube channel!), which streams the second Wednesday of every month, at 7:30 AM Pacific time. Below is a link to the session recording of the live webinar we delivered last week:
June 2024 updates and announcements
Move from private access (VNet integrated) connectivity method to public access / private endpoint
We’re thrilled to announce a new feature that allows you to transition from Private Access, that is, Virtual Network Integrated connectivity method to Public Access or Private Link connectivity method.
Previously with Azure Database for MySQL, this switch was prohibited, and you were expected to recreate a server in the Public infrastructure and migrate to it. Now, you can simply select the “Move to Private Link” option in the “Networking” pane, and go through a 2-step wizard which detaches the VNet and allows you to either establish a Private Link or enable public access. The transition process is simple and seamless, and avoids the need to alter server names or migrate data.
Learn more: Concepts | Tutorial
Latest feature roadmap
Feature
Description
Release status
Coming soon!
(Tentative*)
On-demand backup and export
This feature provides you with the ability to export at-moment physical backup of the server to an Azure storage account (Azure blob storage) using an Azure CLI command. After export, these backups can be used for data recovery, migration, data redundancy and availability, or auditing. Learn more.
Public Preview
General Availability
in Q3 CY24
Flexible maintenance options
Building upon our existing system-managed and custom-managed maintenance windows, the following new flexible maintenance options aim to elevate user convenience and operational flexibility in server maintenance:
Reschedule window: Tailor maintenance schedules to suit your business rhythm.
On-demand maintenance: Instantly initiate maintenance activities using the Reschedule now option.
Public Preview
General Availability
in Q3 CY24
Near-zero downtime maintenance for HA servers
This feature is designed to substantially reduce maintenance downtime for HA-enabled servers, ensuring that in most cases, maintenance downtime is expected to be between 40 to 60 seconds. This capability is pivotal for businesses that demand high availability and minimal interruption in their database operations. Learn more.
Public Preview
General Availability
in Q3 CY24
Virtual Canary
The Virtual Canary feature is an exciting solution for Azure MySQL users who prioritize staying at the forefront of technology by making sure that their servers always run the most current version. Servers opted in for virtual canary receive maintenance updates earlier in advance. You can also take advantage of the feature as an opportunity to perform an additional layer of update testing on your dev, test, or staging servers to help avoid workload-specific issues like application-level compatibility issues. The feature thus offers an efficient way to manage updates, align testing and production environments, and maintain operational stability with minimal disruption.
–
Public Preview
in Q3 CY24
MySQL Discovery & Assessment in Azure Migrate
With this functionality, you can use Azure Migrate to discover MySQL servers in your environment, assess them by identifying their compatibility for moving to Azure Database for MySQL, and receive compute and storage SKU recommendations along with their costs. Learn more.
Private Preview
Public Preview
in Q3 CY24
Long Term Retention of Backups
Previously with Azure Database for MySQL, you could retain automated backups and on-demand backups for up to 35 days. With Long Term Retention, you can now retain the backups up to 10 years, further accommodating your audit and compliance needs. Learn more.
Public Preview
General Availability
in Q4 CY24
Error Logs (in Server Logs)
This feature allows you to maintain MySQL error log files under Server logs and download them for up to seven days. These error logs can help you efficiently identify and troubleshoot performance and reliability issues, and proactively detect and respond to unauthorized access attempts, failed login attempts, and other security-related events. Learn more.
Public Preview
General Availability
in Q4 CY24
CMK-enabled support for Accelerated Logs
Accelerated Logs, available with the Business Critical service tier and designed for mission-critical workloads, is a feature provides an increase in throughput of up to two times (2x) for your applications at no additional cost. The feature will soon be supported on servers that have Customer Managed Keys (CMK) enabled.
–
General Availability
in Q4 CY24
*The roadmap features and dates are tentative and subject to changes. Please stay tuned for continuous updates.
Conclusion
As we continue to work on new features and functionalities, your feedback is very critical for our improvement. If you wish to enrol in Private Preview for any of the above features, or if you have any suggestions for or queries about our service, email us at AskAzureDBforMySQL@service.microsoft.com.
To learn more about what’s new with Flexible Server, see What’s new in Azure Database for MySQL – Flexible Server. Stay tuned for more updates and announcements by following us on social media: YouTube | LinkedIn | X.
Microsoft Tech Community – Latest Blogs –Read More
Verify the integrity of Azure Confidential Ledger transactions with receipts and application claims
In today’s digital landscape, the integrity and confidentiality of transactional data are paramount. Microsoft’s Azure Confidential Ledger offers a robust solution for maintaining the privacy and confidentiality of your data. The service utilizes cryptographic techniques to generate transaction receipts, which serve as immutable evidence of the ledger’s state at a specific point in time. These receipts are crucial for businesses that require a high level of trust and transparency in their operations.
Write receipts
The value proposition of Azure Confidential Ledger write receipts lies in their ability to provide a verifiable trail of all write transactions. Azure Confidential Ledger leverages the Confidential Consortium Framework (CCF), which ensures the integrity of transactions by using a Merkle tree data structure to store the hash of all transaction blocks that are added to the immutable ledger.
How write transactions are recorded in the ledger using an internal Merkle Tree data structure in CCF.
When a write transaction is completed, Azure Confidential Ledger users can obtain a cryptographic Merkle proof, or receipt, over the entry created in a Confidential Ledger to check that the write operation was recorded correctly. A write transaction receipt is evidence that the system has committed the corresponding transaction and can be used to confirm that the entry has been successfully appended to the ledger. This ensures that once a transaction has been committed to the ledger, it cannot be altered or deleted without detection.
For more details on Azure Confidential Ledger write receipts, their structure, and how to get a receipt from an active ledger, please refer to this dedicated article.
Application claims
Application claims take receipts a step further by allowing users to attach arbitrary metadata to a transaction, which are eventually reflected in write receipt response payloads. This metadata includes details specific to the transaction’s context, such as the collection ID and the input content of a write operation. The application claims of a write transaction ensure that the claims digest is signed securely and stored together with the transaction itself, meaning that it cannot be tampered with once the transaction is committed.
Example of an application claim attached to a write receipt response payload.
Later, the application claims in plain format are shown in the receipt payload for the same transaction where they were added. Using the claims in plain format, users can recalculate the same claims digest (available in the write receipt) that the ledger signed in place during the transaction to verify the claim authenticity. The claims digest can help verify the write transaction receipt, giving an offline way for users to check the authenticity of the recorded claims.
By leveraging application claims, organizations can tailor the ledger to their specific needs, enhancing the utility and relevance of the data stored within receipts. Application claims are currently supported in the Azure Confidential Ledger preview API version 2023-01-18-preview and their current format is documented in this article.
Receipts and claims verification
The process of verifying write transaction receipts and application claims is straightforward and secure. Utilizing cryptographic proofs, users can independently confirm the authenticity and integrity of each transaction offline, without having to connect to the ledger or trust any central authority.
The Azure Confidential Ledger client library for Python offers useful functions to validate receipts of write transactions and calculate the claims digest from a list of application claims in an easy and seamless manner. With this verification utility, any write receipt from a Confidential Ledger service can be verified with ease and any application claims associated with the transaction can be fully authenticated.
from azure.identity import DefaultAzureCredential
from azure.confidentialledger import ConfidentialLedgerClient
from azure.confidentialledger.certificate import (
ConfidentialLedgerCertificateClient,
)
from azure.confidentialledger.receipt import (
verify_receipt,
)
LEDGER_ID = “acl-test-ledger” # Replace with the ID of the ledger to get the receipt from.
TRANSACTION_ID = “2.50” # Replace with the ID of the transaction to get the receipt for.
API_VERSION = “2023-01-18-preview” # Use this API version for application claims support.
# Build a ConfidentialLedgerClient object through AAD.
ledger_client = ConfidentialLedgerClient(
f”https://{LEDGER_ID}.confidential-ledger.azure.com”,
credential=DefaultAzureCredential(),
ledger_certificate_path=”service_cert.pem”,
api_version=API_VERSION,
)
### We assume that the target transaction has been committed to the ledger in a previous step.
### Please refer to the Azure Confidential Ledger Python SDK samples and documentation
### for details on how to create an entry and wait for it to be committed.
# Get a receipt from the ledger for the input transaction.
poller = ledger_client.begin_get_receipt(TRANSACTION_ID)
get_receipt_response = poller.result()
print(get_receipt_response)
try:
# Verify the contents of the receipt, with optional application claims (if any)
verify_receipt(
get_receipt_response[“receipt”],
ConfidentialLedgerCertificateClient().get_ledger_identity(LEDGER_ID).get(“ledgerTlsCertificate”),
application_claims=get_receipt_response.get(“applicationClaims”, None),
)
print(f”Receipt for transaction id {TRANSACTION_ID} successfully verified”)
except ValueError:
print(f”Receipt verification for transaction id {TRANSACTION_ID} failed”)
raise
How to verify receipts (with optional application claims) using the Azure Confidential Ledger Python SDK.
The decentralized and offline approach to verification bolsters the security and reliability of the system, making Azure Confidential Ledger an ideal platform for applications that demand the highest levels of data integrity. To learn more about the Data Plane Python SDK and its receipt verification utilities, check out this section and the full sample code.
Conclusion
In conclusion, Azure Confidential Ledger’s receipts and application claims offer a compelling value proposition for organizations looking to secure their transactional data. With its strong focus on integrity, confidentiality, and verifiability, Azure Confidential Ledger stands out as a leading solution in the realm of confidential computing. Whether you are managing financial transactions, supply chain management, or any other data-sensitive operation, Azure Confidential Ledger provides the assurance that your data remains untampered and trustworthy through transaction receipts and application claims.
Resources
For getting started with Azure confidential ledger write receipts and application claims, please refer to our documentation:
Azure Confidential Ledger write transaction receipts | Microsoft Learn
Verify Azure Confidential Ledger write transaction receipts | Microsoft Learn
Microsoft Tech Community – Latest Blogs –Read More
For Loop Increment Array
I am currently in class and trying to do my assignment. For this assignment we have to create a for loop that creates an array of 0 through 20 with the even numbers. I wrote the code according to my lesson but it keeps inserting a 0 between each number in the array. Is there something obvious I am missing?
% for loop example
for i = 0:2:20
A(i+1) = i^2;
B(i+1) = i;
endI am currently in class and trying to do my assignment. For this assignment we have to create a for loop that creates an array of 0 through 20 with the even numbers. I wrote the code according to my lesson but it keeps inserting a 0 between each number in the array. Is there something obvious I am missing?
% for loop example
for i = 0:2:20
A(i+1) = i^2;
B(i+1) = i;
end I am currently in class and trying to do my assignment. For this assignment we have to create a for loop that creates an array of 0 through 20 with the even numbers. I wrote the code according to my lesson but it keeps inserting a 0 between each number in the array. Is there something obvious I am missing?
% for loop example
for i = 0:2:20
A(i+1) = i^2;
B(i+1) = i;
end for loop, array, increment MATLAB Answers — New Questions
Is it possible to exit debug mode with shortcut keys?
The debug shortcut keys (F5, F10, F11, etc) in the MATLAB Editor are very useful for debugging, developing, and running code respectively. However, there is no shortcut key for "exit debug mode". Since it is often necessary to terminate debug sessions, an exit debug mode shortcut key would be very useful.The debug shortcut keys (F5, F10, F11, etc) in the MATLAB Editor are very useful for debugging, developing, and running code respectively. However, there is no shortcut key for "exit debug mode". Since it is often necessary to terminate debug sessions, an exit debug mode shortcut key would be very useful. The debug shortcut keys (F5, F10, F11, etc) in the MATLAB Editor are very useful for debugging, developing, and running code respectively. However, there is no shortcut key for "exit debug mode". Since it is often necessary to terminate debug sessions, an exit debug mode shortcut key would be very useful. debug, debugger, exit, quit, dbquit MATLAB Answers — New Questions
How to solve this problem combining sequences and reasoning using code?
An arithmetic sequence:range(4m + 2) , has two elements removed, leaving ( 4m ) elements. These remaining elements are evenly divided into ( m ) groups, with each group containing 4 numbers. After removing the two elements, each of the ( m ) groups must form an arithmetic sequence.how to automatically generates all possible cases of arithmetic sequences obtained by removing two elements from range(4m + 2) when a specific positive integer ( m ) is input, and lists them one by one.
function generateArithmeticSequences(m)
% Generate the original arithmetic sequence
originalSequence = 1:(4*m + 2);
% Generate all combinations of two elements to remove
removeCombinations = nchoosek(originalSequence, 2);
% Preallocate the cell array to store valid cases
validCases = {};
% Loop through all combinations of removals
for i = 1:size(removeCombinations, 1)
% Create a copy of the original sequence without the removed elements
remainingSequence = setdiff(originalSequence, removeCombinations(i, :));
% Check if the remaining sequence can be divided into m groups of 4
% such that each group forms an arithmetic sequence
if isDivisibleIntoArithmeticSequences(remainingSequence, m)
validCases{end+1} = remainingSequence;
end
end
% Display the valid cases
displayValidCases(validCases);
end
% Check function to see if the sequence can be divided into m groups of 4
% where each group is an arithmetic sequence
function result = isDivisibleIntoArithmeticSequences(sequence, m)
result = false;
% Divide the sequence into m groups of 4
groups = mat2cell(sequence, 4*ones(1, m), 4);
% Check if each group forms an arithmetic sequence
for i = 1:m
if ~isArithmeticSequence(groups{i})
return;
end
end
result = true;
end
% Check function to determine if a sequence is an arithmetic sequence
function result = isArithmeticSequence(sequence)
result = false;
if length(sequence) < 4
return;
end
differences = diff(sequence);
if all(differences(1) == differences)
result = true;
end
end
% Function to display the valid cases
function displayValidCases(cases)
for i = 1:length(cases)
disp([‘Case ‘, num2str(i), ‘: ‘, mat2str(cases{i})]);
end
end
The code provided above may not produce the correct answers.An arithmetic sequence:range(4m + 2) , has two elements removed, leaving ( 4m ) elements. These remaining elements are evenly divided into ( m ) groups, with each group containing 4 numbers. After removing the two elements, each of the ( m ) groups must form an arithmetic sequence.how to automatically generates all possible cases of arithmetic sequences obtained by removing two elements from range(4m + 2) when a specific positive integer ( m ) is input, and lists them one by one.
function generateArithmeticSequences(m)
% Generate the original arithmetic sequence
originalSequence = 1:(4*m + 2);
% Generate all combinations of two elements to remove
removeCombinations = nchoosek(originalSequence, 2);
% Preallocate the cell array to store valid cases
validCases = {};
% Loop through all combinations of removals
for i = 1:size(removeCombinations, 1)
% Create a copy of the original sequence without the removed elements
remainingSequence = setdiff(originalSequence, removeCombinations(i, :));
% Check if the remaining sequence can be divided into m groups of 4
% such that each group forms an arithmetic sequence
if isDivisibleIntoArithmeticSequences(remainingSequence, m)
validCases{end+1} = remainingSequence;
end
end
% Display the valid cases
displayValidCases(validCases);
end
% Check function to see if the sequence can be divided into m groups of 4
% where each group is an arithmetic sequence
function result = isDivisibleIntoArithmeticSequences(sequence, m)
result = false;
% Divide the sequence into m groups of 4
groups = mat2cell(sequence, 4*ones(1, m), 4);
% Check if each group forms an arithmetic sequence
for i = 1:m
if ~isArithmeticSequence(groups{i})
return;
end
end
result = true;
end
% Check function to determine if a sequence is an arithmetic sequence
function result = isArithmeticSequence(sequence)
result = false;
if length(sequence) < 4
return;
end
differences = diff(sequence);
if all(differences(1) == differences)
result = true;
end
end
% Function to display the valid cases
function displayValidCases(cases)
for i = 1:length(cases)
disp([‘Case ‘, num2str(i), ‘: ‘, mat2str(cases{i})]);
end
end
The code provided above may not produce the correct answers. An arithmetic sequence:range(4m + 2) , has two elements removed, leaving ( 4m ) elements. These remaining elements are evenly divided into ( m ) groups, with each group containing 4 numbers. After removing the two elements, each of the ( m ) groups must form an arithmetic sequence.how to automatically generates all possible cases of arithmetic sequences obtained by removing two elements from range(4m + 2) when a specific positive integer ( m ) is input, and lists them one by one.
function generateArithmeticSequences(m)
% Generate the original arithmetic sequence
originalSequence = 1:(4*m + 2);
% Generate all combinations of two elements to remove
removeCombinations = nchoosek(originalSequence, 2);
% Preallocate the cell array to store valid cases
validCases = {};
% Loop through all combinations of removals
for i = 1:size(removeCombinations, 1)
% Create a copy of the original sequence without the removed elements
remainingSequence = setdiff(originalSequence, removeCombinations(i, :));
% Check if the remaining sequence can be divided into m groups of 4
% such that each group forms an arithmetic sequence
if isDivisibleIntoArithmeticSequences(remainingSequence, m)
validCases{end+1} = remainingSequence;
end
end
% Display the valid cases
displayValidCases(validCases);
end
% Check function to see if the sequence can be divided into m groups of 4
% where each group is an arithmetic sequence
function result = isDivisibleIntoArithmeticSequences(sequence, m)
result = false;
% Divide the sequence into m groups of 4
groups = mat2cell(sequence, 4*ones(1, m), 4);
% Check if each group forms an arithmetic sequence
for i = 1:m
if ~isArithmeticSequence(groups{i})
return;
end
end
result = true;
end
% Check function to determine if a sequence is an arithmetic sequence
function result = isArithmeticSequence(sequence)
result = false;
if length(sequence) < 4
return;
end
differences = diff(sequence);
if all(differences(1) == differences)
result = true;
end
end
% Function to display the valid cases
function displayValidCases(cases)
for i = 1:length(cases)
disp([‘Case ‘, num2str(i), ‘: ‘, mat2str(cases{i})]);
end
end
The code provided above may not produce the correct answers. arrays, – homework not originally tagged as homework – MATLAB Answers — New Questions
Confusion of IMAQ, get data “logging”
Hello. This is a general question about image aquisition using the imaq tool box. The Matlab documentation uses quite confusing terms such as logging and running. What do these physically mean in simple terms?
I want to enable fast image capture and use a single trigger to e.g. set off the camera to collect 20 images:
vid=getVidObj(app);
n=20; % Snap n Images when triggered
vid.FramesPerTrigger=n;
% Start Camera running (not transferring images yet)
start(vid);
trigger(vid); % This inititates te Camera to collect images
tic;
pause(0.01);
[frame,time]=getdata(vid,n); %Just get n fram
tframes=toc;
My questions are:
1: Before getdata is invoked, and the camera has been triggered, are the images on the camera in some kind of memory or do they stream straight to the RAM
2: When getdata is performed, it returns n=20 frames (images). Where are these actual images, are they in RAM on the PC.
The logging and running terminology doesn’t inform of where the actual image data is.
(Im using a Blackfly FLIR camera with USB3 connectivitiy)
Thanks
JasonHello. This is a general question about image aquisition using the imaq tool box. The Matlab documentation uses quite confusing terms such as logging and running. What do these physically mean in simple terms?
I want to enable fast image capture and use a single trigger to e.g. set off the camera to collect 20 images:
vid=getVidObj(app);
n=20; % Snap n Images when triggered
vid.FramesPerTrigger=n;
% Start Camera running (not transferring images yet)
start(vid);
trigger(vid); % This inititates te Camera to collect images
tic;
pause(0.01);
[frame,time]=getdata(vid,n); %Just get n fram
tframes=toc;
My questions are:
1: Before getdata is invoked, and the camera has been triggered, are the images on the camera in some kind of memory or do they stream straight to the RAM
2: When getdata is performed, it returns n=20 frames (images). Where are these actual images, are they in RAM on the PC.
The logging and running terminology doesn’t inform of where the actual image data is.
(Im using a Blackfly FLIR camera with USB3 connectivitiy)
Thanks
Jason Hello. This is a general question about image aquisition using the imaq tool box. The Matlab documentation uses quite confusing terms such as logging and running. What do these physically mean in simple terms?
I want to enable fast image capture and use a single trigger to e.g. set off the camera to collect 20 images:
vid=getVidObj(app);
n=20; % Snap n Images when triggered
vid.FramesPerTrigger=n;
% Start Camera running (not transferring images yet)
start(vid);
trigger(vid); % This inititates te Camera to collect images
tic;
pause(0.01);
[frame,time]=getdata(vid,n); %Just get n fram
tframes=toc;
My questions are:
1: Before getdata is invoked, and the camera has been triggered, are the images on the camera in some kind of memory or do they stream straight to the RAM
2: When getdata is performed, it returns n=20 frames (images). Where are these actual images, are they in RAM on the PC.
The logging and running terminology doesn’t inform of where the actual image data is.
(Im using a Blackfly FLIR camera with USB3 connectivitiy)
Thanks
Jason imaq, getdata, logging, running MATLAB Answers — New Questions
Shading of viscircles weird behavior
When I export a figure via
exportgraphics(axis,filename);
multiple times, I get the strange behavior that after some exports circles drawn via
viscircles(axis,[x, y],r,’EnhanceVisibility’,true);
are shaded white (just the white circle remains which is shaded to improve visibility).
This worked fine for weeks, but now I added the yellow surface-plot below and now this behavior appears.
Can someone explain why this happens and what to do that the export works (while ‘EnhanceVisibility’, true remains)?When I export a figure via
exportgraphics(axis,filename);
multiple times, I get the strange behavior that after some exports circles drawn via
viscircles(axis,[x, y],r,’EnhanceVisibility’,true);
are shaded white (just the white circle remains which is shaded to improve visibility).
This worked fine for weeks, but now I added the yellow surface-plot below and now this behavior appears.
Can someone explain why this happens and what to do that the export works (while ‘EnhanceVisibility’, true remains)? When I export a figure via
exportgraphics(axis,filename);
multiple times, I get the strange behavior that after some exports circles drawn via
viscircles(axis,[x, y],r,’EnhanceVisibility’,true);
are shaded white (just the white circle remains which is shaded to improve visibility).
This worked fine for weeks, but now I added the yellow surface-plot below and now this behavior appears.
Can someone explain why this happens and what to do that the export works (while ‘EnhanceVisibility’, true remains)? viscircles MATLAB Answers — New Questions
Powershell – Set-VpnConnectionIPsecConfiguration : Invalid namespace
The default Windows built in L2TP client uses 3DES, and for VPN connection I need to use AES to AES256, so I found command to use Powershell to edit a connection:
Set-VpnConnectionIPsecConfiguration -ConnectionName L2TP -AuthenticationTransformConstants SHA196 -CipherTransformConstants AES128 -DHGroup Group14 -EncryptionMethod AES128 -IntegrityCheckMethod SHA1 -PfsGroup PFS2048 -Force
This does work on a test machine, I was able to connect to a Cisco ASA. My problem is on the PC that needs VPN connections I get this error:
Set-VpnConnectionIPsecConfiguration : Invalid namespace
At line:1 char:1
+ Set-VpnConnectionIPsecConfiguration -ConnectionName L2TP -Authenticat …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : MetadataError: (PS_VpnConnectionIPsecConfiguration:root/Microsoft/…ecConfiguration) [Set-VpnConnectionIPsecConfiguration], CimException
+ FullyQualifiedErrorId : HRESULT 0x8004100e,Set-VpnConnectionIPsecConfiguration
Not much of a Windows user, even less so with Powershell. Googling ‘Invalid namespace’ to ‘CIMexception’ has not gotten me anywhere, and I have yet to find anything specific to someone else encountering this error when modifying VPN connection. I also get this Invalid namespace when trying to add a new connection via Powershell as well.
The default Windows built in L2TP client uses 3DES, and for VPN connection I need to use AES to AES256, so I found command to use Powershell to edit a connection:Set-VpnConnectionIPsecConfiguration -ConnectionName L2TP -AuthenticationTransformConstants SHA196 -CipherTransformConstants AES128 -DHGroup Group14 -EncryptionMethod AES128 -IntegrityCheckMethod SHA1 -PfsGroup PFS2048 -ForceThis does work on a test machine, I was able to connect to a Cisco ASA. My problem is on the PC that needs VPN connections I get this error:Set-VpnConnectionIPsecConfiguration : Invalid namespace
At line:1 char:1
+ Set-VpnConnectionIPsecConfiguration -ConnectionName L2TP -Authenticat …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : MetadataError: (PS_VpnConnectionIPsecConfiguration:root/Microsoft/…ecConfiguration) [Set-VpnConnectionIPsecConfiguration], CimException
+ FullyQualifiedErrorId : HRESULT 0x8004100e,Set-VpnConnectionIPsecConfigurationNot much of a Windows user, even less so with Powershell. Googling ‘Invalid namespace’ to ‘CIMexception’ has not gotten me anywhere, and I have yet to find anything specific to someone else encountering this error when modifying VPN connection. I also get this Invalid namespace when trying to add a new connection via Powershell as well. Read More