Month: June 2024
How to add multiple values parameter with concat list in SSRS
I have an Oracle table with a column that has concatenated values separated by commas. In SSRS, how does it handle a multivalue parm in this scenario? On the SSRS report, the parameter field will not work with a drop-down list of values to select from. It will only work if I remove the drop-down list and just enter it this way in the box field when previewing the report:
Parameter: blue,red,orange
But it will not work if entering it this way (see below) on the report and previewing it will give an error (invalid relational error). Like so:
Parameter: blue
red
orange
I would need the above to work as I need a drop-down selection list. Can it even be done? The SQL btw runs perfectly in Oracle, it only complains in SSRS when selecting more than one value.
I have an Oracle table with a column that has concatenated values separated by commas. In SSRS, how does it handle a multivalue parm in this scenario? On the SSRS report, the parameter field will not work with a drop-down list of values to select from. It will only work if I remove the drop-down list and just enter it this way in the box field when previewing the report: Parameter: blue,red,orange But it will not work if entering it this way (see below) on the report and previewing it will give an error (invalid relational error). Like so: Parameter: blue red orange I would need the above to work as I need a drop-down selection list. Can it even be done? The SQL btw runs perfectly in Oracle, it only complains in SSRS when selecting more than one value. Read More
Multiply cells based on another sheet
Hi everyone,
I am trying to make Sheet 1 total each row based on the services provided. I will input the quantity of each service and I need it to multiply with the values on Sheet 2. I have multiple project types with variable pricing rates.
So basically I need some sort of “multiply if” equation. Any advice?
TIA!
Sheet 1:
Sheet 2:
Hi everyone,I am trying to make Sheet 1 total each row based on the services provided. I will input the quantity of each service and I need it to multiply with the values on Sheet 2. I have multiple project types with variable pricing rates.So basically I need some sort of “multiply if” equation. Any advice?TIA! Sheet 1: Sheet 2: Read More
OneDrive shares, video links open wrongly on IOS and Android
On any recent web browser: Still of first frame of video opens with control panel play button visible.
IOS: Still of first frame of video opens with play button center screen. Touch play button, and video starts and immediately stops. Touching bottom of screen starts playback.
Android: Still of first frame of video opens with with no play button visible. If one touches the screen it appears and functions.
On any recent web browser: Still of first frame of video opens with control panel play button visible.IOS: Still of first frame of video opens with play button center screen. Touch play button, and video starts and immediately stops. Touching bottom of screen starts playback.Android: Still of first frame of video opens with with no play button visible. If one touches the screen it appears and functions. Read More
How to add a .png image to be published as a pdf output file
Hi everyone,
Im trying to add an image to my document but I keep getting an error
[ERROR] FOUserAgent – Image not found. URI: file:///Part1.jpg. (See position -1:-1)
[ERROR] FOUserAgent – Image not found. URI: file:///Part1.jpg. (No context info available)
my code is the following:
%% 1. System Description
%
% <<Part1.png>>
%
I have my image in the same folder as my .m file. Any help is appreciated. Thank you in advance!Hi everyone,
Im trying to add an image to my document but I keep getting an error
[ERROR] FOUserAgent – Image not found. URI: file:///Part1.jpg. (See position -1:-1)
[ERROR] FOUserAgent – Image not found. URI: file:///Part1.jpg. (No context info available)
my code is the following:
%% 1. System Description
%
% <<Part1.png>>
%
I have my image in the same folder as my .m file. Any help is appreciated. Thank you in advance! Hi everyone,
Im trying to add an image to my document but I keep getting an error
[ERROR] FOUserAgent – Image not found. URI: file:///Part1.jpg. (See position -1:-1)
[ERROR] FOUserAgent – Image not found. URI: file:///Part1.jpg. (No context info available)
my code is the following:
%% 1. System Description
%
% <<Part1.png>>
%
I have my image in the same folder as my .m file. Any help is appreciated. Thank you in advance! image, pdf, publish MATLAB Answers — New Questions
The problem with Framework packages in MSIX and a proposed solution
Microsoft created the concept of “Framework” packages, which are designed to contain common dlls that might be needed for multiple packages, which could then declare these framework packages as dependencies which get layered in automatically at runtime. A good idea that allows the framework package to be updated with security fixes independently.
The implementation, however, is problematic. As an example, I point to Windows.Runtime_1.4.
The Windows.Runtime_1.4 dependency is automatically added by the Microsoft Packaging Tool for most applications to solve certain types of shortcut issues. But there are two “architecture” (aka “bitness”) versions of this dependency, one containing x86 dlls and one containing x64 dlls.
For the purpose of why the dependency is added automatically by the Microsoft MSIX Packaging tool, the client (the device the package is installed into) OS architecture dictates the architecture of the dependency package, i.e. since we are using 64-bit OSs 99.999% of the time today we need the x64 version of the dependency.
In the AppXManifest schema today, we can only specify the package name, and there is no option to specify the architecture. So as long as we package on an x64 OS and deploy to x64 OS we are OK if that is the only need for the dependency.
Unfortunately, the base application might be 32-bit and also require the WIndows.Runtime dependency, which would need to be the x86 version of the dependency. But alas, there is no way to specify the architecture in the dependency and such packages are not a candidate for MSIX.
This is just one concrete example of the dependency problem; VCLIBS is another.
As I look at the situation there are two very acceptable alternative solutions that Microsoft could embrace to solve this.
Extend the AppXManifest schemas to add an “Architecture” parameter to the Dependency element. This, by itself, would allow a single architecture solution. But it would not solve the need for situations requiring both bitnesses without #2 also.
Change the way that these Framework packages are constructed. Currently they place the dlls at the root folder of the dependency package. While this folder is in the load library search algorithm for dll loading, it is not the only option. Instead, place these dll files in a VFSSYSTEMx64 or VFSSYSTEMx86 folder of the dependency package as appropriate. This is still in the automatic search pattern for MSIX/AppX and will be found.
For solution #2 in a vacuum, that would mean consolidating the x64 and x64 Windows.Runtime packages into a single package would be necessary. With #1 implemented, we could live with separate architecture dependency packages, although they would still need to have the dlls under the VFS folders to allow both framework packages to be added when necessary.
To be clear, it is the VCLibs case that is more critical to this post, but the Windows.Runtime is also an issue (just easier to explain).
Microsoft created the concept of “Framework” packages, which are designed to contain common dlls that might be needed for multiple packages, which could then declare these framework packages as dependencies which get layered in automatically at runtime. A good idea that allows the framework package to be updated with security fixes independently.
The implementation, however, is problematic. As an example, I point to Windows.Runtime_1.4.
The Windows.Runtime_1.4 dependency is automatically added by the Microsoft Packaging Tool for most applications to solve certain types of shortcut issues. But there are two “architecture” (aka “bitness”) versions of this dependency, one containing x86 dlls and one containing x64 dlls.
For the purpose of why the dependency is added automatically by the Microsoft MSIX Packaging tool, the client (the device the package is installed into) OS architecture dictates the architecture of the dependency package, i.e. since we are using 64-bit OSs 99.999% of the time today we need the x64 version of the dependency.
In the AppXManifest schema today, we can only specify the package name, and there is no option to specify the architecture. So as long as we package on an x64 OS and deploy to x64 OS we are OK if that is the only need for the dependency.
Unfortunately, the base application might be 32-bit and also require the WIndows.Runtime dependency, which would need to be the x86 version of the dependency. But alas, there is no way to specify the architecture in the dependency and such packages are not a candidate for MSIX.
This is just one concrete example of the dependency problem; VCLIBS is another.
As I look at the situation there are two very acceptable alternative solutions that Microsoft could embrace to solve this.
Extend the AppXManifest schemas to add an “Architecture” parameter to the Dependency element. This, by itself, would allow a single architecture solution. But it would not solve the need for situations requiring both bitnesses without #2 also.
Change the way that these Framework packages are constructed. Currently they place the dlls at the root folder of the dependency package. While this folder is in the load library search algorithm for dll loading, it is not the only option. Instead, place these dll files in a VFSSYSTEMx64 or VFSSYSTEMx86 folder of the dependency package as appropriate. This is still in the automatic search pattern for MSIX/AppX and will be found.
For solution #2 in a vacuum, that would mean consolidating the x64 and x64 Windows.Runtime packages into a single package would be necessary. With #1 implemented, we could live with separate architecture dependency packages, although they would still need to have the dlls under the VFS folders to allow both framework packages to be added when necessary.
To be clear, it is the VCLibs case that is more critical to this post, but the Windows.Runtime is also an issue (just easier to explain). Read More
I would like to make a suggestion
Once the issue is resolved, can users be given the ability to lock their own posts?
Once the issue is resolved, can users be given the ability to lock their own posts? Read More
I can’t delet some column
Hey Guys I facing an issue with the column. I can’t delete it and messages appear to me (Some files are missing required metadata.
Hey Guys I facing an issue with the column. I can’t delete it and messages appear to me (Some files are missing required metadata. Read More
Vector Search using 95% Less Compute | DiskANN with Azure Cosmos DB
Ensure high-accuracy, efficient vector search at massive scale with Azure Cosmos DB. Leveraging DiskANN, more IO traffic moves from memory to disk to maximize storage capacity and enable high-speed similarity searches across all data, reducing compute dependency. This technology, powering global services like Microsoft 365, is now integrated into Azure Cosmos DB, enabling developers to build scalable, high-performance applications with built-in vector search, real-time fraud detection, and robust multi-tenancy support.
Join Kirill Gavrylyuk, VP for Azure Cosmos DB, as he shares how Azure Cosmos DB with DiskANN offers unparalleled speed, efficiency, and accuracy, making it the ideal solution for modern AI-driven applications.
DiskANN is now built into Azure Cosmos DB.
Boost query speed, reduce latency, enhance cost efficiency without sacrificing accuracy by moving in-memory I/O traffic to SSDs. See it here.
Vectorize transactions for anomaly detection.
Compare new transactions with historical data to identify fraud. Take a look at DiskANN with Cosmos DB.
Manage multi-tenancy with Cosmos DB’s built-in support.
It offers resource efficiency and data isolation for regulatory compliance. Check it out.
Watch our video here:
QUICK LINKS:
00:00 — Latest Cosmos DB optimizations with DiskANN
02:09 — Where DiskANN approach is beneficial
04:07 — Efficient querying
06:02 — DiskANN compared to HNSW
07:41 — Integrate DiskANN into a new or existing app
08:39 — Real-time transactional AI scenario
09:29 — Building a fraud detection sample app
10:59 — Vectorize transactions for anomaly detection
12:49 — Scaling to address high levels of traffic
14:05 — Manage multi-tenancy
15:35 — Wrap up
Link References
Check out https://aka.ms/DiskANNCosmosDB
Try out apps at https://aka.ms/DiskANNCosmosDBSamples
Unfamiliar with Microsoft Mechanics?
As Microsoft’s official video series for IT, you can watch and share valuable content and demos of current and upcoming tech from the people who build it at Microsoft.
Subscribe to our YouTube: https://www.youtube.com/c/MicrosoftMechanicsSeries
Talk with other IT Pros, join us on the Microsoft Tech Community: https://techcommunity.microsoft.com/t5/microsoft-mechanics-blog/bg-p/MicrosoftMechanicsBlog
Watch or listen from anywhere, subscribe to our podcast: https://microsoftmechanics.libsyn.com/podcast
Keep getting this insider knowledge, join us on social:
Follow us on Twitter: https://twitter.com/MSFTMechanics
Share knowledge on LinkedIn: https://www.linkedin.com/company/microsoft-mechanics/
Enjoy us on Instagram: https://www.instagram.com/msftmechanics/
Loosen up with us on TikTok: https://www.tiktok.com/@msftmechanics
Video Transcript:
– How do you ensure that vector search, key for intelligent information retrieval and generative AI, works at massive scale and with high accuracy and efficiency? Well, we’re changing the relationship with database memory and storage so that more IO traffic moves to disk to leverage more storage capacity. This uses the Microsoft-developed Disk Accelerated Nearest Neighbors, or DiskANN for short, to quantize a vector-based graph index of data in memory and map to a full precision graph of vector data that it generates in storage to reduce memory dependency for high-speed similarity search over all your data. This is in fact how global services like Microsoft 365 do vector search at scale. And the good news is it’s now built into Azure Cosmos DB for you to use too. And joining me once again is Kirill Gavrylyuk from the Cosmos DB team to go through all of this. Welcome back.
– Thank you. It’s great to be back to share the latest updates.
– Thank you. So last time you were on just a few months back, we looked at Cosmos DB as the backend tier for the ChatGPT service from OpenAI, as well as massive services like Microsoft Teams and Cosmos DB also has built-in vector search, which is really great for generative AI and improving the intelligence of search. So how does the latest Cosmos DB set of advancements around DiskANN change things?
– So in all the examples you mentioned, you need scale. In fact, I think of Cosmos DB and DiskANN as a perfect marriage of technology. For example, at runtime, DiskANN is able to move in-memory IO traffic to the physical SSD to speed up operations efficiently. It uses a set of core algorithms like Vamana for vector indexing, a pruning algorithm to reduce the space that the vector data takes on disk, and one for search that does look-ups. Cosmos DB can then automatically and horizontally scale physical disc partitions as needed, limitlessly in real time. The combination helps us to get even more querying speedups with lower latency and better cost efficiency while preserving accuracy.
– Okay, so in what different scenarios does this approach with DiskANN really light things up?
– This makes a huge difference where you have to query large amounts of frequently changing vector datasets. Take, for example, Microsoft 365. Every time you exchange an email, make a change in a doc, or receive a message on Teams, all of those operations represent trillions of frequently updating data points. On the backend, these all use DiskANN for vectorization, indexing, and search to facilitate fast and efficient data retrieval and read and write operations at huge scale.
– And this really helps with how we run things like Microsoft 365 efficiently. And I know that Microsoft Bing also uses DiskANN.
– Right. And because DiskANN is now built into Cosmos DB, you can use it too and build fast and efficient systems that use natural language, anomaly detection, and much more.
– Yeah, and in fact, DiskANN extends built-in vector support beyond vCore-based Cosmos DB for Mongo DB.
– Correct. DiskANN gives you another way to build your vector indexes, which are the key to everything allowing information retrieval based on similarity. If you recall, vectors are a coordinate-like way to refer to chunks of data in your database. These are used during look-ups to find the closest similarity of meaning. With DiskANN built in, vector search is available to other APIs, starting with the core schema-less NoSQL API, which, by the way, is what Microsoft Teams and OpenAI service uses.
– So why don’t we dig into this a little bit more? Because this is now ordinary vector indexing and search. DiskANN as an approach is actually changing things dramatically, right?
– It does. In fact, DiskANN was developed by Microsoft Research. Here, the goal has been to change the relationship between database memory and physical disk storage. We’ve made DiskANN available opensource. Anyone can use it on GitHub. That said, the version we use in Cosmos DB has even more optimizations based on our experience in using it for our own services. So without DiskANN, traditionally, with most vector indexes, when you submit a query, it would first check to see if that query and result are already available in memory. This is compute-intensive operation and recall is often limited to 50%, partly because there is less space in memory compared to storage. Because storing data in memory is more expensive, DiskANN changes things by first using quantization to compress vectors to build an optimized graph that can be run efficiently in memory. Then, instead of just relying on what’s in memory, DiskANN uses the Vamana index-building algorithm to create a full precision graph index of all data along with the pruning algorithm to create an efficient graph-based index of vector data on the SSD, which has more storage capacity. And there is no trade-off here because DiskANN reads from the SSD very efficiently. And since modern SSDs are very fast, we can still maintain very low latency and high queries per second. During a vector search, the search algorithm first refers to in-memory compressed vectors, which act like a pointer to the larger full precision graph on disk storage to retrieve information on nearest neighbors. Then once search finds the top results, they are re-ranked using the full vectors on the SSD to ensure high accuracy. This way, compared to other approaches, DiskANN can accurately achieve very high recall, around 95% or higher, at any scale.
– Right. These are read/write operations effectively that are happening on disk. So we no longer have to rely on available RAM. Does this mean that it’s also more efficient in terms of compute?
– Yes. Compared to other vector-based options, it needs less than 5% of traditional compute requirements to run on. And because Cosmos DB can automatically and dynamically scale physical partitions to distribute data as needed, we’re actively load balancing I/O and storage utilization. Each of these physical partitions can have its own DiskANN data graph as Cosmos DB scales in or out. Both concepts work seamlessly together. In fact, to make these efficiencies real, let me explain how this compares to the most common alternative, HNSW, or Hierarchical Navigable Small World systems. Let’s take two examples where we have a dataset of 1 million and 1 billion embeddings from the Azure OpenAI service. With an in-memory index like HNSW, it takes more than 12 gigabytes to store 1 million vector embeddings. And in the 1 billion vector embeddings dataset scenario, that equates to more than 6,000 gigabytes, which is six terabytes, consumed by the HNSW index. By contrast, using DiskANN, even with conservative estimates, compared to HNSW, we use around 1/60 or around 200 megabytes of the memory for 1 million embeddings and around 100 gigabyte for 1 billion.
– So what would that really mean in terms of provisioned compute if I use the HNSW approach, maybe with dedicated virtual machines?
– Well, to quantify the VM compute and if we take the 1 billion vector example, you would have to manage 45 high-performance Azure B-series VM resources with 32 vCores and 128 gigs of RAM each just to maintain indexes in memory, and you keep paying for them whether you are using them or not. Whereas with Azure Cosmos DB, you can provision a single instance with DiskANN enabled to build a full precision index. And Cosmos DB handles the partitioning for you automatically with DiskANN indexing information efficiently across these partitions. And the good news is that you only pay for what you use.
– Okay, so now we’ve kind of explained what DiskANN is and how that works, how it compares to HNSW, so can we maybe have a look at, for all the developers watching, how you might use this and integrate this into an existing or a new app?
– Sure. I have a good example with a constant stream of transactions. This is a proof-of-concept financial services app. It runs at massive scale to monitor financial transactions for fraud, which is getting more and more common these days. We’re tracking transaction volume, fraudulent transactions, fraudulent customers, and other key metrics. And this just happens to be one example of where Cosmos DB with DiskANN can make a difference. Even though our current system is running at scale, the fraud detection alerts are taking an average of 1.1 seconds, which is not as real time as we want it to be, and our accuracy at around 85%, which is not where we want it to be.
– Right. And although that might sound really fast, in these situations, it’s a lot better to decline a fraudulent transaction while it’s happening to stop current and also future transactions.
– That’s right. And Azure Cosmos DB is the best database for these sorts of real-time transactional AI scenarios. Let me show you. From the Features pane in a running Cosmos DB NoSQL account, the first thing you’ll need to do is to enable the Vector Search capabilities, which uses DiskANN. From there, you’ll move on to Data Explorer settings and configure instant auto-scaling for changing traffic patterns. Once you have that configured, the rest we can do in Visual Studio Code or your favorite IDE. To vectorize data as it comes in, we’re using Cosmos DB change feed to trigger an Azure function, which calls the OpenAI embedding API. Once the embeddings are generated, those are upserted into our Cosmos DB items directly. From here, I just need to deploy our function for it to be active. And at that point, our backend database is ready. Now we’ll move on to building our fraud detection sample app. Here we are going to use the Cosmos DB Python SDK. First, I have set up the connection to Cosmos DB and added our container information. Then I had to define our logical partition key, which is like the address for your data. Under the covers, Cosmos DB will use this to route requests to the physical disk partitions where the data resides as it automatically scales out. From there, I specified a vector embedding policy, and this is something new for our vector search feature. It informs Cosmos DB where to look for properties containing vectors. Then here, I’ve added an index policy to enable higher performance vector search, leveraging the new DiskANN vector index. With the parameters set, we can create the container. And finally, I’ll load the dataset that we’ve already collected offline directly into Cosmos DB. I’ll just let it run for a moment and now all the dataset is ready.
– Okay, so now with all of the code that you’ve put in place, those vector embeddings get calculated and inserted directly into those items?
– That’s exactly how we set it up. In fact, now we can check to see if our code is working against the data that was just loaded. I’ll execute a simple query from the notebook to verify that the data was ingested and that our Azure function has generated the embeddings. And you can see them right here simply as another property in the data documents.
– Okay, so now we’ve generated all the vector embeddings on the backend, but for those transactions as they come in, how do we vectorize those to make sure that the anomaly detection will work?
– That’s the next step. We also need to calculate and write embeddings for the operational transactions as they flow in and use queries to match those with previous fraudulent transactions. What we are trying to do is to identify if a new transaction is valid or potentially fraudulent. So I have created a helper function to generate vector embeddings. This function vectorizes new transactions. This way, we can pass those vectors to our vector search query. We can compare with the similar transactions in our database to determine if they are valid or if they are suspicious. Now, I also have other transactions that I can use to perform test searches. I’ll start with an example that contains valid transactions. This is a query to select the top 10 most similar vectors. And I’m also projecting a few properties that might be interesting. We’re using the new Vector Distance function to compute vector similarity and projecting that as a Similarity Score. Finally, I’ll do an Order By to sort them by using the Vector Distance function again. This uses the DiskANN index to find the most similar vectors in our dataset and return the relevant properties. And based on the Order By sort, they are sorted in order of most relevant to least relevant. Also, you can see the query results with all the properties we projected. And if you look at the Similarity Score, it is sorted by the most to the least similar. In fact, now that it’s working, let’s test how it’s able to identify fraudulent transactions. I’ll run a different sample with fraudulent transactions. And you can see the query results tagged as fraud with all the properties we projected. So we validated it works and we are ready to deploy in production. In fact, as you saw it, it’s already running.
– And you mentioned how well this works at scale. So can we take a look at how well Cosmos DB is scaling then to basically address that high amount of traffic?
– Sure. I’ll switch over to Azure Monitor to show you that. And on our Azure Metrics dashboard, there is our Cosmos DB resource. You can see it’s automatically scaling as needed without any intervention in changing database configurations or settings thanks to the auto-scale.
– So there aren’t any downsides here, you know, using this approach versus HNSW at really this massive scale that we just saw. In fact, HNSW would be cost prohibitive. So what’s the impact then in terms of our time if we go back to our app to detect fraud?
– Let’s take a look. If I go back to the app, you’ll see that whereas before, we were around 1.1 seconds to detect the fraudulent transaction, now it takes just 47 milliseconds to find those using our vector search-based logic and detection and our accuracy with the true positive rate is also increased around 10%. And that means that we can both stop a single fraudulent transaction in its tracks and payment instruments are put on hold. So this will add a lot of compute efficiency, scale, accuracy, and reduce latency as you implement and use vector search in your apps.
– So this is a really great example for using DiskANN with a single tenant app, but how would this work then with multi-tenancy scenarios where you might need to manage several different app backends?
– So managing multi-tenancy is also challenging and can be very resource-intensive. With HNSW, you are limited to using separate indexes for each of your tenants, which, again, is memory-heavy and expensive. Now, you could use separate VMs, but that’s even more expensive and you would need to keep those VMs running at all times. With Cosmos DB, multi-tenancy support is built in and we give you multiple options for isolation. For example, you can have a separate Azure Cosmos DB account for each tenant, or in a single Azure Cosmos DB account, you can set up a unique database for each tenant. Or in a single database, you can have a separate data collections per tenant. Another option if you want to store everything in one collection, you can specify a different vector path in the index policy per tenant or you can set up logical partition isolation for each tenant by specifying separate partition keys. And if you need to change these at any time, we now allow you to easily change your partition keys as you scale and multi-tenancy requirements evolve. And of course, when you combine Cosmos DB capabilities with DiskANN, because the graph index is saved to high-speed SSDs, you only pay for compute when you are querying your data,
– Right. And multi-tenant support is really valuable here, especially if you have apps requiring data isolation, you got regulatory needs, or you need privacy over sensitive data. So for anyone who’s watching right now, where should they go to learn more and get this up and running?
– Sure. To find out more, you can check out aka.ms/DiskANNCosmosDB and you can find test apps to try out at aka.ms/DiskANNCosmosDBSamples.
– Thanks so much for joining us today, Kirill. I can’t wait to see how everyone uses this. And of course, keep watching “Microsoft Mechanics” for all latest updates. Thanks for watching and we’ll see you next time.
Microsoft Tech Community – Latest Blogs –Read More
How to find repeated patterns of combination of numbers in the rows of a matrix
I have a matrix with N rows (N is known) with 15 numbers but in different order in each row.
Conditions:
1) 15 numbers from 1 to 25 (randomic).
2) The numbers are always in ascending order.
3) There are no duplicates of a number in the same row.
I’d like to detect all possible repeated patterns of numbers and count how many times the sequence appears in the rows.
Pattern: Any repeated combination of at least 7 numbers or more (in sequence or not).
For example I have a matrix as below:
1 4 5 6 7 9 11 12 13 15 16 19 20 23 24
1 4 6 7 8 9 10 11 12 14 16 17 20 23 24
1 2 4 5 8 10 12 13 16 17 18 19 23 24 25
1 2 4 8 9 11 12 13 15 16 19 20 23 24 25
1 2 4 5 6 7 10 12 15 16 17 19 21 23 25
1 4 7 8 10 12 14 15 16 18 19 21 22 23 25
1 5 6 8 9 10 13 15 16 17 18 19 20 22 25
1 2 5 6 7 9 13 14 15 18 19 20 21 23 25
1 2 4 6 8 10 12 15 16 18 19 21 23 24 25
1 2 3 5 6 7 9 13 14 16 17 18 19 20 21
Some patterns found manually:
Sequence = 1 4 12 15 19 23 25
Qty numbers = 7
Count rows = 4
Sequence = 1 5 6 9 13 15 19 20
Qty numbers = 8
Count rows = 3
Sequence = 1 4 6 10 12 16 23
Qty numbers = 7
Count rows = 3
Sequence = 1 2 4 6 10 12 15 16 19 21 23 25
Qty numbers = 12
Count rows = 2
Sequence = 1 2 4 5 10 12 16 17 19 23 25
Qty numbers = 11
Count rows = 2
Is there anything for this in MATLAB?
Thanks in advance!I have a matrix with N rows (N is known) with 15 numbers but in different order in each row.
Conditions:
1) 15 numbers from 1 to 25 (randomic).
2) The numbers are always in ascending order.
3) There are no duplicates of a number in the same row.
I’d like to detect all possible repeated patterns of numbers and count how many times the sequence appears in the rows.
Pattern: Any repeated combination of at least 7 numbers or more (in sequence or not).
For example I have a matrix as below:
1 4 5 6 7 9 11 12 13 15 16 19 20 23 24
1 4 6 7 8 9 10 11 12 14 16 17 20 23 24
1 2 4 5 8 10 12 13 16 17 18 19 23 24 25
1 2 4 8 9 11 12 13 15 16 19 20 23 24 25
1 2 4 5 6 7 10 12 15 16 17 19 21 23 25
1 4 7 8 10 12 14 15 16 18 19 21 22 23 25
1 5 6 8 9 10 13 15 16 17 18 19 20 22 25
1 2 5 6 7 9 13 14 15 18 19 20 21 23 25
1 2 4 6 8 10 12 15 16 18 19 21 23 24 25
1 2 3 5 6 7 9 13 14 16 17 18 19 20 21
Some patterns found manually:
Sequence = 1 4 12 15 19 23 25
Qty numbers = 7
Count rows = 4
Sequence = 1 5 6 9 13 15 19 20
Qty numbers = 8
Count rows = 3
Sequence = 1 4 6 10 12 16 23
Qty numbers = 7
Count rows = 3
Sequence = 1 2 4 6 10 12 15 16 19 21 23 25
Qty numbers = 12
Count rows = 2
Sequence = 1 2 4 5 10 12 16 17 19 23 25
Qty numbers = 11
Count rows = 2
Is there anything for this in MATLAB?
Thanks in advance! I have a matrix with N rows (N is known) with 15 numbers but in different order in each row.
Conditions:
1) 15 numbers from 1 to 25 (randomic).
2) The numbers are always in ascending order.
3) There are no duplicates of a number in the same row.
I’d like to detect all possible repeated patterns of numbers and count how many times the sequence appears in the rows.
Pattern: Any repeated combination of at least 7 numbers or more (in sequence or not).
For example I have a matrix as below:
1 4 5 6 7 9 11 12 13 15 16 19 20 23 24
1 4 6 7 8 9 10 11 12 14 16 17 20 23 24
1 2 4 5 8 10 12 13 16 17 18 19 23 24 25
1 2 4 8 9 11 12 13 15 16 19 20 23 24 25
1 2 4 5 6 7 10 12 15 16 17 19 21 23 25
1 4 7 8 10 12 14 15 16 18 19 21 22 23 25
1 5 6 8 9 10 13 15 16 17 18 19 20 22 25
1 2 5 6 7 9 13 14 15 18 19 20 21 23 25
1 2 4 6 8 10 12 15 16 18 19 21 23 24 25
1 2 3 5 6 7 9 13 14 16 17 18 19 20 21
Some patterns found manually:
Sequence = 1 4 12 15 19 23 25
Qty numbers = 7
Count rows = 4
Sequence = 1 5 6 9 13 15 19 20
Qty numbers = 8
Count rows = 3
Sequence = 1 4 6 10 12 16 23
Qty numbers = 7
Count rows = 3
Sequence = 1 2 4 6 10 12 15 16 19 21 23 25
Qty numbers = 12
Count rows = 2
Sequence = 1 2 4 5 10 12 16 17 19 23 25
Qty numbers = 11
Count rows = 2
Is there anything for this in MATLAB?
Thanks in advance! array, combination MATLAB Answers — New Questions
Attempt to code a pseudo-code. I am almost there.
I am back here hoping that someone with eagles eyes can see if I am missing a index, because I cannot find where I am missing something. I am trying to implement the following pseudo-code
Until now, my attempt to do it is:
clear all; clc;
% Parameters
n = 9; h = 1 / (n + 1);
f = @(x) 2 * (pi^2) * sin(pi * x);p = @(x) 1;q = @(x) pi^2;
% Define the function S by
S = @(x) ( (x <= -2) ) .* 0 + …
( (x > -2) & (x <= -1) ) .* (1/4 * (2 + x).^3) + …
( (x > -1) & (x <= 0) ) .* (1/4 *((2 + x).^3 – 4 * (1 + x).^3)) + …
( (x > 0) & (x <= 1) ) .* (1/4 *((2 – x).^3 – 4 * (1 – x).^3)) + …
( (x > 1) & (x <= 2) ) .* (1/4 * (2 – x).^3) + …
( (x > 2) ) .* 0;
% Define the derivative of S by
dS = @(x) ( (x <= -2) ) .* 0 + …
( (x > -2) & (x <= -1) ) .* (3/4 * (2 + x).^2) + …
( (x > -1) & (x <= 0) ) .* (3/4 *((2 + x).^2 – 4 * (1 + x).^2)) + …
( (x > 0) & (x <= 1) ) .* ((-3)/4 *((2 – x).^2 – 4 * (1 – x).^2)) + …
( (x > 1) & (x <= 2) ) .* ((-3)/4 * (2 – x).^2) + …
( (x > 2) ) .* 0;
% Difine the cubic basis splines functions by
phi = cell(n + 2, 1);
phi{1} = @(x) S( x / h ) – 4 * S( (x + h) / h );
phi{2} = @(x) S((x – h) / h) – S((x + h) / h);
for i = 3:n
phi{i} = @(x) S((x – (i-1)*h) / h);
end
phi{n + 1} = @(x) S((x – n*h) / h) – S((x – (n + 2)*h) / h);
phi{n + 2} = @(x) S((x – (n + 1)*h) / h) – 4 * S((x – (n + 2)*h) / h);
% Difine the derivatives of cubic basis splines functions by
dphi = cell(n + 2, 1);
dphi{1} = @(x) (1 / h) * dS( x / h ) – (4 / h) * dS( (x + h) / h );
dphi{2} = @(x) (1 / h) * dS((x – h) / h) – (1 / h) * dS( (x + h) / h );
for i = 3:n
dphi{i} = @(x) (1 / h) * dS((x – (i-1)*h) / h);
end
dphi{n + 1} = @(x) (1 / h) * dS((x – n*h) / h) – (1 / h) * dS((x – (n + 2)*h) / h);
dphi{n + 2} = @(x) (1 / h) * dS((x – (n + 1)*h) / h) – (4 / h) * dS((x – (n + 2)*h) / h);
% inicialize the matrix of the linear sistem and its constant vector
A = zeros(n + 2, n + 2);
b = zeros(n + 2, 1);
% Start to build A and b
for i = 1:n+2
for j= i:min(i+3,n+2)
L = max((j-3)*h, 0); % in my mind, L and U should be ajusted to this, since i cannot start from i=0
U = min((i+1)*h, 1);
integrando_aij = @(x) (p(x) * dphi{i}(x) * dphi{j}(x)) + (q(x) * phi{i}(x) * phi{j}(x));
aij = gauss_quad(integrando_aij, L, U); % the gauss_quad function is at the end of this post. It seems to work fine to me.
A(i,j) = aij;
if i~=j
A(j,i) = aij;
end
Ld = max((i-3)*h, 0); % again, the same argument as before
Ud = min((i+1)*h, 1);
integrando_di = @(x) f(x) * phi{i}(x);
di = gauss_quad(integrando_di, Ld, Ud);
b(i) = di;
end
end
c = A b;
disp(‘Coefficients:’);
for i = 0:n+1
fprintf(‘c%d = %.6fn’, i, c(i+1));
end
%%%%%%%%%% PLOTTING GRAPHS %%%%%%%%%%%%%
% Here I just want to look to the shape of the functions that I have
% defined, just to make sure I am using rights tools
% Number of pts to plot
num_points = 1000;
x_values = linspace(0, 1, num_points);
figure (1);
hold on;
% Plot each function phi in [0, 1]
for i = 1:n+2
y_values = arrayfun(phi{i}, x_values);
plot(x_values, y_values, ‘DisplayName’, sprintf(‘\phi_%d(x)’, i-1));
end
xlabel(‘x’);
ylabel(‘phi_i(x)’);
title(‘Funções base phi_i(x) entre [0, 1]’);
legend show;
hold off;
figure (2)
% Plot an specific function, here I chose phi{11}
y_values_phi = arrayfun(phi{11}, x_values);
plot(x_values, y_values_phi);
xlabel(‘x’);
ylabel(‘phi(x)’);
title(‘Função base phi(x) entre [0, 1]’);
legend show;
figure (3)
% Plot S and its derivative
x_values_s = linspace(-3, 3, num_points);
y_values_s = arrayfun(S, x_values_s);
plot(x_values_s, y_values_s);
xlabel(‘x’);
ylabel(‘y’);
hold on
y_values_ds = arrayfun(dS, x_values_s);
plot(x_values_s, y_values_ds);
legend(‘S(x)’, ‘dS(x)’)
hold off
In the book that I am following the basis functions shoul look like
The last section of my code, suggest that I am using them right. Finally, here is the gauss_quad function that I call to solve integrals
function result = gauss_quad(f, a, b)
% 3-point Gauss quadrature
x = [-sqrt(3/5), 0, sqrt(3/5)];
w = [5/9, 8/9, 5/9];
% Transform the integration limits
t = 0.5 * ((b – a) * x + (b + a));
ft = arrayfun(f, t);
result = 0.5 * (b – a) * sum(w .* ft);
end
The coefficients should be
.
I think I have done a good work so far, and I need someone to give me a direction.I am back here hoping that someone with eagles eyes can see if I am missing a index, because I cannot find where I am missing something. I am trying to implement the following pseudo-code
Until now, my attempt to do it is:
clear all; clc;
% Parameters
n = 9; h = 1 / (n + 1);
f = @(x) 2 * (pi^2) * sin(pi * x);p = @(x) 1;q = @(x) pi^2;
% Define the function S by
S = @(x) ( (x <= -2) ) .* 0 + …
( (x > -2) & (x <= -1) ) .* (1/4 * (2 + x).^3) + …
( (x > -1) & (x <= 0) ) .* (1/4 *((2 + x).^3 – 4 * (1 + x).^3)) + …
( (x > 0) & (x <= 1) ) .* (1/4 *((2 – x).^3 – 4 * (1 – x).^3)) + …
( (x > 1) & (x <= 2) ) .* (1/4 * (2 – x).^3) + …
( (x > 2) ) .* 0;
% Define the derivative of S by
dS = @(x) ( (x <= -2) ) .* 0 + …
( (x > -2) & (x <= -1) ) .* (3/4 * (2 + x).^2) + …
( (x > -1) & (x <= 0) ) .* (3/4 *((2 + x).^2 – 4 * (1 + x).^2)) + …
( (x > 0) & (x <= 1) ) .* ((-3)/4 *((2 – x).^2 – 4 * (1 – x).^2)) + …
( (x > 1) & (x <= 2) ) .* ((-3)/4 * (2 – x).^2) + …
( (x > 2) ) .* 0;
% Difine the cubic basis splines functions by
phi = cell(n + 2, 1);
phi{1} = @(x) S( x / h ) – 4 * S( (x + h) / h );
phi{2} = @(x) S((x – h) / h) – S((x + h) / h);
for i = 3:n
phi{i} = @(x) S((x – (i-1)*h) / h);
end
phi{n + 1} = @(x) S((x – n*h) / h) – S((x – (n + 2)*h) / h);
phi{n + 2} = @(x) S((x – (n + 1)*h) / h) – 4 * S((x – (n + 2)*h) / h);
% Difine the derivatives of cubic basis splines functions by
dphi = cell(n + 2, 1);
dphi{1} = @(x) (1 / h) * dS( x / h ) – (4 / h) * dS( (x + h) / h );
dphi{2} = @(x) (1 / h) * dS((x – h) / h) – (1 / h) * dS( (x + h) / h );
for i = 3:n
dphi{i} = @(x) (1 / h) * dS((x – (i-1)*h) / h);
end
dphi{n + 1} = @(x) (1 / h) * dS((x – n*h) / h) – (1 / h) * dS((x – (n + 2)*h) / h);
dphi{n + 2} = @(x) (1 / h) * dS((x – (n + 1)*h) / h) – (4 / h) * dS((x – (n + 2)*h) / h);
% inicialize the matrix of the linear sistem and its constant vector
A = zeros(n + 2, n + 2);
b = zeros(n + 2, 1);
% Start to build A and b
for i = 1:n+2
for j= i:min(i+3,n+2)
L = max((j-3)*h, 0); % in my mind, L and U should be ajusted to this, since i cannot start from i=0
U = min((i+1)*h, 1);
integrando_aij = @(x) (p(x) * dphi{i}(x) * dphi{j}(x)) + (q(x) * phi{i}(x) * phi{j}(x));
aij = gauss_quad(integrando_aij, L, U); % the gauss_quad function is at the end of this post. It seems to work fine to me.
A(i,j) = aij;
if i~=j
A(j,i) = aij;
end
Ld = max((i-3)*h, 0); % again, the same argument as before
Ud = min((i+1)*h, 1);
integrando_di = @(x) f(x) * phi{i}(x);
di = gauss_quad(integrando_di, Ld, Ud);
b(i) = di;
end
end
c = A b;
disp(‘Coefficients:’);
for i = 0:n+1
fprintf(‘c%d = %.6fn’, i, c(i+1));
end
%%%%%%%%%% PLOTTING GRAPHS %%%%%%%%%%%%%
% Here I just want to look to the shape of the functions that I have
% defined, just to make sure I am using rights tools
% Number of pts to plot
num_points = 1000;
x_values = linspace(0, 1, num_points);
figure (1);
hold on;
% Plot each function phi in [0, 1]
for i = 1:n+2
y_values = arrayfun(phi{i}, x_values);
plot(x_values, y_values, ‘DisplayName’, sprintf(‘\phi_%d(x)’, i-1));
end
xlabel(‘x’);
ylabel(‘phi_i(x)’);
title(‘Funções base phi_i(x) entre [0, 1]’);
legend show;
hold off;
figure (2)
% Plot an specific function, here I chose phi{11}
y_values_phi = arrayfun(phi{11}, x_values);
plot(x_values, y_values_phi);
xlabel(‘x’);
ylabel(‘phi(x)’);
title(‘Função base phi(x) entre [0, 1]’);
legend show;
figure (3)
% Plot S and its derivative
x_values_s = linspace(-3, 3, num_points);
y_values_s = arrayfun(S, x_values_s);
plot(x_values_s, y_values_s);
xlabel(‘x’);
ylabel(‘y’);
hold on
y_values_ds = arrayfun(dS, x_values_s);
plot(x_values_s, y_values_ds);
legend(‘S(x)’, ‘dS(x)’)
hold off
In the book that I am following the basis functions shoul look like
The last section of my code, suggest that I am using them right. Finally, here is the gauss_quad function that I call to solve integrals
function result = gauss_quad(f, a, b)
% 3-point Gauss quadrature
x = [-sqrt(3/5), 0, sqrt(3/5)];
w = [5/9, 8/9, 5/9];
% Transform the integration limits
t = 0.5 * ((b – a) * x + (b + a));
ft = arrayfun(f, t);
result = 0.5 * (b – a) * sum(w .* ft);
end
The coefficients should be
.
I think I have done a good work so far, and I need someone to give me a direction. I am back here hoping that someone with eagles eyes can see if I am missing a index, because I cannot find where I am missing something. I am trying to implement the following pseudo-code
Until now, my attempt to do it is:
clear all; clc;
% Parameters
n = 9; h = 1 / (n + 1);
f = @(x) 2 * (pi^2) * sin(pi * x);p = @(x) 1;q = @(x) pi^2;
% Define the function S by
S = @(x) ( (x <= -2) ) .* 0 + …
( (x > -2) & (x <= -1) ) .* (1/4 * (2 + x).^3) + …
( (x > -1) & (x <= 0) ) .* (1/4 *((2 + x).^3 – 4 * (1 + x).^3)) + …
( (x > 0) & (x <= 1) ) .* (1/4 *((2 – x).^3 – 4 * (1 – x).^3)) + …
( (x > 1) & (x <= 2) ) .* (1/4 * (2 – x).^3) + …
( (x > 2) ) .* 0;
% Define the derivative of S by
dS = @(x) ( (x <= -2) ) .* 0 + …
( (x > -2) & (x <= -1) ) .* (3/4 * (2 + x).^2) + …
( (x > -1) & (x <= 0) ) .* (3/4 *((2 + x).^2 – 4 * (1 + x).^2)) + …
( (x > 0) & (x <= 1) ) .* ((-3)/4 *((2 – x).^2 – 4 * (1 – x).^2)) + …
( (x > 1) & (x <= 2) ) .* ((-3)/4 * (2 – x).^2) + …
( (x > 2) ) .* 0;
% Difine the cubic basis splines functions by
phi = cell(n + 2, 1);
phi{1} = @(x) S( x / h ) – 4 * S( (x + h) / h );
phi{2} = @(x) S((x – h) / h) – S((x + h) / h);
for i = 3:n
phi{i} = @(x) S((x – (i-1)*h) / h);
end
phi{n + 1} = @(x) S((x – n*h) / h) – S((x – (n + 2)*h) / h);
phi{n + 2} = @(x) S((x – (n + 1)*h) / h) – 4 * S((x – (n + 2)*h) / h);
% Difine the derivatives of cubic basis splines functions by
dphi = cell(n + 2, 1);
dphi{1} = @(x) (1 / h) * dS( x / h ) – (4 / h) * dS( (x + h) / h );
dphi{2} = @(x) (1 / h) * dS((x – h) / h) – (1 / h) * dS( (x + h) / h );
for i = 3:n
dphi{i} = @(x) (1 / h) * dS((x – (i-1)*h) / h);
end
dphi{n + 1} = @(x) (1 / h) * dS((x – n*h) / h) – (1 / h) * dS((x – (n + 2)*h) / h);
dphi{n + 2} = @(x) (1 / h) * dS((x – (n + 1)*h) / h) – (4 / h) * dS((x – (n + 2)*h) / h);
% inicialize the matrix of the linear sistem and its constant vector
A = zeros(n + 2, n + 2);
b = zeros(n + 2, 1);
% Start to build A and b
for i = 1:n+2
for j= i:min(i+3,n+2)
L = max((j-3)*h, 0); % in my mind, L and U should be ajusted to this, since i cannot start from i=0
U = min((i+1)*h, 1);
integrando_aij = @(x) (p(x) * dphi{i}(x) * dphi{j}(x)) + (q(x) * phi{i}(x) * phi{j}(x));
aij = gauss_quad(integrando_aij, L, U); % the gauss_quad function is at the end of this post. It seems to work fine to me.
A(i,j) = aij;
if i~=j
A(j,i) = aij;
end
Ld = max((i-3)*h, 0); % again, the same argument as before
Ud = min((i+1)*h, 1);
integrando_di = @(x) f(x) * phi{i}(x);
di = gauss_quad(integrando_di, Ld, Ud);
b(i) = di;
end
end
c = A b;
disp(‘Coefficients:’);
for i = 0:n+1
fprintf(‘c%d = %.6fn’, i, c(i+1));
end
%%%%%%%%%% PLOTTING GRAPHS %%%%%%%%%%%%%
% Here I just want to look to the shape of the functions that I have
% defined, just to make sure I am using rights tools
% Number of pts to plot
num_points = 1000;
x_values = linspace(0, 1, num_points);
figure (1);
hold on;
% Plot each function phi in [0, 1]
for i = 1:n+2
y_values = arrayfun(phi{i}, x_values);
plot(x_values, y_values, ‘DisplayName’, sprintf(‘\phi_%d(x)’, i-1));
end
xlabel(‘x’);
ylabel(‘phi_i(x)’);
title(‘Funções base phi_i(x) entre [0, 1]’);
legend show;
hold off;
figure (2)
% Plot an specific function, here I chose phi{11}
y_values_phi = arrayfun(phi{11}, x_values);
plot(x_values, y_values_phi);
xlabel(‘x’);
ylabel(‘phi(x)’);
title(‘Função base phi(x) entre [0, 1]’);
legend show;
figure (3)
% Plot S and its derivative
x_values_s = linspace(-3, 3, num_points);
y_values_s = arrayfun(S, x_values_s);
plot(x_values_s, y_values_s);
xlabel(‘x’);
ylabel(‘y’);
hold on
y_values_ds = arrayfun(dS, x_values_s);
plot(x_values_s, y_values_ds);
legend(‘S(x)’, ‘dS(x)’)
hold off
In the book that I am following the basis functions shoul look like
The last section of my code, suggest that I am using them right. Finally, here is the gauss_quad function that I call to solve integrals
function result = gauss_quad(f, a, b)
% 3-point Gauss quadrature
x = [-sqrt(3/5), 0, sqrt(3/5)];
w = [5/9, 8/9, 5/9];
% Transform the integration limits
t = 0.5 * ((b – a) * x + (b + a));
ft = arrayfun(f, t);
result = 0.5 * (b – a) * sum(w .* ft);
end
The coefficients should be
.
I think I have done a good work so far, and I need someone to give me a direction. code, homework, algorithm, integration, index MATLAB Answers — New Questions
Error returned from initializewinlo
I get this message on bootup in win 11, any help
I get this message on bootup in win 11, any help Read More
Desktop icons overlapping
I was using DesktopOK and I have this problem now, I can’t find any way to fix it, I’ve tried editing the registery, uninstalled and reinstalled DesktopOK but it’s still the same, any way I can fix it?
I was using DesktopOK and I have this problem now, I can’t find any way to fix it, I’ve tried editing the registery, uninstalled and reinstalled DesktopOK but it’s still the same, any way I can fix it? Read More
How to show partial legend in figure
Dear All,
I just want to show the partial part of my legend in Figure.
For example.
plot([1:10],’Color’,’r’,’DisplayName’,’This one’);hold on;
plot([1:2:10],’Color’,’b’,’DisplayName’,’This two’);
plot([1:3:10],’Color’,’k’,’DisplayName’,’This three’);
Lets say I want to display only Last two or First two or first and last legend titles with proper colors.
Could anyone suggest plz.Dear All,
I just want to show the partial part of my legend in Figure.
For example.
plot([1:10],’Color’,’r’,’DisplayName’,’This one’);hold on;
plot([1:2:10],’Color’,’b’,’DisplayName’,’This two’);
plot([1:3:10],’Color’,’k’,’DisplayName’,’This three’);
Lets say I want to display only Last two or First two or first and last legend titles with proper colors.
Could anyone suggest plz. Dear All,
I just want to show the partial part of my legend in Figure.
For example.
plot([1:10],’Color’,’r’,’DisplayName’,’This one’);hold on;
plot([1:2:10],’Color’,’b’,’DisplayName’,’This two’);
plot([1:3:10],’Color’,’k’,’DisplayName’,’This three’);
Lets say I want to display only Last two or First two or first and last legend titles with proper colors.
Could anyone suggest plz. figure, legend, customize legend. MATLAB Answers — New Questions
real-time ROI and scatter plot in app designer
So I am working on an app using app designer. The app has one UIAxes and is updated in real time with a scatter plot, based on a timer function. I also have a button that when clicked, enables me to place a rectangle ROI on the UIAxes. Those two things by themselves work nicely. However, the problem is when I create the ROI by clicking on the button and right after that enabling the real time scatter plot updates, it removes my ROI from the UIAxes. I need to have this ROI enabled on the same UIAxes as the real time scatter plot updates, for further processing. How can I fix this or do this, without app designer removing the ROI as soon as I start the scatter plot updates?
here is a video that shows the problem https://streamable.com/ry6gpv
so as you can see in the video, there are two scenarios that dont work, i would be happy if either worked, but both would be perfect scenario:
1) i start the real time scatter plot and then try to draw a roi on top, it doesnt let me or show it at all
2) i draw the roi first and then start the real time scatter plot, but it then removes my roi
so it seems no matter what the case, i cant have both at the same time. how to fix that?
I simplified the app to the bare bones, so it highlights the main problem that I need fixed, as described above. I attached the text version of the full app designer code as well as the app designer project file.
Thanks!So I am working on an app using app designer. The app has one UIAxes and is updated in real time with a scatter plot, based on a timer function. I also have a button that when clicked, enables me to place a rectangle ROI on the UIAxes. Those two things by themselves work nicely. However, the problem is when I create the ROI by clicking on the button and right after that enabling the real time scatter plot updates, it removes my ROI from the UIAxes. I need to have this ROI enabled on the same UIAxes as the real time scatter plot updates, for further processing. How can I fix this or do this, without app designer removing the ROI as soon as I start the scatter plot updates?
here is a video that shows the problem https://streamable.com/ry6gpv
so as you can see in the video, there are two scenarios that dont work, i would be happy if either worked, but both would be perfect scenario:
1) i start the real time scatter plot and then try to draw a roi on top, it doesnt let me or show it at all
2) i draw the roi first and then start the real time scatter plot, but it then removes my roi
so it seems no matter what the case, i cant have both at the same time. how to fix that?
I simplified the app to the bare bones, so it highlights the main problem that I need fixed, as described above. I attached the text version of the full app designer code as well as the app designer project file.
Thanks! So I am working on an app using app designer. The app has one UIAxes and is updated in real time with a scatter plot, based on a timer function. I also have a button that when clicked, enables me to place a rectangle ROI on the UIAxes. Those two things by themselves work nicely. However, the problem is when I create the ROI by clicking on the button and right after that enabling the real time scatter plot updates, it removes my ROI from the UIAxes. I need to have this ROI enabled on the same UIAxes as the real time scatter plot updates, for further processing. How can I fix this or do this, without app designer removing the ROI as soon as I start the scatter plot updates?
here is a video that shows the problem https://streamable.com/ry6gpv
so as you can see in the video, there are two scenarios that dont work, i would be happy if either worked, but both would be perfect scenario:
1) i start the real time scatter plot and then try to draw a roi on top, it doesnt let me or show it at all
2) i draw the roi first and then start the real time scatter plot, but it then removes my roi
so it seems no matter what the case, i cant have both at the same time. how to fix that?
I simplified the app to the bare bones, so it highlights the main problem that I need fixed, as described above. I attached the text version of the full app designer code as well as the app designer project file.
Thanks! app designer, roi, scatter plot, real time MATLAB Answers — New Questions
Nothing happens when clicking Upload file to library in Live response session in Edge for Business
Hello all!
I’ve been unable to upload any files to the Live response repository using the web-interface for around a week now in Edge browser. When I establish a Live response session and click the … menu and select Upload file to library absolutely nothing happens. No file selection dialogue modal or anything.
My Edge for Business is v125.0.2535.79 (Official build) (64-bit)
When using Chrome v125.0.6422.142 (Official Build) (64-bit) everything works perfectly and the pane with file selection etc slides out from the right side.
Anyone still able to use Edge? Did you tweak something specific? I’ve already added security.microsoft.com to trusted sites and allowed cookies etc.
Hello all! I’ve been unable to upload any files to the Live response repository using the web-interface for around a week now in Edge browser. When I establish a Live response session and click the … menu and select Upload file to library absolutely nothing happens. No file selection dialogue modal or anything.My Edge for Business is v125.0.2535.79 (Official build) (64-bit) When using Chrome v125.0.6422.142 (Official Build) (64-bit) everything works perfectly and the pane with file selection etc slides out from the right side. Anyone still able to use Edge? Did you tweak something specific? I’ve already added security.microsoft.com to trusted sites and allowed cookies etc. Kind regards from Denmark,Tor Read More
Windows Defender & “Marie” user
Good day!
I’m having trouble with my laptop. I have seen posts with regards to Windows Defender however, none of it works. I reset my laptop to factory but I kept on facing the same issue.
I can open my Windows Defender however it was just plain black. It won’t load. I tried to check on the programs installed but it wasn’t there. When I tried to download some files on Microsoft Edge, I can’t find the download on the directory. I tried changing the download destination but again, the file is nowhere to be found. If I try to open the file from the download tray of MS Edge some pop-up window telling me that I need authorization or some kind of like that to open the file.
I also found these type of folders on my User:
defaultuser0
Marie
Public File
Please help me, and tell me what to do.
Good day! I’m having trouble with my laptop. I have seen posts with regards to Windows Defender however, none of it works. I reset my laptop to factory but I kept on facing the same issue. I can open my Windows Defender however it was just plain black. It won’t load. I tried to check on the programs installed but it wasn’t there. When I tried to download some files on Microsoft Edge, I can’t find the download on the directory. I tried changing the download destination but again, the file is nowhere to be found. If I try to open the file from the download tray of MS Edge some pop-up window telling me that I need authorization or some kind of like that to open the file. I also found these type of folders on my User:defaultuser0MariePublic File Please help me, and tell me what to do. Read More
Can’t expand table
I have an xlsx file with multiple tabs. In one tab is a worksheet with (currently) 14385 rows. There is a table (Table2) in the worksheet that currently ends at row 14311. I’d like to expand the table to encompass those rows (and more) but when I Resize the table I get an error reporting that “This operation is attempting to change a filtered range on your worksheet and cannot be completed”. However, I have no filters defined and cannot find anything that could be construed as a filter. How can I get this table re-sized?
By the way, a Microsoft “tech support” articles says that expanding a table is as simple as typing in a cell in the next row following the end of the table. Clearly, this doesn’t work that way, given my description above.
I have an xlsx file with multiple tabs. In one tab is a worksheet with (currently) 14385 rows. There is a table (Table2) in the worksheet that currently ends at row 14311. I’d like to expand the table to encompass those rows (and more) but when I Resize the table I get an error reporting that “This operation is attempting to change a filtered range on your worksheet and cannot be completed”. However, I have no filters defined and cannot find anything that could be construed as a filter. How can I get this table re-sized? By the way, a Microsoft “tech support” articles says that expanding a table is as simple as typing in a cell in the next row following the end of the table. Clearly, this doesn’t work that way, given my description above. Read More
Matlab can’t readtable on Mac, please help me.
Post Content Post Content help, readable MATLAB Answers — New Questions
Simulink crashes when adding a breakpoint to a MATLAB function block
A Simulink model I have will hard crash Simulink and MATLAB when I insert a breakpoint in a MATLAB function block. However, this only happens when I run the simulation in Normal mode. When I run in Accelerator mode, the break point works fine. The model didn’t always have this problem, but I’m not sure what caused it. Unfortunately, it takes a long time to crash, reopen, and reload the large model and I haven’t been able to isolate the cause.
Is there a general reason why breakpoints in MATLAB function blocks would crash Simulink in Normal mode, but not inAccelerator? I need to run the model in Normal mode for some other features I’d like to use.A Simulink model I have will hard crash Simulink and MATLAB when I insert a breakpoint in a MATLAB function block. However, this only happens when I run the simulation in Normal mode. When I run in Accelerator mode, the break point works fine. The model didn’t always have this problem, but I’m not sure what caused it. Unfortunately, it takes a long time to crash, reopen, and reload the large model and I haven’t been able to isolate the cause.
Is there a general reason why breakpoints in MATLAB function blocks would crash Simulink in Normal mode, but not inAccelerator? I need to run the model in Normal mode for some other features I’d like to use. A Simulink model I have will hard crash Simulink and MATLAB when I insert a breakpoint in a MATLAB function block. However, this only happens when I run the simulation in Normal mode. When I run in Accelerator mode, the break point works fine. The model didn’t always have this problem, but I’m not sure what caused it. Unfortunately, it takes a long time to crash, reopen, and reload the large model and I haven’t been able to isolate the cause.
Is there a general reason why breakpoints in MATLAB function blocks would crash Simulink in Normal mode, but not inAccelerator? I need to run the model in Normal mode for some other features I’d like to use. simulink, matlab function block, crash, accelerator MATLAB Answers — New Questions
How do i increase the no of FaceLabels because i cannot find the FaceLabel for the desired part in my model. Provide any suggestions to it.
So, i was analysing an object i.e car wheel rim and some of the part of the object or the model doesnt have facelabels when in try to look into it. I tried usual way but some parts remain unlabeled. is it beacuse the model is too complex to label all the parts ? So, please provide any suggestions to increase the facelabels on the modelSo, i was analysing an object i.e car wheel rim and some of the part of the object or the model doesnt have facelabels when in try to look into it. I tried usual way but some parts remain unlabeled. is it beacuse the model is too complex to label all the parts ? So, please provide any suggestions to increase the facelabels on the model So, i was analysing an object i.e car wheel rim and some of the part of the object or the model doesnt have facelabels when in try to look into it. I tried usual way but some parts remain unlabeled. is it beacuse the model is too complex to label all the parts ? So, please provide any suggestions to increase the facelabels on the model matlabpde, matlab, pde, analysis MATLAB Answers — New Questions