Category: News
how to time shift a set of data?
I have a plot of 12 cell voltages like this. There is also current here as yyaxis right, but ignore that. I forgot to remove the current, its not needed.
As you can see its unbalanced, 11 values are similar and 12th is off. The idea to solve this to time shift the 11 values to a common starting point. So make all values start from 3.6.
you can see the black lines i drew. I am trying to plot just those values. But the issue is when reduce the 11 cells starting from 3.6 then the size of those 11 values is different from the 12th value. The 12th cell size would be larger and i cant have that, because this is a 2d array and all the columns should be of same size. So i extrapolate using time of the 12th cell and time of other 11 cells, then i get value of 11 cells to have many 3.6V. The plot will be like this.
The extrapolate function i wrote is this:
11CellVoltExtrapolated = interp1(11CellsTime,11CellVolt,Timeof12thCell,’linear’, ‘extrap’);
So this is the problem. Also I cannot have nan values, because i need this array for other functions which cannot have nan values. How can i do this. Thank you.I have a plot of 12 cell voltages like this. There is also current here as yyaxis right, but ignore that. I forgot to remove the current, its not needed.
As you can see its unbalanced, 11 values are similar and 12th is off. The idea to solve this to time shift the 11 values to a common starting point. So make all values start from 3.6.
you can see the black lines i drew. I am trying to plot just those values. But the issue is when reduce the 11 cells starting from 3.6 then the size of those 11 values is different from the 12th value. The 12th cell size would be larger and i cant have that, because this is a 2d array and all the columns should be of same size. So i extrapolate using time of the 12th cell and time of other 11 cells, then i get value of 11 cells to have many 3.6V. The plot will be like this.
The extrapolate function i wrote is this:
11CellVoltExtrapolated = interp1(11CellsTime,11CellVolt,Timeof12thCell,’linear’, ‘extrap’);
So this is the problem. Also I cannot have nan values, because i need this array for other functions which cannot have nan values. How can i do this. Thank you. I have a plot of 12 cell voltages like this. There is also current here as yyaxis right, but ignore that. I forgot to remove the current, its not needed.
As you can see its unbalanced, 11 values are similar and 12th is off. The idea to solve this to time shift the 11 values to a common starting point. So make all values start from 3.6.
you can see the black lines i drew. I am trying to plot just those values. But the issue is when reduce the 11 cells starting from 3.6 then the size of those 11 values is different from the 12th value. The 12th cell size would be larger and i cant have that, because this is a 2d array and all the columns should be of same size. So i extrapolate using time of the 12th cell and time of other 11 cells, then i get value of 11 cells to have many 3.6V. The plot will be like this.
The extrapolate function i wrote is this:
11CellVoltExtrapolated = interp1(11CellsTime,11CellVolt,Timeof12thCell,’linear’, ‘extrap’);
So this is the problem. Also I cannot have nan values, because i need this array for other functions which cannot have nan values. How can i do this. Thank you. matlab MATLAB Answers — New Questions
Failed to load ‘xpclib’ library referenced by ‘block_name’
Hello,
I have an old R2011b Simulink model that I tried opening in R2025b. Upon opening the model in R2025b, I see the following:
My "CAN Setup" block in Simulink is highlighted in red and says: "xpclib" not found. The top yellow banner says: "This model contains Simulink Real-Time features that are incompatible with the current release. Open Upgrade Advisor and select "Check model for upgradable Simulink Real-Time features". Upon running the Upgrade Advisor, I get the following error:
Error occurred during model compile.
Failed to load library ‘xpclib’ referenced by ‘CAN Setup’.
Any idea on how to solve this particular problem? My understanding is that ‘xpclib’ (xPC Target) no longer exists in R2025b because it was replaced by Simulink Real-Time. I just don’t know how to convert my block to the newer library.
Thank you!Hello,
I have an old R2011b Simulink model that I tried opening in R2025b. Upon opening the model in R2025b, I see the following:
My "CAN Setup" block in Simulink is highlighted in red and says: "xpclib" not found. The top yellow banner says: "This model contains Simulink Real-Time features that are incompatible with the current release. Open Upgrade Advisor and select "Check model for upgradable Simulink Real-Time features". Upon running the Upgrade Advisor, I get the following error:
Error occurred during model compile.
Failed to load library ‘xpclib’ referenced by ‘CAN Setup’.
Any idea on how to solve this particular problem? My understanding is that ‘xpclib’ (xPC Target) no longer exists in R2025b because it was replaced by Simulink Real-Time. I just don’t know how to convert my block to the newer library.
Thank you! Hello,
I have an old R2011b Simulink model that I tried opening in R2025b. Upon opening the model in R2025b, I see the following:
My "CAN Setup" block in Simulink is highlighted in red and says: "xpclib" not found. The top yellow banner says: "This model contains Simulink Real-Time features that are incompatible with the current release. Open Upgrade Advisor and select "Check model for upgradable Simulink Real-Time features". Upon running the Upgrade Advisor, I get the following error:
Error occurred during model compile.
Failed to load library ‘xpclib’ referenced by ‘CAN Setup’.
Any idea on how to solve this particular problem? My understanding is that ‘xpclib’ (xPC Target) no longer exists in R2025b because it was replaced by Simulink Real-Time. I just don’t know how to convert my block to the newer library.
Thank you! xpc target, simulink real-time, conversion MATLAB Answers — New Questions
January 2026 Change for How Outlook Extracts Events from Email
Events from Email Only Extracted When Schema is Correct
The announcement in MC1158908 (24 September 2025) that the Outlook feature that creates events from email is going to insist that event providers must use schema.org templates to format event information from 31 January 2026 is not unexpected. Something had to change because the current implementation doesn’t work in many situations. Some events turn up in calendars, but many do not. Something had to change to restore consistency and dependability to the feature.
The Root of the Problem
Microsoft is not the root of the problem. My personal experience is that providers are radically inconsistent with respect to the information that they include about events like airline reservations and car hire bookings. The problem has become worse recently, possibly because providers treat notification emails as an extension of their corporate branding program and therefore include a bunch of information that makes the emails prettier without making sure that the essential properties for an event are available.
Microsoft says that the current method used to extract event information from email is fragile and often fails. This leads to user dissatisfaction and many support calls. Microsoft believes that their current implementation cannot be enhanced to deal with the many different ways that event providers publish information about events. They want event providers to use a standard method, and that’s where we are heading.
The Outlook Solution for Events from Email
Schema.org is an industry consortium that publishes a reference website for structured information. According to Wikipedia, the main objective of Schema.org is to standardize HTML tags that can be used to create rich results. The solution that Outlook will introduce is to insist that the HTML information about events contained in email generated by providers like airlines, car hire firms, and so on use an appropriate schema template.
For example, the flight reservation schema defines properties like provider (the airline) and reservationId (the six-character reservation identifier assigned by the airline) together with other properties like programMembershipUsed (airline frequent flyer identifier). Populating these properties properly allows Outlook to extract the details of a flight and create a calendar event with that information. Figure 1 shows an event created from details sent by Ryanair in a flight reservation email.

Up to Event Providers to Change
Apart from deciding if they want to configure the settings to instruct Outlook how to extract events from email using either OWA or the new Outlook (but not Outlook classic or Outlook mobile), users don’t have any control over event processing. A background assistant performs the processing to check inbound email and extract event details if present. It is the background assistant that will change from January 31, 2026, and refuse to process events unless the emails containing event information comply with a Schema.org template.
Whether event providers update their email to comply with the change is entirely in their hands. I’m sure that Microsoft will do some outreach with major event providers to ask those companies to support the change and they have an email address (txppro@microsoft.com) for providers who need help to upgrade to support schema.org. However, the nature of this kind of transition is that it might take some time (or even a long time) for a provider to upgrade their systems to generate event notifications in the right format.
Microsoft suggests that customers work with event providers that they use to ask those companies to comply. I guess it might be possible for a customer to ask their major suppliers (like a preferred airline) to support the change, but again, don’t expect a change to happen overnight.
Some Disruption Likely
Given the dependency on event providers to come on board and support the new way to publish event notifications, some disruption is likely to occur, and users might find that events that previously appeared automatically in their calendar no longer show up. That’s regrettable but moving to a consistent approach is a good idea and will benefit everyone in the long run. At least, that’s the plan.
Support the work of the Office 365 for IT Pros team by subscribing to the Office 365 for IT Pros eBook. Your support pays for the time we need to track, analyze, and document the changing world of Microsoft 365 and Office 365. Only humans contribute to our work!
Desktop panels can no longer be tabbed? (2025x)
I recently made the switch from 2024b to 2025b. I have always run with the ‘Workspace’ and ‘Files’ panels tabbed together. It appears that this is no longer possible. Am I missing something? Dragging one panel over the other just swaps places. Seems like a step backwards to remove this functionality while trumpeting better ‘customization’.I recently made the switch from 2024b to 2025b. I have always run with the ‘Workspace’ and ‘Files’ panels tabbed together. It appears that this is no longer possible. Am I missing something? Dragging one panel over the other just swaps places. Seems like a step backwards to remove this functionality while trumpeting better ‘customization’. I recently made the switch from 2024b to 2025b. I have always run with the ‘Workspace’ and ‘Files’ panels tabbed together. It appears that this is no longer possible. Am I missing something? Dragging one panel over the other just swaps places. Seems like a step backwards to remove this functionality while trumpeting better ‘customization’. desktop layout, panel configuration, ui MATLAB Answers — New Questions
In what way is the new R2021b Editor UI “improved”?
I find the "new and improved" Editor UI in R2021b to be extremely irritating, in no way better than R2021a. How did this get past SQA? Following is a list of miscellaneous nuisances that I’ve run into:
The text search/replace box obscures the top text line in my file, which is a problem if the search text is obscured.
It isn’t obvious how to revert to previous search strings in the search box.
I want to rename a variable in my m-file, and before doing so I want to ensure that the new name, "num_subset", does not already exist in the file. However, there are many occurrences of the substring "num" in my file, and as soon as I start typing in the search box it jumps to the next occurrence of "num" before I’ve finished typing. So now I have to go back and find the place where I was working.
In an auto-indented code section such as a while … end block, if you insert more than one consecutive blank line in the code the auto-indenting is lost on all but one of the blank lines.
In an auto-indented block of code, if you put the cursor between two characters and press ENTER, the Editor will put in a line break with the new line indented, as expected. However, if you select (click-and-drag over) a character and press ENTER, the Editor will delete the character and replace it with a line break, as expected, but the new line will not be auto-indented.
After doing a text search you can do subsequent searches for the same text string using F3 without re-opening the search box. However, if you switch to another file (in the tabbed Editor window) F3 does not work; you have to re-open the search box. It worked in R2021a.
The search always wraps, but I usually don’t want it to wrap. There appears to be no way to disable wrapping. In R2020a the search box had an option for enabling/disabling wrapping.
The behavior of Smart Indent has changed in 2020b. In 2020a all lines in a code block would be auto-indented. In 2020b the indenting of all blank lines is removed. So if you start typing in a blank line you have to either manually put in leading tabs or re-select Smart Indent.I find the "new and improved" Editor UI in R2021b to be extremely irritating, in no way better than R2021a. How did this get past SQA? Following is a list of miscellaneous nuisances that I’ve run into:
The text search/replace box obscures the top text line in my file, which is a problem if the search text is obscured.
It isn’t obvious how to revert to previous search strings in the search box.
I want to rename a variable in my m-file, and before doing so I want to ensure that the new name, "num_subset", does not already exist in the file. However, there are many occurrences of the substring "num" in my file, and as soon as I start typing in the search box it jumps to the next occurrence of "num" before I’ve finished typing. So now I have to go back and find the place where I was working.
In an auto-indented code section such as a while … end block, if you insert more than one consecutive blank line in the code the auto-indenting is lost on all but one of the blank lines.
In an auto-indented block of code, if you put the cursor between two characters and press ENTER, the Editor will put in a line break with the new line indented, as expected. However, if you select (click-and-drag over) a character and press ENTER, the Editor will delete the character and replace it with a line break, as expected, but the new line will not be auto-indented.
After doing a text search you can do subsequent searches for the same text string using F3 without re-opening the search box. However, if you switch to another file (in the tabbed Editor window) F3 does not work; you have to re-open the search box. It worked in R2021a.
The search always wraps, but I usually don’t want it to wrap. There appears to be no way to disable wrapping. In R2020a the search box had an option for enabling/disabling wrapping.
The behavior of Smart Indent has changed in 2020b. In 2020a all lines in a code block would be auto-indented. In 2020b the indenting of all blank lines is removed. So if you start typing in a blank line you have to either manually put in leading tabs or re-select Smart Indent. I find the "new and improved" Editor UI in R2021b to be extremely irritating, in no way better than R2021a. How did this get past SQA? Following is a list of miscellaneous nuisances that I’ve run into:
The text search/replace box obscures the top text line in my file, which is a problem if the search text is obscured.
It isn’t obvious how to revert to previous search strings in the search box.
I want to rename a variable in my m-file, and before doing so I want to ensure that the new name, "num_subset", does not already exist in the file. However, there are many occurrences of the substring "num" in my file, and as soon as I start typing in the search box it jumps to the next occurrence of "num" before I’ve finished typing. So now I have to go back and find the place where I was working.
In an auto-indented code section such as a while … end block, if you insert more than one consecutive blank line in the code the auto-indenting is lost on all but one of the blank lines.
In an auto-indented block of code, if you put the cursor between two characters and press ENTER, the Editor will put in a line break with the new line indented, as expected. However, if you select (click-and-drag over) a character and press ENTER, the Editor will delete the character and replace it with a line break, as expected, but the new line will not be auto-indented.
After doing a text search you can do subsequent searches for the same text string using F3 without re-opening the search box. However, if you switch to another file (in the tabbed Editor window) F3 does not work; you have to re-open the search box. It worked in R2021a.
The search always wraps, but I usually don’t want it to wrap. There appears to be no way to disable wrapping. In R2020a the search box had an option for enabling/disabling wrapping.
The behavior of Smart Indent has changed in 2020b. In 2020a all lines in a code block would be auto-indented. In 2020b the indenting of all blank lines is removed. So if you start typing in a blank line you have to either manually put in leading tabs or re-select Smart Indent. r2021b, editor MATLAB Answers — New Questions
Where is the algebraic loop coming from?
Dear all,
I faced an issue with algebraic loop in simulink (see the model attached).
When I update the model it says "Algebraic loop error", even though there seem to be no algebraic loop at all.
The issue is resolved if I combine these two subsystems into a one.
Could you please explain where the algebraic loop is coming from?
Thank you!Dear all,
I faced an issue with algebraic loop in simulink (see the model attached).
When I update the model it says "Algebraic loop error", even though there seem to be no algebraic loop at all.
The issue is resolved if I combine these two subsystems into a one.
Could you please explain where the algebraic loop is coming from?
Thank you! Dear all,
I faced an issue with algebraic loop in simulink (see the model attached).
When I update the model it says "Algebraic loop error", even though there seem to be no algebraic loop at all.
The issue is resolved if I combine these two subsystems into a one.
Could you please explain where the algebraic loop is coming from?
Thank you! algebraic loop, simulink, model update MATLAB Answers — New Questions
How could i implement a specific torque-rpm engine characteristics?
For my diploma work, i decided to realistically implement a truck driveline, and that includes engine characteristics as well. My first general idea was using the generic engine block, but using tabulated torque data gives me no response, constant 0 torque output. Any help, or better ideas would be much appreciated. I suspect some kind of error in me setting the block itself up, something with the rpms, thresholds? I’ve tried countless variations, but nothing seemed to work.
Thank you all in forward.
CheersFor my diploma work, i decided to realistically implement a truck driveline, and that includes engine characteristics as well. My first general idea was using the generic engine block, but using tabulated torque data gives me no response, constant 0 torque output. Any help, or better ideas would be much appreciated. I suspect some kind of error in me setting the block itself up, something with the rpms, thresholds? I’ve tried countless variations, but nothing seemed to work.
Thank you all in forward.
Cheers For my diploma work, i decided to realistically implement a truck driveline, and that includes engine characteristics as well. My first general idea was using the generic engine block, but using tabulated torque data gives me no response, constant 0 torque output. Any help, or better ideas would be much appreciated. I suspect some kind of error in me setting the block itself up, something with the rpms, thresholds? I’ve tried countless variations, but nothing seemed to work.
Thank you all in forward.
Cheers simscape, driveline, generic engine, piston engine, semi truck engine MATLAB Answers — New Questions
Why contourf connect far apart points
I have a problem with the contour it connects far apart points and appear colored lines ( I already set ‘LineStyle’, ‘none’) that they shouldn’t how can I avoid this problem? My data are in a cell arrays and I use cell2mat to create matrices and then I do the contour If I do it from the cell arrays I don’t have this problem but is too slow and use all the memory so I don’t like this approach.I have a problem with the contour it connects far apart points and appear colored lines ( I already set ‘LineStyle’, ‘none’) that they shouldn’t how can I avoid this problem? My data are in a cell arrays and I use cell2mat to create matrices and then I do the contour If I do it from the cell arrays I don’t have this problem but is too slow and use all the memory so I don’t like this approach. I have a problem with the contour it connects far apart points and appear colored lines ( I already set ‘LineStyle’, ‘none’) that they shouldn’t how can I avoid this problem? My data are in a cell arrays and I use cell2mat to create matrices and then I do the contour If I do it from the cell arrays I don’t have this problem but is too slow and use all the memory so I don’t like this approach. contourf, far appart points MATLAB Answers — New Questions
Using the Enterprise Website Microsoft 365 Copilot Connector
Integrate External Information into Microsoft 365 Copilot Search Results
In July 2025, Microsoft released Microsoft 365 Copilot Search. On its own, Copilot Search is a great way to search SharePoint Online, OneDrive for Business, Teams, and Exchange for information available to the Graph. The more interesting aspect is the ability for tenants with Microsoft 365 Copilot licenses to integrate external sources of information into search. AS Microsoft said at the time:
“Copilot Search leverages Microsoft Graph and Microsoft 365 Copilot connectors to index content across Microsoft 365 and third-party apps. It interprets user context, natural language, behavioral signals, and organizational relationships to deliver highly personalized, context-aware answers to complex queries.”
A Gallery of Microsoft 365 Copilot Connectors
The Copilot section of the Microsoft 365 admin center includes a gallery of off-the-shelf Microsoft 365 Copilot Connectors (previously called Graph connectors). These connectors can be plugged into Copilot search by configuring them to external sources of the relevant type, like the Jira Cloud or ServiceNow (Figure 1). These are called prebuilt connectors (see the online documentation).

If a prebuilt connector isn’t available for your preferred source, you can develop a custom connector. For example, the People platform that Microsoft is building envisages information about people being ingested into the Graph through Microsoft 365 Copilot connectors.
Sometimes it’s hard to get your mind around whether a new feature will be valuable in your environment. If someone in your organization asked, “how can we exploit Microsoft 365 Connectors?”, my guess is that quite a few tenant administrators would struggle to come up with a cogent answer. I’d be in the same position, so decided to take a look at configuring a connector to see what happens.
Configuring the Enterprise Websites Connector
I chose to test the enterprise websites connector, which is designed to ingest material from company or public websites available on the internet. Configuring the enterprise website connector is simple. Essentially, all you need is the https URL for a website. When active, the connector crawls the target website to fetch and index content to include the material into Copilot searches. Given the superb information found in Office365itpros.com and Practical365.com, I decided to configure connectors for both sites. Figure 2 shows the configuration I used to fetch information from the Practical365.com website.

It takes some time for a connector to perform the initial crawl and bring information into Microsoft search. Eventually, the connector status will turn to Ready (Figure 3), and at that point you’ll know that the information retrieved from the website is available for searching.

Searching External Data with Microsoft 365 Copilot Search
Microsoft 365 Copilot Search responds to search requests with information from all the sources available to it. I searched for information about the Microsoft 365 licensing report script that I knew occurs in articles published on Office365itpros.com (here’s one) and was rewarded with an instant hit (Figure 4) with the source that Copilot Search retrieved the information from clearly indicated in the results. Even comments for posts are indexed and available.

Clicking the link brings the user directly to the source page on the website. It’s a very seamless experience.
Even better, if asked to summarize the results, Microsoft 365 Copilot integrates the information from the external websites along with the other Graph-based information available to it. In the summary shown in Figure 5, Copilot cites a source from the Practical365.com site and tags it as “ThirdParty,” meaning that the information comes from a non-standard Graph source.

Easy, Quick, Seamless
Being able to integrate external website content into Microsoft 365 Copilot Search is one of the best features I’ve seen Microsoft launch in the blizzard of AI-related functionality introduced since the Copilot launch in March 2023. Configuring the connector is quick and easy; crawling happens automatically (and a schedule for crawling can be set up); and the results are presented seamlessly alongside items from other Graph sources. It’s a great example of the power of bringing external data into the Graph and can certainly help answer the question of what to do with Microsoft 365 Graph connectors.
Best of all, this is an easy way to integrate information from trusted external web sites into Graph searches. Who wouldn’t want to integrate content from Office365ITPros.com and Practical365.com?
Insight like this doesn’t come easily. You’ve got to know the technology and understand how to look behind the scenes. Benefit from the knowledge and experience of the Office 365 for IT Pros team by subscribing to the best eBook covering Office 365 and the wider Microsoft 365 ecosystem.
How to dock/undock an image using matlab code instead of doing manually?
How to dock/undock an image using matlab code instead of doing manually?…can any one helpHow to dock/undock an image using matlab code instead of doing manually?…can any one help How to dock/undock an image using matlab code instead of doing manually?…can any one help image processing, image, image analysis, image acquisition MATLAB Answers — New Questions
Warning: An error occurred while drawing the scene: Error in json_scenetree: Could not find node in replaceChild
My matlab version is 2020(a).
It always calls the "Warning: An error occurred while drawing the scene: Error in json_scenetree: Could not find node in replaceChild" .
I had try the previous solution "opengl software" , but it didn’t work.
This is the code I complie.
Is the code have problem or matlab problem.
How can I deal with this problem?
clear all
close all
clc
ATT = 1;
DATE = datestr(now, 30);
mdl = ‘quarter_car’;
open_system(mdl)
agentblk = [mdl ‘/RL Agent’];
numObs = 5;
numAct = 2;
observationInfo = rlNumericSpec([numObs 1],’LowerLimit’,-inf*ones(numObs,1),’UpperLimit’,inf*ones(numObs,1));
observationInfo.Name = ‘observation’;
actionInfo = rlFiniteSetSpec({[0;0],[0;1]});
actionInfo.Name = ‘actor’;
env = rlSimulinkEnv(mdl,agentblk,observationInfo,actionInfo);
Ts = 0.01;
Tf = 10;
rng(0)
statePath = [
imageInputLayer([numObs 1 1],’Normalization’,’none’,’Name’,’observation’)
fullyConnectedLayer(50,’Name’,’CriticObsFC1′)
reluLayer(‘Name’,’CriticRelu1′)
fullyConnectedLayer(30,’Name’,’CriticObsFC2′)];
actionPath = [
imageInputLayer([numAct 1 1],’Normalization’,’none’,’Name’,’action’)
fullyConnectedLayer(30,’Name’,’CriticActFC1′)];
commonPath = [
additionLayer(2,’Name’,’add’)
reluLayer(‘Name’,’CriticCommonRelu’)
fullyConnectedLayer(1,’Name’,’output’)];
criticNetwork = layerGraph(statePath);
criticNetwork = addLayers(criticNetwork,actionPath);
criticNetwork = addLayers(criticNetwork,commonPath);
criticNetwork = connectLayers(criticNetwork,’CriticObsFC2′,’add/in1′);
criticNetwork = connectLayers(criticNetwork,’CriticActFC1′,’add/in2′);
criticOpts = rlRepresentationOptions(‘LearnRate’,0.001,’GradientThreshold’,1);
obsInfo = getObservationInfo(env);
actInfo = getActionInfo(env);
critic = rlQValueRepresentation(criticNetwork,obsInfo,actInfo,’Observation’,{‘observation’},’Action’,{‘action’},criticOpts);
agentOptions = rlDQNAgentOptions(…
‘SampleTime’,Ts,…
‘TargetSmoothFactor’,1e-3,…
‘ExperienceBufferLength’,1e6,…
‘UseDoubleDQN’,false,…
‘DiscountFactor’,0.5,…
‘MiniBatchSize’,64);
agentOpts.NoiseOptions.Variance = 0.5;
agentOpts.NoiseOptions.VarianceDecayRate = 1e-3;
agent = rlDQNAgent(critic,agentOptions);
maxepisodes = 2000;
maxsteps = ceil(Tf/Ts);
trainingOptions = rlTrainingOptions(…
‘MaxEpisodes’,maxepisodes,…
‘MaxStepsPerEpisode’,maxsteps,…
‘ScoreAveragingWindowLength’,5,…
‘Verbose’,false,…
‘Plots’,’training-progress’,…
‘StopTrainingCriteria’,’AverageReward’,…
‘StopTrainingValue’, 25000);
trainingStats = train(agent,env,trainingOptions);
simOptions = rlSimulationOptions(‘MaxSteps’, maxsteps);
experience = sim(env,agent,simOptions);My matlab version is 2020(a).
It always calls the "Warning: An error occurred while drawing the scene: Error in json_scenetree: Could not find node in replaceChild" .
I had try the previous solution "opengl software" , but it didn’t work.
This is the code I complie.
Is the code have problem or matlab problem.
How can I deal with this problem?
clear all
close all
clc
ATT = 1;
DATE = datestr(now, 30);
mdl = ‘quarter_car’;
open_system(mdl)
agentblk = [mdl ‘/RL Agent’];
numObs = 5;
numAct = 2;
observationInfo = rlNumericSpec([numObs 1],’LowerLimit’,-inf*ones(numObs,1),’UpperLimit’,inf*ones(numObs,1));
observationInfo.Name = ‘observation’;
actionInfo = rlFiniteSetSpec({[0;0],[0;1]});
actionInfo.Name = ‘actor’;
env = rlSimulinkEnv(mdl,agentblk,observationInfo,actionInfo);
Ts = 0.01;
Tf = 10;
rng(0)
statePath = [
imageInputLayer([numObs 1 1],’Normalization’,’none’,’Name’,’observation’)
fullyConnectedLayer(50,’Name’,’CriticObsFC1′)
reluLayer(‘Name’,’CriticRelu1′)
fullyConnectedLayer(30,’Name’,’CriticObsFC2′)];
actionPath = [
imageInputLayer([numAct 1 1],’Normalization’,’none’,’Name’,’action’)
fullyConnectedLayer(30,’Name’,’CriticActFC1′)];
commonPath = [
additionLayer(2,’Name’,’add’)
reluLayer(‘Name’,’CriticCommonRelu’)
fullyConnectedLayer(1,’Name’,’output’)];
criticNetwork = layerGraph(statePath);
criticNetwork = addLayers(criticNetwork,actionPath);
criticNetwork = addLayers(criticNetwork,commonPath);
criticNetwork = connectLayers(criticNetwork,’CriticObsFC2′,’add/in1′);
criticNetwork = connectLayers(criticNetwork,’CriticActFC1′,’add/in2′);
criticOpts = rlRepresentationOptions(‘LearnRate’,0.001,’GradientThreshold’,1);
obsInfo = getObservationInfo(env);
actInfo = getActionInfo(env);
critic = rlQValueRepresentation(criticNetwork,obsInfo,actInfo,’Observation’,{‘observation’},’Action’,{‘action’},criticOpts);
agentOptions = rlDQNAgentOptions(…
‘SampleTime’,Ts,…
‘TargetSmoothFactor’,1e-3,…
‘ExperienceBufferLength’,1e6,…
‘UseDoubleDQN’,false,…
‘DiscountFactor’,0.5,…
‘MiniBatchSize’,64);
agentOpts.NoiseOptions.Variance = 0.5;
agentOpts.NoiseOptions.VarianceDecayRate = 1e-3;
agent = rlDQNAgent(critic,agentOptions);
maxepisodes = 2000;
maxsteps = ceil(Tf/Ts);
trainingOptions = rlTrainingOptions(…
‘MaxEpisodes’,maxepisodes,…
‘MaxStepsPerEpisode’,maxsteps,…
‘ScoreAveragingWindowLength’,5,…
‘Verbose’,false,…
‘Plots’,’training-progress’,…
‘StopTrainingCriteria’,’AverageReward’,…
‘StopTrainingValue’, 25000);
trainingStats = train(agent,env,trainingOptions);
simOptions = rlSimulationOptions(‘MaxSteps’, maxsteps);
experience = sim(env,agent,simOptions); My matlab version is 2020(a).
It always calls the "Warning: An error occurred while drawing the scene: Error in json_scenetree: Could not find node in replaceChild" .
I had try the previous solution "opengl software" , but it didn’t work.
This is the code I complie.
Is the code have problem or matlab problem.
How can I deal with this problem?
clear all
close all
clc
ATT = 1;
DATE = datestr(now, 30);
mdl = ‘quarter_car’;
open_system(mdl)
agentblk = [mdl ‘/RL Agent’];
numObs = 5;
numAct = 2;
observationInfo = rlNumericSpec([numObs 1],’LowerLimit’,-inf*ones(numObs,1),’UpperLimit’,inf*ones(numObs,1));
observationInfo.Name = ‘observation’;
actionInfo = rlFiniteSetSpec({[0;0],[0;1]});
actionInfo.Name = ‘actor’;
env = rlSimulinkEnv(mdl,agentblk,observationInfo,actionInfo);
Ts = 0.01;
Tf = 10;
rng(0)
statePath = [
imageInputLayer([numObs 1 1],’Normalization’,’none’,’Name’,’observation’)
fullyConnectedLayer(50,’Name’,’CriticObsFC1′)
reluLayer(‘Name’,’CriticRelu1′)
fullyConnectedLayer(30,’Name’,’CriticObsFC2′)];
actionPath = [
imageInputLayer([numAct 1 1],’Normalization’,’none’,’Name’,’action’)
fullyConnectedLayer(30,’Name’,’CriticActFC1′)];
commonPath = [
additionLayer(2,’Name’,’add’)
reluLayer(‘Name’,’CriticCommonRelu’)
fullyConnectedLayer(1,’Name’,’output’)];
criticNetwork = layerGraph(statePath);
criticNetwork = addLayers(criticNetwork,actionPath);
criticNetwork = addLayers(criticNetwork,commonPath);
criticNetwork = connectLayers(criticNetwork,’CriticObsFC2′,’add/in1′);
criticNetwork = connectLayers(criticNetwork,’CriticActFC1′,’add/in2′);
criticOpts = rlRepresentationOptions(‘LearnRate’,0.001,’GradientThreshold’,1);
obsInfo = getObservationInfo(env);
actInfo = getActionInfo(env);
critic = rlQValueRepresentation(criticNetwork,obsInfo,actInfo,’Observation’,{‘observation’},’Action’,{‘action’},criticOpts);
agentOptions = rlDQNAgentOptions(…
‘SampleTime’,Ts,…
‘TargetSmoothFactor’,1e-3,…
‘ExperienceBufferLength’,1e6,…
‘UseDoubleDQN’,false,…
‘DiscountFactor’,0.5,…
‘MiniBatchSize’,64);
agentOpts.NoiseOptions.Variance = 0.5;
agentOpts.NoiseOptions.VarianceDecayRate = 1e-3;
agent = rlDQNAgent(critic,agentOptions);
maxepisodes = 2000;
maxsteps = ceil(Tf/Ts);
trainingOptions = rlTrainingOptions(…
‘MaxEpisodes’,maxepisodes,…
‘MaxStepsPerEpisode’,maxsteps,…
‘ScoreAveragingWindowLength’,5,…
‘Verbose’,false,…
‘Plots’,’training-progress’,…
‘StopTrainingCriteria’,’AverageReward’,…
‘StopTrainingValue’, 25000);
trainingStats = train(agent,env,trainingOptions);
simOptions = rlSimulationOptions(‘MaxSteps’, maxsteps);
experience = sim(env,agent,simOptions); matlab warning reinforcement learning MATLAB Answers — New Questions
why does set(gca) not working
I am trying to set the axis label’s font size. Here is my code
%% This section of code plots the k-means cost as a function of the number
% of iterations
% Count the number of iterations.
figure;
x = 1:max_iter; % this is the x axis
grid on;
set(gca,’fontsize’,FONT_SIZE) % THIS IS WHEN I TRIED TO USE GCA BUT IT DOES NOT WORK
plot(x,cost_iteration,’bo-‘); % plot the cost per iteration
title("Graph of K-means Cost Per Iteration", ‘Fontsize’,FONT_SIZE);
xlabel("iteration", ‘Fontsize’,FONT_SIZE);
ylabel("cost", ‘Fontsize’,FONT_SIZE);
axis normal;
I tried to use set to make the font size of gca work, but it does not work. and here is what I print out.
please helpI am trying to set the axis label’s font size. Here is my code
%% This section of code plots the k-means cost as a function of the number
% of iterations
% Count the number of iterations.
figure;
x = 1:max_iter; % this is the x axis
grid on;
set(gca,’fontsize’,FONT_SIZE) % THIS IS WHEN I TRIED TO USE GCA BUT IT DOES NOT WORK
plot(x,cost_iteration,’bo-‘); % plot the cost per iteration
title("Graph of K-means Cost Per Iteration", ‘Fontsize’,FONT_SIZE);
xlabel("iteration", ‘Fontsize’,FONT_SIZE);
ylabel("cost", ‘Fontsize’,FONT_SIZE);
axis normal;
I tried to use set to make the font size of gca work, but it does not work. and here is what I print out.
please help I am trying to set the axis label’s font size. Here is my code
%% This section of code plots the k-means cost as a function of the number
% of iterations
% Count the number of iterations.
figure;
x = 1:max_iter; % this is the x axis
grid on;
set(gca,’fontsize’,FONT_SIZE) % THIS IS WHEN I TRIED TO USE GCA BUT IT DOES NOT WORK
plot(x,cost_iteration,’bo-‘); % plot the cost per iteration
title("Graph of K-means Cost Per Iteration", ‘Fontsize’,FONT_SIZE);
xlabel("iteration", ‘Fontsize’,FONT_SIZE);
ylabel("cost", ‘Fontsize’,FONT_SIZE);
axis normal;
I tried to use set to make the font size of gca work, but it does not work. and here is what I print out.
please help set, plot MATLAB Answers — New Questions
Why do i get a figure window that is completely blank
Post Content Post Content plot table MATLAB Answers — New Questions
How can I interface MATLAB with Azure Digital Twins (DTDL models) to exchange telemetry and parameters for dynamic simulation and control
I am working on a project where I want to use MATLAB/Simulink to simulate the dynamic behavior of a physical process (e.g., a heat exchanger) and run a feedback control loop.
Since DTDL models in Azure Digital Twins (ADT) cannot perform calculations, I want MATLAB to:
Read parameters from the digital twin (e.g., temperature from a transmitter twin, setpoint from an operator twin).
Run the control simulation in MATLAB/Simulink (e.g., PID control to calculate valve position and outlet temperature).
Write telemetry updates back to the Azure Digital Twin in JSON format so the twin always reflects the updated system behavior.
I would like to know:
What is the best way to connect MATLAB with Azure ADT?
Can I use webread and webwrite in MATLAB to call ADT REST APIs for reading/writing telemetry?
Are there any example codes or workflows that show how to structure this interface?
How do I authenticate MATLAB with Azure (e.g., using tokens for the ADT REST API)?I am working on a project where I want to use MATLAB/Simulink to simulate the dynamic behavior of a physical process (e.g., a heat exchanger) and run a feedback control loop.
Since DTDL models in Azure Digital Twins (ADT) cannot perform calculations, I want MATLAB to:
Read parameters from the digital twin (e.g., temperature from a transmitter twin, setpoint from an operator twin).
Run the control simulation in MATLAB/Simulink (e.g., PID control to calculate valve position and outlet temperature).
Write telemetry updates back to the Azure Digital Twin in JSON format so the twin always reflects the updated system behavior.
I would like to know:
What is the best way to connect MATLAB with Azure ADT?
Can I use webread and webwrite in MATLAB to call ADT REST APIs for reading/writing telemetry?
Are there any example codes or workflows that show how to structure this interface?
How do I authenticate MATLAB with Azure (e.g., using tokens for the ADT REST API)? I am working on a project where I want to use MATLAB/Simulink to simulate the dynamic behavior of a physical process (e.g., a heat exchanger) and run a feedback control loop.
Since DTDL models in Azure Digital Twins (ADT) cannot perform calculations, I want MATLAB to:
Read parameters from the digital twin (e.g., temperature from a transmitter twin, setpoint from an operator twin).
Run the control simulation in MATLAB/Simulink (e.g., PID control to calculate valve position and outlet temperature).
Write telemetry updates back to the Azure Digital Twin in JSON format so the twin always reflects the updated system behavior.
I would like to know:
What is the best way to connect MATLAB with Azure ADT?
Can I use webread and webwrite in MATLAB to call ADT REST APIs for reading/writing telemetry?
Are there any example codes or workflows that show how to structure this interface?
How do I authenticate MATLAB with Azure (e.g., using tokens for the ADT REST API)? control, digital twin MATLAB Answers — New Questions
How to compare two measurement datas from 2 different devices?
Hallo,
I have two different csv measurements(xyz) from 2 different devices. One is a device doing spiral scanning and other is an interferometer. Since both of the devices will give different xyz. I am scanning the same workpiece in both devices. In order to do better comparison, i believe i need xyz almost close to each other for the devices,so how can i do it? Is the interpolation over common grid (x,y) works or is there any other better options?Hallo,
I have two different csv measurements(xyz) from 2 different devices. One is a device doing spiral scanning and other is an interferometer. Since both of the devices will give different xyz. I am scanning the same workpiece in both devices. In order to do better comparison, i believe i need xyz almost close to each other for the devices,so how can i do it? Is the interpolation over common grid (x,y) works or is there any other better options? Hallo,
I have two different csv measurements(xyz) from 2 different devices. One is a device doing spiral scanning and other is an interferometer. Since both of the devices will give different xyz. I am scanning the same workpiece in both devices. In order to do better comparison, i believe i need xyz almost close to each other for the devices,so how can i do it? Is the interpolation over common grid (x,y) works or is there any other better options? interpolation, averaging MATLAB Answers — New Questions
How do I prevent motor from entering reverse generating region, and stay in forward motoring region?
I am trying to simulate an electric motor for an aircraft, but when I input my reference speed and torque demand, the motor seems to enter reverse generating instead of forward motoring.
The motor parameters are as such:
The motor’s torque output vs torque demand as shown:
However, the motor’s rpm output vs reference rpm is as shown:
Is there a way to "force" the motor to stay in quadrant 1 as opposed to entering quadrant 4?I am trying to simulate an electric motor for an aircraft, but when I input my reference speed and torque demand, the motor seems to enter reverse generating instead of forward motoring.
The motor parameters are as such:
The motor’s torque output vs torque demand as shown:
However, the motor’s rpm output vs reference rpm is as shown:
Is there a way to "force" the motor to stay in quadrant 1 as opposed to entering quadrant 4? I am trying to simulate an electric motor for an aircraft, but when I input my reference speed and torque demand, the motor seems to enter reverse generating instead of forward motoring.
The motor parameters are as such:
The motor’s torque output vs torque demand as shown:
However, the motor’s rpm output vs reference rpm is as shown:
Is there a way to "force" the motor to stay in quadrant 1 as opposed to entering quadrant 4? simulink, simscape MATLAB Answers — New Questions
Por favor el pzmap código
-que símbolos y nomencaltura usa-que símbolos y nomencaltura usa -que símbolos y nomencaltura usa diagrama pz MATLAB Answers — New Questions
Issue Related to Interfacing simulink with arduino hardware
Hi. This is the error I am getting. I had installed the simulink for arduino add on for hardware support
And also sort for the COM port issue as mentioned in your web site
### Starting build procedure for: Lab_1_2 "### Generating static library." "F:/waqas/bin/win64/gmake" -j5 -C "C:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/ARDUIN~2/STATIC~1" SHELL="%SystemRoot%/system32/cmd.exe" -f avrcore.mk all gmake[1]: Entering directory C:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/ARDUIN~2/STATIC~1′ "### Successfully generated libcore.a library." gmake[1]: Leaving directory C:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/ARDUIN~2/STATIC~1′ "F:/waqas/bin/win64/gmake" -j5 SHELL="%SystemRoot%/system32/cmd.exe" -f "Lab_1_2.mk" all gmake[1]: Entering directory F:/ACE Box/Lab 1.2/Lab_1_2_ert_rtw’ "C:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/hardware/tools/avr/bin/avr-g++" -std=gnu++11 -fpermissive -fno-exceptions -fno-threadsafe-statics -c -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"MW_arduino_digitalio.dep" -MT"MW_arduino_digitalio.o" -Os -g -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DXCP_ADDRESS_GRANULARITY=XCP_ADDRESS_GRANULARITY_BYTE -DCODERTARGET_XCP_DAQ_PACKED_MODE -DCODERTARGET_XCP_MAX_CONTIGUOUS_SAMPLES=2 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DMW_TIMERID=1 -DMW_PRESCALAR=256 -DMW_TIMERCOUNT=59286 -DMW_SCHEDULERCOUNTER=1 -DARDUINO_NUM_SERIAL_PORTS=1 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_CONFIG_SERIAL0_=SERIAL_8N1 -D_RTT_ANALOG_REF_=0 -DMW_RTIO_SERIAL0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DEXT_MODE=1 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DXCP_EXTMODE_SIMULATION_TIME_IN_TICKS -DXCP_DAQ_SUPPORT -DXCP_CALIBRATION_SUPPORT -DXCP_TIMESTAMP_SUPPORT -DXCP_TIMESTAMP_BASED_ON_SIMULATION_TIME -DXCP_SET_MTA_SUPPORT -DEXTMODE_XCP_TRIGGER_SUPPORT -DXCP_MEM_BLOCK_1_SIZE=32 -DXCP_MEM_BLOCK_1_NUMBER=1 -DXCP_MEM_BLOCK_2_SIZE=56 -DXCP_MEM_BLOCK_2_NUMBER=1 -DXCP_MEM_BLOCK_3_SIZE=8 -DXCP_MEM_BLOCK_3_NUMBER=1 -DXCP_MEM_RESERVED_POOLS_TOTAL_SIZE=212 -DXCP_MEM_RESERVED_POOLS_NUMBER=2 -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=2 -DXCP_MEM_DAQ_RESERVED_POOLS_NUMBER=1 -DXCP_MIN_EVENT_NO_RESERVED_POOL=1 -DXCP_MAX_CTO_SIZE=32 -DXCP_MAX_DTO_SIZE=65532 -DXCP_MAX_ODT_ENTRY_SIZE=255 -DEXTMODE_STATIC -DEXTMODE_STATIC_SIZE=250 -DON_TARGET_WAIT_FOR_START=1 -DTID01EQ=0 -DXCP_CUSTOM_PLATFORM -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=Lab_1_2 -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IF:/ACE Box/Lab 1.2 -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/ARDUIN~2/include -IF:/ACE Box/Lab 1.2/Lab_1_2_ert_rtw -IF:/waqas/extern/include -IF:/waqas/simulink/include -IF:/waqas/rtw/c/src -IF:/waqas/rtw/c/src/ext_mode/common -IF:/waqas/rtw/c/ert -IF:/waqas/toolbox/coder/xcp/src/target/server/include -IF:/waqas/toolbox/coder/xcp/src/target/server/common -IF:/waqas/toolbox/coder/xcp/src/target/server/protocol/src -IF:/waqas/toolbox/coder/xcp/src/target/server/protocol/include -IF:/waqas/toolbox/coder/xcp/src/target/server/transport/include -IF:/waqas/toolbox/coder/xcp/src/target/server/transport/src -IF:/waqas/toolbox/coder/xcp/src/target/server/platform/include -IF:/waqas/toolbox/coder/xcp/src/target/server/platform/default -IF:/waqas/toolbox/coder/xcp/src/target/ext_mode/include -IF:/waqas/toolbox/coder/xcp/src/target/ext_mode/src -IF:/waqas/toolbox/coder/rtiostream/src -IC:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/libraries/Servo/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/ARDUIN~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/ARDUIN~1/SCHEDU~1/include –
IC:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/hardware/tools/avr/avr/include/avr -o "MW_arduino_digitalio.o" "C:/ProgramData/MATLAB/SupportPackages/R2023b/toolbox/target/supportpackages/arduinobase/src/MW_arduino_digitalio.cpp" "C:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/hardware/tools/avr/bin/avr-gcc" -std=gnu11 -c -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"xcp_ext_mode.dep" -MT"xcp_ext_mode.o" -Os -g -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DXCP_ADDRESS_GRANULARITY=XCP_ADDRESS_GRANULARITY_BYTE -DCODERTARGET_XCP_DAQ_PACKED_MODE -DCODERTARGET_XCP_MAX_CONTIGUOUS_SAMPLES=2 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DMW_TIMERID=1 -DMW_PRESCALAR=256 -DMW_TIMERCOUNT=59286 -DMW_SCHEDULERCOUNTER=1 -DARDUINO_NUM_SERIAL_PORTS=1 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_CONFIG_SERIAL0_=SERIAL_8N1 -D_RTT_ANALOG_REF_=0 -DMW_RTIO_SERIAL0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DEXT_MODE=1 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DXCP_EXTMODE_SIMULATION_TIME_IN_TICKS -DXCP_DAQ_SUPPORT -DXCP_CALIBRATION_SUPPORT -DXCP_TIMESTAMP_SUPPORT -DXCP_TIMESTAMP_BASED_ON_SIMULATION_TIME -DXCP_SET_MTA_SUPPORT -DEXTMODE_XCP_TRIGGavr-g++: error: Box/Lab: No such file or directory ER_SUPPORT -DXCP_MEM_BLOCK_1_SIZE=32 -DXCP_MEM_BLOCK_1_NUMBER=1 -DXCP_MEM_BLOCK_2_SIZE=56 -DXCP_MEM_BLOCK_2_NUMBER=1 -DXCP_MEM_BLOCK_3_SIZE=8 -DXCP_MEM_BLOCK_3_NUMBER=1 -DXCP_MEM_RESERVED_POOLS_TOTAL_SIZE=212 -DXCP_MEM_RESERVED_POOLS_NUMBER=2 -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=2 -DXCP_MEM_DAQ_RESERVED_POOLS_NUMBER=1 -DXCP_MIN_EVENT_NO_RESERVED_POOL=1 -DXCP_MAX_CTO_SIZE=32 -DXCP_MAX_DTO_SIZE=65532 -DXCP_MAX_ODT_ENTRY_SIZE=255 -DEXTMODE_STATIC -DEXTMODE_STATIC_SIZE=250 -DON_TARGET_WAIT_FOR_START=1 -DTID01EQ=0 -DXCP_CUSTOM_PLATFORM -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=Lab_1_2 -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IF:/ACE Box/Lab 1.2 -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/ARDUIN~2/include -IF:/ACE Box/Lab 1.2/Lab_1_2_ert_rtw -IF:/waqas/extern/include -IF:/waqas/simulink/include -IF:/waqas/rtw/c/src -IF:/waqas/rtw/c/src/ext_mode/common -IF:/waqas/rtw/c/ert -IF:/waqas/toolbox/coder/xcp/src/target/server/include -IF:/waqas/toolbox/coder/xcp/src/target/server/common -IF:/waqas/toolbox/coder/xcp/src/target/server/protocol/src -IF:/waqas/toolbox/coder/xcp/src/target/server/protocol/include -IF:/waqas/toolbox/coder/xcp/src/target/server/transport/include -IF:/waqas/toolbox/coder/xcp/src/target/server/transport/src -IF:/waqas/toolbox/coder/xcp/src/target/server/platform/include -IF:/waqas/toolbox/coder/xcp/src/target/server/platform/default -IF:/waqas/toolbox/coder/xcp/src/target/ext_mode/include -IF:/waqas/toolbox/coder/xcp/src/target/ext_mode/src -IF:/waqas/toolbox/coder/rtiostream/src -IC:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/libraries/Servo/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/ARDUIN~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/ARDUIN~1/SCHEDU~1/include -IC:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/hardware/tools/avr/avr/include/avr -o "xcp_ext_mode.o" "F:/waqas/toolbox/coder/xcp/src/target/ext_mode/src/xcp_ext_mode.c" avr-g++: error: 1.2: No such file or directory avr-g++: error: Box/Lab: No such file or directory avr-g++: error: 1.2/Lab_1_2_ert_rtw: No such file or directory gmake[1]: *** No rule to make target F:/ACE’, needed by Lab_1_2.o’. Stop. gmake[1]: *** Waiting for unfinished jobs…. gmake[1]: *** [MW_arduino_digitalio.o] Error 1 avr-gcc: error: Box/Lab: No such file or directory avr-gcc: error: 1.2: No such file or directory avr-gcc: error: Box/Lab: No such file or directory avr-gcc: error: 1.2/Lab_1_2_ert_rtw: No such file or directory gmake[1]: *** [xcp_ext_mode.o] Error 1 gmake[1]: Leaving directory F:/ACE Box/Lab 1.2/Lab_1_2_ert_rtw’ gmake: *** [all] Error 2 The make command returned an error of 2 ### Build procedure for Lab_1_2 aborted due to an error. Build Summary Top model targets built: Model Action Rebuild Reason =================================================================== Lab_1_2 Failed Code generation information file does not exist. 0 of 1 models built (0 models already up to date) Build duration: 0h 2m 8.7477sHi. This is the error I am getting. I had installed the simulink for arduino add on for hardware support
And also sort for the COM port issue as mentioned in your web site
### Starting build procedure for: Lab_1_2 "### Generating static library." "F:/waqas/bin/win64/gmake" -j5 -C "C:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/ARDUIN~2/STATIC~1" SHELL="%SystemRoot%/system32/cmd.exe" -f avrcore.mk all gmake[1]: Entering directory C:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/ARDUIN~2/STATIC~1′ "### Successfully generated libcore.a library." gmake[1]: Leaving directory C:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/ARDUIN~2/STATIC~1′ "F:/waqas/bin/win64/gmake" -j5 SHELL="%SystemRoot%/system32/cmd.exe" -f "Lab_1_2.mk" all gmake[1]: Entering directory F:/ACE Box/Lab 1.2/Lab_1_2_ert_rtw’ "C:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/hardware/tools/avr/bin/avr-g++" -std=gnu++11 -fpermissive -fno-exceptions -fno-threadsafe-statics -c -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"MW_arduino_digitalio.dep" -MT"MW_arduino_digitalio.o" -Os -g -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DXCP_ADDRESS_GRANULARITY=XCP_ADDRESS_GRANULARITY_BYTE -DCODERTARGET_XCP_DAQ_PACKED_MODE -DCODERTARGET_XCP_MAX_CONTIGUOUS_SAMPLES=2 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DMW_TIMERID=1 -DMW_PRESCALAR=256 -DMW_TIMERCOUNT=59286 -DMW_SCHEDULERCOUNTER=1 -DARDUINO_NUM_SERIAL_PORTS=1 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_CONFIG_SERIAL0_=SERIAL_8N1 -D_RTT_ANALOG_REF_=0 -DMW_RTIO_SERIAL0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DEXT_MODE=1 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DXCP_EXTMODE_SIMULATION_TIME_IN_TICKS -DXCP_DAQ_SUPPORT -DXCP_CALIBRATION_SUPPORT -DXCP_TIMESTAMP_SUPPORT -DXCP_TIMESTAMP_BASED_ON_SIMULATION_TIME -DXCP_SET_MTA_SUPPORT -DEXTMODE_XCP_TRIGGER_SUPPORT -DXCP_MEM_BLOCK_1_SIZE=32 -DXCP_MEM_BLOCK_1_NUMBER=1 -DXCP_MEM_BLOCK_2_SIZE=56 -DXCP_MEM_BLOCK_2_NUMBER=1 -DXCP_MEM_BLOCK_3_SIZE=8 -DXCP_MEM_BLOCK_3_NUMBER=1 -DXCP_MEM_RESERVED_POOLS_TOTAL_SIZE=212 -DXCP_MEM_RESERVED_POOLS_NUMBER=2 -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=2 -DXCP_MEM_DAQ_RESERVED_POOLS_NUMBER=1 -DXCP_MIN_EVENT_NO_RESERVED_POOL=1 -DXCP_MAX_CTO_SIZE=32 -DXCP_MAX_DTO_SIZE=65532 -DXCP_MAX_ODT_ENTRY_SIZE=255 -DEXTMODE_STATIC -DEXTMODE_STATIC_SIZE=250 -DON_TARGET_WAIT_FOR_START=1 -DTID01EQ=0 -DXCP_CUSTOM_PLATFORM -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=Lab_1_2 -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IF:/ACE Box/Lab 1.2 -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/ARDUIN~2/include -IF:/ACE Box/Lab 1.2/Lab_1_2_ert_rtw -IF:/waqas/extern/include -IF:/waqas/simulink/include -IF:/waqas/rtw/c/src -IF:/waqas/rtw/c/src/ext_mode/common -IF:/waqas/rtw/c/ert -IF:/waqas/toolbox/coder/xcp/src/target/server/include -IF:/waqas/toolbox/coder/xcp/src/target/server/common -IF:/waqas/toolbox/coder/xcp/src/target/server/protocol/src -IF:/waqas/toolbox/coder/xcp/src/target/server/protocol/include -IF:/waqas/toolbox/coder/xcp/src/target/server/transport/include -IF:/waqas/toolbox/coder/xcp/src/target/server/transport/src -IF:/waqas/toolbox/coder/xcp/src/target/server/platform/include -IF:/waqas/toolbox/coder/xcp/src/target/server/platform/default -IF:/waqas/toolbox/coder/xcp/src/target/ext_mode/include -IF:/waqas/toolbox/coder/xcp/src/target/ext_mode/src -IF:/waqas/toolbox/coder/rtiostream/src -IC:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/libraries/Servo/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/ARDUIN~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/ARDUIN~1/SCHEDU~1/include –
IC:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/hardware/tools/avr/avr/include/avr -o "MW_arduino_digitalio.o" "C:/ProgramData/MATLAB/SupportPackages/R2023b/toolbox/target/supportpackages/arduinobase/src/MW_arduino_digitalio.cpp" "C:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/hardware/tools/avr/bin/avr-gcc" -std=gnu11 -c -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"xcp_ext_mode.dep" -MT"xcp_ext_mode.o" -Os -g -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DXCP_ADDRESS_GRANULARITY=XCP_ADDRESS_GRANULARITY_BYTE -DCODERTARGET_XCP_DAQ_PACKED_MODE -DCODERTARGET_XCP_MAX_CONTIGUOUS_SAMPLES=2 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DMW_TIMERID=1 -DMW_PRESCALAR=256 -DMW_TIMERCOUNT=59286 -DMW_SCHEDULERCOUNTER=1 -DARDUINO_NUM_SERIAL_PORTS=1 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_CONFIG_SERIAL0_=SERIAL_8N1 -D_RTT_ANALOG_REF_=0 -DMW_RTIO_SERIAL0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DEXT_MODE=1 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DXCP_EXTMODE_SIMULATION_TIME_IN_TICKS -DXCP_DAQ_SUPPORT -DXCP_CALIBRATION_SUPPORT -DXCP_TIMESTAMP_SUPPORT -DXCP_TIMESTAMP_BASED_ON_SIMULATION_TIME -DXCP_SET_MTA_SUPPORT -DEXTMODE_XCP_TRIGGavr-g++: error: Box/Lab: No such file or directory ER_SUPPORT -DXCP_MEM_BLOCK_1_SIZE=32 -DXCP_MEM_BLOCK_1_NUMBER=1 -DXCP_MEM_BLOCK_2_SIZE=56 -DXCP_MEM_BLOCK_2_NUMBER=1 -DXCP_MEM_BLOCK_3_SIZE=8 -DXCP_MEM_BLOCK_3_NUMBER=1 -DXCP_MEM_RESERVED_POOLS_TOTAL_SIZE=212 -DXCP_MEM_RESERVED_POOLS_NUMBER=2 -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=2 -DXCP_MEM_DAQ_RESERVED_POOLS_NUMBER=1 -DXCP_MIN_EVENT_NO_RESERVED_POOL=1 -DXCP_MAX_CTO_SIZE=32 -DXCP_MAX_DTO_SIZE=65532 -DXCP_MAX_ODT_ENTRY_SIZE=255 -DEXTMODE_STATIC -DEXTMODE_STATIC_SIZE=250 -DON_TARGET_WAIT_FOR_START=1 -DTID01EQ=0 -DXCP_CUSTOM_PLATFORM -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=Lab_1_2 -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IF:/ACE Box/Lab 1.2 -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/ARDUIN~2/include -IF:/ACE Box/Lab 1.2/Lab_1_2_ert_rtw -IF:/waqas/extern/include -IF:/waqas/simulink/include -IF:/waqas/rtw/c/src -IF:/waqas/rtw/c/src/ext_mode/common -IF:/waqas/rtw/c/ert -IF:/waqas/toolbox/coder/xcp/src/target/server/include -IF:/waqas/toolbox/coder/xcp/src/target/server/common -IF:/waqas/toolbox/coder/xcp/src/target/server/protocol/src -IF:/waqas/toolbox/coder/xcp/src/target/server/protocol/include -IF:/waqas/toolbox/coder/xcp/src/target/server/transport/include -IF:/waqas/toolbox/coder/xcp/src/target/server/transport/src -IF:/waqas/toolbox/coder/xcp/src/target/server/platform/include -IF:/waqas/toolbox/coder/xcp/src/target/server/platform/default -IF:/waqas/toolbox/coder/xcp/src/target/ext_mode/include -IF:/waqas/toolbox/coder/xcp/src/target/ext_mode/src -IF:/waqas/toolbox/coder/rtiostream/src -IC:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/libraries/Servo/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/ARDUIN~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/ARDUIN~1/SCHEDU~1/include -IC:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/hardware/tools/avr/avr/include/avr -o "xcp_ext_mode.o" "F:/waqas/toolbox/coder/xcp/src/target/ext_mode/src/xcp_ext_mode.c" avr-g++: error: 1.2: No such file or directory avr-g++: error: Box/Lab: No such file or directory avr-g++: error: 1.2/Lab_1_2_ert_rtw: No such file or directory gmake[1]: *** No rule to make target F:/ACE’, needed by Lab_1_2.o’. Stop. gmake[1]: *** Waiting for unfinished jobs…. gmake[1]: *** [MW_arduino_digitalio.o] Error 1 avr-gcc: error: Box/Lab: No such file or directory avr-gcc: error: 1.2: No such file or directory avr-gcc: error: Box/Lab: No such file or directory avr-gcc: error: 1.2/Lab_1_2_ert_rtw: No such file or directory gmake[1]: *** [xcp_ext_mode.o] Error 1 gmake[1]: Leaving directory F:/ACE Box/Lab 1.2/Lab_1_2_ert_rtw’ gmake: *** [all] Error 2 The make command returned an error of 2 ### Build procedure for Lab_1_2 aborted due to an error. Build Summary Top model targets built: Model Action Rebuild Reason =================================================================== Lab_1_2 Failed Code generation information file does not exist. 0 of 1 models built (0 models already up to date) Build duration: 0h 2m 8.7477s Hi. This is the error I am getting. I had installed the simulink for arduino add on for hardware support
And also sort for the COM port issue as mentioned in your web site
### Starting build procedure for: Lab_1_2 "### Generating static library." "F:/waqas/bin/win64/gmake" -j5 -C "C:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/ARDUIN~2/STATIC~1" SHELL="%SystemRoot%/system32/cmd.exe" -f avrcore.mk all gmake[1]: Entering directory C:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/ARDUIN~2/STATIC~1′ "### Successfully generated libcore.a library." gmake[1]: Leaving directory C:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/ARDUIN~2/STATIC~1′ "F:/waqas/bin/win64/gmake" -j5 SHELL="%SystemRoot%/system32/cmd.exe" -f "Lab_1_2.mk" all gmake[1]: Entering directory F:/ACE Box/Lab 1.2/Lab_1_2_ert_rtw’ "C:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/hardware/tools/avr/bin/avr-g++" -std=gnu++11 -fpermissive -fno-exceptions -fno-threadsafe-statics -c -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"MW_arduino_digitalio.dep" -MT"MW_arduino_digitalio.o" -Os -g -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DXCP_ADDRESS_GRANULARITY=XCP_ADDRESS_GRANULARITY_BYTE -DCODERTARGET_XCP_DAQ_PACKED_MODE -DCODERTARGET_XCP_MAX_CONTIGUOUS_SAMPLES=2 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DMW_TIMERID=1 -DMW_PRESCALAR=256 -DMW_TIMERCOUNT=59286 -DMW_SCHEDULERCOUNTER=1 -DARDUINO_NUM_SERIAL_PORTS=1 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_CONFIG_SERIAL0_=SERIAL_8N1 -D_RTT_ANALOG_REF_=0 -DMW_RTIO_SERIAL0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DEXT_MODE=1 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DXCP_EXTMODE_SIMULATION_TIME_IN_TICKS -DXCP_DAQ_SUPPORT -DXCP_CALIBRATION_SUPPORT -DXCP_TIMESTAMP_SUPPORT -DXCP_TIMESTAMP_BASED_ON_SIMULATION_TIME -DXCP_SET_MTA_SUPPORT -DEXTMODE_XCP_TRIGGER_SUPPORT -DXCP_MEM_BLOCK_1_SIZE=32 -DXCP_MEM_BLOCK_1_NUMBER=1 -DXCP_MEM_BLOCK_2_SIZE=56 -DXCP_MEM_BLOCK_2_NUMBER=1 -DXCP_MEM_BLOCK_3_SIZE=8 -DXCP_MEM_BLOCK_3_NUMBER=1 -DXCP_MEM_RESERVED_POOLS_TOTAL_SIZE=212 -DXCP_MEM_RESERVED_POOLS_NUMBER=2 -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=2 -DXCP_MEM_DAQ_RESERVED_POOLS_NUMBER=1 -DXCP_MIN_EVENT_NO_RESERVED_POOL=1 -DXCP_MAX_CTO_SIZE=32 -DXCP_MAX_DTO_SIZE=65532 -DXCP_MAX_ODT_ENTRY_SIZE=255 -DEXTMODE_STATIC -DEXTMODE_STATIC_SIZE=250 -DON_TARGET_WAIT_FOR_START=1 -DTID01EQ=0 -DXCP_CUSTOM_PLATFORM -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=Lab_1_2 -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IF:/ACE Box/Lab 1.2 -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/ARDUIN~2/include -IF:/ACE Box/Lab 1.2/Lab_1_2_ert_rtw -IF:/waqas/extern/include -IF:/waqas/simulink/include -IF:/waqas/rtw/c/src -IF:/waqas/rtw/c/src/ext_mode/common -IF:/waqas/rtw/c/ert -IF:/waqas/toolbox/coder/xcp/src/target/server/include -IF:/waqas/toolbox/coder/xcp/src/target/server/common -IF:/waqas/toolbox/coder/xcp/src/target/server/protocol/src -IF:/waqas/toolbox/coder/xcp/src/target/server/protocol/include -IF:/waqas/toolbox/coder/xcp/src/target/server/transport/include -IF:/waqas/toolbox/coder/xcp/src/target/server/transport/src -IF:/waqas/toolbox/coder/xcp/src/target/server/platform/include -IF:/waqas/toolbox/coder/xcp/src/target/server/platform/default -IF:/waqas/toolbox/coder/xcp/src/target/ext_mode/include -IF:/waqas/toolbox/coder/xcp/src/target/ext_mode/src -IF:/waqas/toolbox/coder/rtiostream/src -IC:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/libraries/Servo/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/ARDUIN~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/ARDUIN~1/SCHEDU~1/include –
IC:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/hardware/tools/avr/avr/include/avr -o "MW_arduino_digitalio.o" "C:/ProgramData/MATLAB/SupportPackages/R2023b/toolbox/target/supportpackages/arduinobase/src/MW_arduino_digitalio.cpp" "C:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/hardware/tools/avr/bin/avr-gcc" -std=gnu11 -c -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"xcp_ext_mode.dep" -MT"xcp_ext_mode.o" -Os -g -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DXCP_ADDRESS_GRANULARITY=XCP_ADDRESS_GRANULARITY_BYTE -DCODERTARGET_XCP_DAQ_PACKED_MODE -DCODERTARGET_XCP_MAX_CONTIGUOUS_SAMPLES=2 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DMW_TIMERID=1 -DMW_PRESCALAR=256 -DMW_TIMERCOUNT=59286 -DMW_SCHEDULERCOUNTER=1 -DARDUINO_NUM_SERIAL_PORTS=1 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_CONFIG_SERIAL0_=SERIAL_8N1 -D_RTT_ANALOG_REF_=0 -DMW_RTIO_SERIAL0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DEXT_MODE=1 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DXCP_EXTMODE_SIMULATION_TIME_IN_TICKS -DXCP_DAQ_SUPPORT -DXCP_CALIBRATION_SUPPORT -DXCP_TIMESTAMP_SUPPORT -DXCP_TIMESTAMP_BASED_ON_SIMULATION_TIME -DXCP_SET_MTA_SUPPORT -DEXTMODE_XCP_TRIGGavr-g++: error: Box/Lab: No such file or directory ER_SUPPORT -DXCP_MEM_BLOCK_1_SIZE=32 -DXCP_MEM_BLOCK_1_NUMBER=1 -DXCP_MEM_BLOCK_2_SIZE=56 -DXCP_MEM_BLOCK_2_NUMBER=1 -DXCP_MEM_BLOCK_3_SIZE=8 -DXCP_MEM_BLOCK_3_NUMBER=1 -DXCP_MEM_RESERVED_POOLS_TOTAL_SIZE=212 -DXCP_MEM_RESERVED_POOLS_NUMBER=2 -DXCP_MEM_DAQ_RESERVED_POOL_BLOCKS_NUMBER=2 -DXCP_MEM_DAQ_RESERVED_POOLS_NUMBER=1 -DXCP_MIN_EVENT_NO_RESERVED_POOL=1 -DXCP_MAX_CTO_SIZE=32 -DXCP_MAX_DTO_SIZE=65532 -DXCP_MAX_ODT_ENTRY_SIZE=255 -DEXTMODE_STATIC -DEXTMODE_STATIC_SIZE=250 -DON_TARGET_WAIT_FOR_START=1 -DTID01EQ=0 -DXCP_CUSTOM_PLATFORM -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=Lab_1_2 -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IF:/ACE Box/Lab 1.2 -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/ARDUIN~2/include -IF:/ACE Box/Lab 1.2/Lab_1_2_ert_rtw -IF:/waqas/extern/include -IF:/waqas/simulink/include -IF:/waqas/rtw/c/src -IF:/waqas/rtw/c/src/ext_mode/common -IF:/waqas/rtw/c/ert -IF:/waqas/toolbox/coder/xcp/src/target/server/include -IF:/waqas/toolbox/coder/xcp/src/target/server/common -IF:/waqas/toolbox/coder/xcp/src/target/server/protocol/src -IF:/waqas/toolbox/coder/xcp/src/target/server/protocol/include -IF:/waqas/toolbox/coder/xcp/src/target/server/transport/include -IF:/waqas/toolbox/coder/xcp/src/target/server/transport/src -IF:/waqas/toolbox/coder/xcp/src/target/server/platform/include -IF:/waqas/toolbox/coder/xcp/src/target/server/platform/default -IF:/waqas/toolbox/coder/xcp/src/target/ext_mode/include -IF:/waqas/toolbox/coder/xcp/src/target/ext_mode/src -IF:/waqas/toolbox/coder/rtiostream/src -IC:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/libraries/Servo/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/ARDUIN~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2023b/toolbox/target/SUPPOR~1/ARDUIN~1/SCHEDU~1/include -IC:/ProgramData/MATLAB/SupportPackages/R2023b/aIDE/hardware/tools/avr/avr/include/avr -o "xcp_ext_mode.o" "F:/waqas/toolbox/coder/xcp/src/target/ext_mode/src/xcp_ext_mode.c" avr-g++: error: 1.2: No such file or directory avr-g++: error: Box/Lab: No such file or directory avr-g++: error: 1.2/Lab_1_2_ert_rtw: No such file or directory gmake[1]: *** No rule to make target F:/ACE’, needed by Lab_1_2.o’. Stop. gmake[1]: *** Waiting for unfinished jobs…. gmake[1]: *** [MW_arduino_digitalio.o] Error 1 avr-gcc: error: Box/Lab: No such file or directory avr-gcc: error: 1.2: No such file or directory avr-gcc: error: Box/Lab: No such file or directory avr-gcc: error: 1.2/Lab_1_2_ert_rtw: No such file or directory gmake[1]: *** [xcp_ext_mode.o] Error 1 gmake[1]: Leaving directory F:/ACE Box/Lab 1.2/Lab_1_2_ert_rtw’ gmake: *** [all] Error 2 The make command returned an error of 2 ### Build procedure for Lab_1_2 aborted due to an error. Build Summary Top model targets built: Model Action Rebuild Reason =================================================================== Lab_1_2 Failed Code generation information file does not exist. 0 of 1 models built (0 models already up to date) Build duration: 0h 2m 8.7477s arduino MATLAB Answers — New Questions
importing a table from a file with multiple tables
I want to specifically import data from Table 3 but I’m unsure how to write that in my script.
If anyone could help I’d appreciate it:)I want to specifically import data from Table 3 but I’m unsure how to write that in my script.
If anyone could help I’d appreciate it:) I want to specifically import data from Table 3 but I’m unsure how to write that in my script.
If anyone could help I’d appreciate it:) tables, importing excel data MATLAB Answers — New Questions
Error using countOnes = sum(num); when trying to count how many zeros and ones are randomly generated.
I have never used MATLAB before, and am trying to randomly generate 0s and 1s to calculate the probability of getting heads or tails on a coin. I used the code below, but keep getting an error on the line showing countOnes = sum(num); saying ‘array indices must be positive integers or logical values.’. Anyone know what might be wrong? I clicked the explain error and it wasn’t clear.
rng(‘shuffle’); %Generates a random number each time, instead of the same sequence
N = 1000; %Sets value of N to 1000 to simulate 1000 flips of the coin
num = randi([0,1], N, 1); %Generates a number 0 or 1
countOnes = sum(num);
countZeros = N – countOnes;
disp([‘Number of 1s: ‘, num2str(countOnes)]);
disp([‘Number of 0s: ‘, num2str(countZeros)]);I have never used MATLAB before, and am trying to randomly generate 0s and 1s to calculate the probability of getting heads or tails on a coin. I used the code below, but keep getting an error on the line showing countOnes = sum(num); saying ‘array indices must be positive integers or logical values.’. Anyone know what might be wrong? I clicked the explain error and it wasn’t clear.
rng(‘shuffle’); %Generates a random number each time, instead of the same sequence
N = 1000; %Sets value of N to 1000 to simulate 1000 flips of the coin
num = randi([0,1], N, 1); %Generates a number 0 or 1
countOnes = sum(num);
countZeros = N – countOnes;
disp([‘Number of 1s: ‘, num2str(countOnes)]);
disp([‘Number of 0s: ‘, num2str(countZeros)]); I have never used MATLAB before, and am trying to randomly generate 0s and 1s to calculate the probability of getting heads or tails on a coin. I used the code below, but keep getting an error on the line showing countOnes = sum(num); saying ‘array indices must be positive integers or logical values.’. Anyone know what might be wrong? I clicked the explain error and it wasn’t clear.
rng(‘shuffle’); %Generates a random number each time, instead of the same sequence
N = 1000; %Sets value of N to 1000 to simulate 1000 flips of the coin
num = randi([0,1], N, 1); %Generates a number 0 or 1
countOnes = sum(num);
countZeros = N – countOnes;
disp([‘Number of 1s: ‘, num2str(countOnes)]);
disp([‘Number of 0s: ‘, num2str(countZeros)]); random number generator, probability MATLAB Answers — New Questions