Category: News
slhostlibcantransmit.dll INITIALIZE Error when I try to connect to my ECU through XCP on CAN (using Vehicle Network Toolbox blocks)
I am trying to read an ECU variable using Vehicle Network Toolbox blocks on my simulink model. The a2l file is added in the XCP CAN Configuration block. The XCP CAN Data Acquisiton block is used for getting the measurement I want to read and the XCP CAN Transport Layer block is used for connecting to the XCP channel which is through a Kvaser device.
On running the model, I get the following error:
=== Diagnostics ===
Error:Error running ‘HVS_Model_V01_CD6_TestPC’ on target computer: Unable to load ‘HVS_Model_V01_CD6_TestPC’ on target computer ‘TargetPC1’: HVS_Model_V01_CD6_TestPC:INITIALIZE ERROR:Could not open library: slhostlibcantransmit.dll
Can anyone help me out?I am trying to read an ECU variable using Vehicle Network Toolbox blocks on my simulink model. The a2l file is added in the XCP CAN Configuration block. The XCP CAN Data Acquisiton block is used for getting the measurement I want to read and the XCP CAN Transport Layer block is used for connecting to the XCP channel which is through a Kvaser device.
On running the model, I get the following error:
=== Diagnostics ===
Error:Error running ‘HVS_Model_V01_CD6_TestPC’ on target computer: Unable to load ‘HVS_Model_V01_CD6_TestPC’ on target computer ‘TargetPC1’: HVS_Model_V01_CD6_TestPC:INITIALIZE ERROR:Could not open library: slhostlibcantransmit.dll
Can anyone help me out? I am trying to read an ECU variable using Vehicle Network Toolbox blocks on my simulink model. The a2l file is added in the XCP CAN Configuration block. The XCP CAN Data Acquisiton block is used for getting the measurement I want to read and the XCP CAN Transport Layer block is used for connecting to the XCP channel which is through a Kvaser device.
On running the model, I get the following error:
=== Diagnostics ===
Error:Error running ‘HVS_Model_V01_CD6_TestPC’ on target computer: Unable to load ‘HVS_Model_V01_CD6_TestPC’ on target computer ‘TargetPC1’: HVS_Model_V01_CD6_TestPC:INITIALIZE ERROR:Could not open library: slhostlibcantransmit.dll
Can anyone help me out? xcponcan, vehiclenetworktoolbox, vnt, slhostlibcantransmit.dll MATLAB Answers — New Questions
Index exceeds the number of array elements
Hi,
I got the error written below.
Index exceeds the number of array elements. Index must not exceed 2.
Error in MasterPlan_RCC_V2_2(line 73)
CHG_step = CHG_step(1:Inputs_RCC.CyclesxcRate); % Based on how many cycles x C-rate
Line 73 is written in bold black.
Tolerance_D = abs(Files.PreProcessedData{idx}.Current_A – Rated_Cap*Inputs_RCC.cRate_DCH) < AcceptedErrorCurrent;
RCC_Step_CHG = {}; % Find the unique steps for the Discharge rates
for i = 1:size(Inputs_RCC.cRates_CHG,1)
Tolerance_C = abs(Files.PreProcessedData{idx}.Current_A – Rated_Cap*cell2mat(Inputs_RCC.cRates_CHG(i))) < AcceptedErrorCurrent;
% Record the unique step if it’s CC step, charge and the C-Rate is the one from the pulses
if i == 1
CHG_step = Files.PreProcessedData{idx}.FlagUniqueStep(Tolerance_C & contains(Files.PreProcessedData{idx}.Mode, "C_CC"));
CHG_step = unique(CHG_step);
CHG_step = CHG_step(CHG_step > Cap_Check_Steps(end)); % Take the steps after the cap check not to repeat them
CHG_step = CHG_step(1:Inputs_RCC.CyclesxcRate); % Based on how many cycles x C-rate
RCC_Step_CHG = [RCC_Step_CHG; num2cell(CHG_step)];
This is for test protocol of battery. So, the protocol is shown below:
"CHG step (Charge step), C-rates are C/, C/3, C/2, 1C and 2C."
Charge Steps 3 cycles at each C-rate
C/5 with C/20 cut-off
C/3 with C/20 cut-off
C/2 with C/20 cut-off
1C with C/20 cut-off
"2C
with C/20 cut-off"
Can someone please help me?Hi,
I got the error written below.
Index exceeds the number of array elements. Index must not exceed 2.
Error in MasterPlan_RCC_V2_2(line 73)
CHG_step = CHG_step(1:Inputs_RCC.CyclesxcRate); % Based on how many cycles x C-rate
Line 73 is written in bold black.
Tolerance_D = abs(Files.PreProcessedData{idx}.Current_A – Rated_Cap*Inputs_RCC.cRate_DCH) < AcceptedErrorCurrent;
RCC_Step_CHG = {}; % Find the unique steps for the Discharge rates
for i = 1:size(Inputs_RCC.cRates_CHG,1)
Tolerance_C = abs(Files.PreProcessedData{idx}.Current_A – Rated_Cap*cell2mat(Inputs_RCC.cRates_CHG(i))) < AcceptedErrorCurrent;
% Record the unique step if it’s CC step, charge and the C-Rate is the one from the pulses
if i == 1
CHG_step = Files.PreProcessedData{idx}.FlagUniqueStep(Tolerance_C & contains(Files.PreProcessedData{idx}.Mode, "C_CC"));
CHG_step = unique(CHG_step);
CHG_step = CHG_step(CHG_step > Cap_Check_Steps(end)); % Take the steps after the cap check not to repeat them
CHG_step = CHG_step(1:Inputs_RCC.CyclesxcRate); % Based on how many cycles x C-rate
RCC_Step_CHG = [RCC_Step_CHG; num2cell(CHG_step)];
This is for test protocol of battery. So, the protocol is shown below:
"CHG step (Charge step), C-rates are C/, C/3, C/2, 1C and 2C."
Charge Steps 3 cycles at each C-rate
C/5 with C/20 cut-off
C/3 with C/20 cut-off
C/2 with C/20 cut-off
1C with C/20 cut-off
"2C
with C/20 cut-off"
Can someone please help me? Hi,
I got the error written below.
Index exceeds the number of array elements. Index must not exceed 2.
Error in MasterPlan_RCC_V2_2(line 73)
CHG_step = CHG_step(1:Inputs_RCC.CyclesxcRate); % Based on how many cycles x C-rate
Line 73 is written in bold black.
Tolerance_D = abs(Files.PreProcessedData{idx}.Current_A – Rated_Cap*Inputs_RCC.cRate_DCH) < AcceptedErrorCurrent;
RCC_Step_CHG = {}; % Find the unique steps for the Discharge rates
for i = 1:size(Inputs_RCC.cRates_CHG,1)
Tolerance_C = abs(Files.PreProcessedData{idx}.Current_A – Rated_Cap*cell2mat(Inputs_RCC.cRates_CHG(i))) < AcceptedErrorCurrent;
% Record the unique step if it’s CC step, charge and the C-Rate is the one from the pulses
if i == 1
CHG_step = Files.PreProcessedData{idx}.FlagUniqueStep(Tolerance_C & contains(Files.PreProcessedData{idx}.Mode, "C_CC"));
CHG_step = unique(CHG_step);
CHG_step = CHG_step(CHG_step > Cap_Check_Steps(end)); % Take the steps after the cap check not to repeat them
CHG_step = CHG_step(1:Inputs_RCC.CyclesxcRate); % Based on how many cycles x C-rate
RCC_Step_CHG = [RCC_Step_CHG; num2cell(CHG_step)];
This is for test protocol of battery. So, the protocol is shown below:
"CHG step (Charge step), C-rates are C/, C/3, C/2, 1C and 2C."
Charge Steps 3 cycles at each C-rate
C/5 with C/20 cut-off
C/3 with C/20 cut-off
C/2 with C/20 cut-off
1C with C/20 cut-off
"2C
with C/20 cut-off"
Can someone please help me? index exceeds, number of array MATLAB Answers — New Questions
Exchange Online’s New High Volume Email (HVE) Solution
The Exchange Online High-Volume Email (HVE) solution handles up to 100,000 internal messages and 2,000 external messages daily. It’s intended to replace on-premises Exchange servers that organizations keep just to service email submission from devices and applications. In this review of the preview version, we discovered that almost everything works just fine, if you keep within the throttling limits.
https://practical365.com/exchange-online-hve/
The Exchange Online High-Volume Email (HVE) solution handles up to 100,000 internal messages and 2,000 external messages daily. It’s intended to replace on-premises Exchange servers that organizations keep just to service email submission from devices and applications. In this review of the preview version, we discovered that almost everything works just fine, if you keep within the throttling limits.
https://practical365.com/exchange-online-hve/ Read More
How to save a prompt in Teams?
Is it possible to save prompts in Copilot Chat in Teams? Doc says “Select the Save prompt button on the prompt to save it”. But there is no such button (neither permanent no if hover over it) available for me.
Is it possible to save prompts in Copilot Chat in Teams? Doc says “Select the Save prompt button on the prompt to save it”. But there is no such button (neither permanent no if hover over it) available for me. Read More
draw polygon continuously with mouse
לק"י
Hi guys,
I need to contour some cells. I want to use the drawpolygon command, or an equivalent of it, that will record mouse position continuously while mouse left click button is held. No such option seems to be in the drawpolygon documentation.
There are some old answers about how to do it, the problem is that most of the codes there somewhy don’t work when I try to use them. Is there any other easy/quick way to obtain mouse position only when left mouse button is held?
Thanks,
Amit.לק"י
Hi guys,
I need to contour some cells. I want to use the drawpolygon command, or an equivalent of it, that will record mouse position continuously while mouse left click button is held. No such option seems to be in the drawpolygon documentation.
There are some old answers about how to do it, the problem is that most of the codes there somewhy don’t work when I try to use them. Is there any other easy/quick way to obtain mouse position only when left mouse button is held?
Thanks,
Amit. לק"י
Hi guys,
I need to contour some cells. I want to use the drawpolygon command, or an equivalent of it, that will record mouse position continuously while mouse left click button is held. No such option seems to be in the drawpolygon documentation.
There are some old answers about how to do it, the problem is that most of the codes there somewhy don’t work when I try to use them. Is there any other easy/quick way to obtain mouse position only when left mouse button is held?
Thanks,
Amit. drawpolygon, mouse position, cell contour, contour MATLAB Answers — New Questions
Store a script as a function
I made some changes in an already existing function file "randomstart" downloaded from Mathworks reinforcement learning on ramp course. When I made few changes in that file and tried to save it, I got the message as shown in the pic attached
when I clicked on the overwrite button, the script file no longer remains a function file. It simply changes to an ordinary .mlx file which cannot be called from the main function of trainDDPG.mlx. Similar is the case with ‘Select Another File…" option. Can anyone help me what to do? ThanksI made some changes in an already existing function file "randomstart" downloaded from Mathworks reinforcement learning on ramp course. When I made few changes in that file and tried to save it, I got the message as shown in the pic attached
when I clicked on the overwrite button, the script file no longer remains a function file. It simply changes to an ordinary .mlx file which cannot be called from the main function of trainDDPG.mlx. Similar is the case with ‘Select Another File…" option. Can anyone help me what to do? Thanks I made some changes in an already existing function file "randomstart" downloaded from Mathworks reinforcement learning on ramp course. When I made few changes in that file and tried to save it, I got the message as shown in the pic attached
when I clicked on the overwrite button, the script file no longer remains a function file. It simply changes to an ordinary .mlx file which cannot be called from the main function of trainDDPG.mlx. Similar is the case with ‘Select Another File…" option. Can anyone help me what to do? Thanks save, function MATLAB Answers — New Questions
How to remove the error “Can not resolve Simulink signal object for output port” in matlab 2009b
Hello
Im experiencing an error in simulink "Can not resolve Simulink signal object for output port" in Matlab 2009b
Can someone suggest the any ideas on how to resolve this?
Thank youHello
Im experiencing an error in simulink "Can not resolve Simulink signal object for output port" in Matlab 2009b
Can someone suggest the any ideas on how to resolve this?
Thank you Hello
Im experiencing an error in simulink "Can not resolve Simulink signal object for output port" in Matlab 2009b
Can someone suggest the any ideas on how to resolve this?
Thank you matlab, simulink, signal MATLAB Answers — New Questions
Why i am getting this kind of warning in my code outer loop index i is inside the nested function
Why i am getting this kind of warning in my code outer loop index i is inside the nested function. i shared the code file. kindly guide me what to do next.Why i am getting this kind of warning in my code outer loop index i is inside the nested function. i shared the code file. kindly guide me what to do next. Why i am getting this kind of warning in my code outer loop index i is inside the nested function. i shared the code file. kindly guide me what to do next. matlab code MATLAB Answers — New Questions
Unable to delete derived entry in sldd
When I try to delete data dictionary (*.sldd) entries, I get the error "Unable to delete derived entry".
I searched for this error in the documentation and online but could not find what is the cause of this error.When I try to delete data dictionary (*.sldd) entries, I get the error "Unable to delete derived entry".
I searched for this error in the documentation and online but could not find what is the cause of this error. When I try to delete data dictionary (*.sldd) entries, I get the error "Unable to delete derived entry".
I searched for this error in the documentation and online but could not find what is the cause of this error. data dictionary, matlab, simulink MATLAB Answers — New Questions
MDI Sensors bandwith usage
Good morning, is it possible to understand or estimate the bandwidth usage of sensors in an environment with around 30 domain controllers and 10,000 users?
Is there any documentation regards this topic?
Thanks a lot
Good morning, is it possible to understand or estimate the bandwidth usage of sensors in an environment with around 30 domain controllers and 10,000 users?Is there any documentation regards this topic? Thanks a lot Read More
Forms – Polls in teams
Hi,
I used to prepare Forms questions and polls and launch theim during teams meeting.
As Forms is not working anymore in teams, how can I do the same thing with the new app “Polls” (preparing questions and launching theim at the right time) ?
Hi, I used to prepare Forms questions and polls and launch theim during teams meeting. As Forms is not working anymore in teams, how can I do the same thing with the new app “Polls” (preparing questions and launching theim at the right time) ? Read More
“Bookings with me” does not show calender events
I’ve been experiencing issues with the “Bookings with me” feature over the past few weeks or months. Previously, it functioned correctly, only displaying time slots when I was available. However, it now respects my working hours but fails to indicate whether I’m already booked or not. Even when I schedule an event through the booking page, it gets added to my calendar, but the time slot remains available for further bookings.
In contrast, the public link to my calendar displays all events as expected.
I’ve tested this issue with a colleague’s booking page, and it worked without any problems. Does anyone have any suggestions on how to resolve this issue?
Greetings from Germany,
Thorsten
I’ve been experiencing issues with the “Bookings with me” feature over the past few weeks or months. Previously, it functioned correctly, only displaying time slots when I was available. However, it now respects my working hours but fails to indicate whether I’m already booked or not. Even when I schedule an event through the booking page, it gets added to my calendar, but the time slot remains available for further bookings.In contrast, the public link to my calendar displays all events as expected.I’ve tested this issue with a colleague’s booking page, and it worked without any problems. Does anyone have any suggestions on how to resolve this issue? Greetings from Germany,Thorsten Read More
Microsoft to Charge for Unlicensed OneDrive for Business Accounts
Microsoft plans to archive unlicensed OneDrive sites starting in January 2025. The obsolete sites will end up in Microsoft 365 archive, from where the sites can be reactivated for a small per-gigabyte fee. Archived sites are indexed and discoverable. However, the message is clear: remove unlicensed OneDrive sites now. They’re only cluttering up your digital landscape and might give Copilot for Microsoft 365 a headache.
https://office365itpros.com/2024/07/30/unlicensed-onedrive-sites-archive/
Microsoft plans to archive unlicensed OneDrive sites starting in January 2025. The obsolete sites will end up in Microsoft 365 archive, from where the sites can be reactivated for a small per-gigabyte fee. Archived sites are indexed and discoverable. However, the message is clear: remove unlicensed OneDrive sites now. They’re only cluttering up your digital landscape and might give Copilot for Microsoft 365 a headache.
https://office365itpros.com/2024/07/30/unlicensed-onedrive-sites-archive/ Read More
Moving from FOCUS 1.0 preview to FOCUS 1.0
If you haven’t heard about the FinOps Open Cost and Usage Specification (FOCUS), check out our FOCUS 1.0 introduction blog post. But if you’re here, I’m guessing you’ve at least looked into the FOCUS 1.0 preview which we announced in November 2023. We were diligently working alongside the FOCUS community to implement feedback and solidify the general availability release of the specification, which we were excited to finally release at FinOps X this year. But you probably know all that by now, so let’s focus on the core changes you’ll find if you’re already using FOCUS 1.0 preview:
Resource region
Usage amounts
Contracted (on-demand) cost
Charge categorization
Dataset metadata
Resource region
In FOCUS 1.0 preview, we had a Region column to indicate what region resources were deployed to. The specification wasn’t clear as to whether this was the ID or name and, after discussion, it was determined that both are valuable for FinOps practitioners. With that, Region was renamed and split into separate RegionId and RegionName columns. In Azure, this will return lowercase values without spaces, like “brazilsouth” for the ID, and English display names, like “Brazil South”, for the name. For anyone new to our FOCUS dataset, it’s also important to note that FOCUS leverages the standard Azure region ID and display names, which are slightly different than the actual and amortized datasets. As an example, you’ll see “Brazil South” instead of “BR South”.
Related to the resource region, FOCUS 1.0 has declared that some columns, like AvailabilityZone are optional, and when not specified, they should not be included in the dataset. With that, we’ve removed the empty AvailabilityZone column from the FOCUS 1.0 dataset. Per the specification, we’ll re-add this column when we can include the value.
Usage amount
In FOCUS, the amount you’ve used or purchased is tracked with the PricingQuantity, which is coupled with the PricingUnit to explain what the quantity refers to. Some services are priced in “blocks”, like per 1,000 tokens for Azure OpenAI Service. Due to this, PricingQuantity is tracked separately from what was called UsageQuantity, which specified the distinct units without “blocking”. In FOCUS 1.0, UsageQuantity and UsageUnit were renamed to ConsumedQuantity and ConsumedUnit and changed to only represent usage amounts and explicitly not cover purchase amounts. This means, ConsumedQuantity will only have a value when ChargeCategory == “Usage”. To determine the amount purchased, please use the PricingQuantity.
Contracted (on-demand) cost
FOCUS 1.0 preview didn’t define a way to indicate what the on-demand unit price or cost was for a service after negotiated discounts were applied, but without commitment discounts. Given how important it is to calculate savings, we added extended columns for x_OnDemandCost and x_OnDemandUnitPrice to include this important detail. After much deliberation, FOCUS 1.0 introduced standard ContractedCost and ContractedUnitPrice columns for the same purpose. With that, we’ve renamed x_OnDemandCost and x_OnDemandUnitPrice columns to ContractedCost and ContractedUnitPrice.
Charge categorization
The biggest change in FOCUS 1.0 was a reclassification of the ChargeSubcategory column from 1.0 preview. ChargeSubcategory was used to indicate what type of usage or adjustment the charge (row) represents. Specifically, this indicated whether a charge related to a commitment discount was used or unused and whether an adjustment was a credit, refund, etc. In FOCUS 1.0, ChargeSubcategory was removed in favor of the following changes:
Refunds are now identified by ChargeClass == “Correction”.
ChargeCategory will be “Usage”, “Purchase”, etc. for any “correction” charges, allowing you to sum the total usage costs, including refunds.
Credits are now identified by ChargeCategory == “Credit” in FOCUS, but note that credits are not currently included in Cost Management data.
To determine whether a charge represents a used or unused portion of a commitment discount, use CommitmentDiscountStatus == “Used” or “Unused”.
Slightly tangential to these, PricingCategory values were also updated from “On-Demand” and “Commitment-Based” to “Standard” and “Committed”. The purpose and intent remains the same for these. Only the values changed.
Other updates
Beyond these core changes to the specification, we also updated the mappings used for regions, pricing units, service categories, and resource types to address a few gaps. These mapping files are hosted in the FinOps toolkit and available for anyone interested in data cleansing and normalization outside of FOCUS, like for historical datasets. If you notice anything missing, please do create an issue or submit a PR. To learn more, see the FinOps toolkit contribution guide.
Lastly, we also removed the empty x_ChargeId column. This column was discussed for inclusion, but didn’t ultimately make it into the specification, so we never implemented it. If you’d like to see this added as an official column, please do submit feedback to the FOCUS community, which I’ll cover in a bit.
Dataset metadata
Given FOCUS how supports a set of conditional columns which may not always be present, depending on what’s supported by the provider, it’s more important than ever to have a clear understanding of what columns are provided in the dataset, what data type they are, etc. This includes extended columns in addition to the FOCUS columns. To support this, we’ve added 2 new metadata files for FOCUS 1.0 and 1.0 preview in the FinOps toolkit.
We’d love to get your feedback on these to understand how you’ll use them. We’ve already identified a use within FinOps hubs as part of our data ingestion pipeline. Let us know how you use it and if there’s anything else you’d like to see. We’re considering expanding this to document data transformation steps to convert actual and amortized data to FOCUS and also providing these metadata files for non-FOCUS datasets to provide the same programmatic level of detail for data integration scenarios.
What’s next
So, what’s next for FOCUS? The main thing we (as the FOCUS community) are looking for is your feedback. Learn about FOCUS, leverage reusable FOCUS reports (like the Power BI reports in the FinOps toolkit), align your existing reporting to FOCUS, educate stakeholders, and most importantly, if you have questions or feedback about the columns or values you see in your FOCUS dataset, let us know!
If you have questions about the Microsoft implementation, feel free to ask here on Tech Community, contact the Cost Management team through your Microsoft Services account team, or ask in the #microsoft-cloud channel in the FinOps Foundation Slack community.
If you have questions or feedback about the specification itself, use the #chat-focus channel in the FinOps Foundation Slack community or create an issue in the FOCUS GitHub repository, which will be triaged by maintainers within a few days to determine if it should be added to the 1.1 release, which is coming in November 2024 at FinOps X Europe!
These are exciting times! It’s amazing to see 4 of the biggest cloud providers all adopting this revolutionary new data format! Let us know what you’d like to see as we plot out the future direction of FOCUS and our tooling to support your FinOps efforts.
Microsoft Tech Community – Latest Blogs –Read More
License manager error -8. I want to change my license from old to new computer.
The licence has been transferred from old laptop to new. But I get this error.The licence has been transferred from old laptop to new. But I get this error. The licence has been transferred from old laptop to new. But I get this error. licence error, when trying to change computer MATLAB Answers — New Questions
Collect information of a file with the same kind of text pattern
Dear all
I have the same kind of text file that I am attaching to this question in different folders in my MatLab path. As you can see, from line 42 to the end of the file, there are text blocks like:
Cr1 Cr2 ( 0, 0, 0) 2.6832 ( 0.000, -4.001, 0.000) 4.001
J_iso: 2.6832
[Testing!] Jprime: 10.082, B: -4.132
[Testing!] DMI: ( 0.0635 0.0000 -0.0306)
[Testing!]J_ani:
[[-1.401 0. 0.396]
[ 0. -0.327 0. ]
[ 0.396 0. -8.263]]
I would be interested in MatLab collecting information from this kind of patterns as follows:
As you can see, at the end of the first line of the text block that I put before as an example, the number 4.001 can be found. There are other text blocks with the last element of the first line ending in that specific number, but also on other values, like 6.930. It would be great if for each occurrence of the element 4.001 (and also for 6.930) as the last element of the first line of a text block MatLab creates a line with the following information in a line:
(i) First column: number index of the first Crx appearance (in the example above, 1)
(ii) Second column: number index of the second Crx appearance (in the example above, 2)
(iii) Third to fifth columns: the three elements in the first parenthesis of the first line (in the example above, 0 0 0)
(iv) Sixth to eighth columns: the three elements inside the parenthesis of the fourth line of the text block (that it is, what it is after the text "[Testing!] DMI:". In this case, 0.0635 0.0000 -0.0306).
So first line would be 1 2 0 0 0 0.0635 0.0000 -0.0306. Same for all the occurrences of 6.930 as the last element of the first line of the text blocks.
Any idea on how to do this efficiently?Dear all
I have the same kind of text file that I am attaching to this question in different folders in my MatLab path. As you can see, from line 42 to the end of the file, there are text blocks like:
Cr1 Cr2 ( 0, 0, 0) 2.6832 ( 0.000, -4.001, 0.000) 4.001
J_iso: 2.6832
[Testing!] Jprime: 10.082, B: -4.132
[Testing!] DMI: ( 0.0635 0.0000 -0.0306)
[Testing!]J_ani:
[[-1.401 0. 0.396]
[ 0. -0.327 0. ]
[ 0.396 0. -8.263]]
I would be interested in MatLab collecting information from this kind of patterns as follows:
As you can see, at the end of the first line of the text block that I put before as an example, the number 4.001 can be found. There are other text blocks with the last element of the first line ending in that specific number, but also on other values, like 6.930. It would be great if for each occurrence of the element 4.001 (and also for 6.930) as the last element of the first line of a text block MatLab creates a line with the following information in a line:
(i) First column: number index of the first Crx appearance (in the example above, 1)
(ii) Second column: number index of the second Crx appearance (in the example above, 2)
(iii) Third to fifth columns: the three elements in the first parenthesis of the first line (in the example above, 0 0 0)
(iv) Sixth to eighth columns: the three elements inside the parenthesis of the fourth line of the text block (that it is, what it is after the text "[Testing!] DMI:". In this case, 0.0635 0.0000 -0.0306).
So first line would be 1 2 0 0 0 0.0635 0.0000 -0.0306. Same for all the occurrences of 6.930 as the last element of the first line of the text blocks.
Any idea on how to do this efficiently? Dear all
I have the same kind of text file that I am attaching to this question in different folders in my MatLab path. As you can see, from line 42 to the end of the file, there are text blocks like:
Cr1 Cr2 ( 0, 0, 0) 2.6832 ( 0.000, -4.001, 0.000) 4.001
J_iso: 2.6832
[Testing!] Jprime: 10.082, B: -4.132
[Testing!] DMI: ( 0.0635 0.0000 -0.0306)
[Testing!]J_ani:
[[-1.401 0. 0.396]
[ 0. -0.327 0. ]
[ 0.396 0. -8.263]]
I would be interested in MatLab collecting information from this kind of patterns as follows:
As you can see, at the end of the first line of the text block that I put before as an example, the number 4.001 can be found. There are other text blocks with the last element of the first line ending in that specific number, but also on other values, like 6.930. It would be great if for each occurrence of the element 4.001 (and also for 6.930) as the last element of the first line of a text block MatLab creates a line with the following information in a line:
(i) First column: number index of the first Crx appearance (in the example above, 1)
(ii) Second column: number index of the second Crx appearance (in the example above, 2)
(iii) Third to fifth columns: the three elements in the first parenthesis of the first line (in the example above, 0 0 0)
(iv) Sixth to eighth columns: the three elements inside the parenthesis of the fourth line of the text block (that it is, what it is after the text "[Testing!] DMI:". In this case, 0.0635 0.0000 -0.0306).
So first line would be 1 2 0 0 0 0.0635 0.0000 -0.0306. Same for all the occurrences of 6.930 as the last element of the first line of the text blocks.
Any idea on how to do this efficiently? text patterns MATLAB Answers — New Questions
How to determine the minimum point of a plot?
Hi,
I have a plot as attached herewith in which the value of the point as shown by arrow mark is to be determined and compared to a reference value. It is plotted at a time step of 999 (t ranges from 1 to 1000).
global data;
cp=0;
for i=999:max(length(data.variable.t))
for j=60:max(length(data.variable.x))-1
if data.variable.curvepressure(i,j) <= -10.2661
disp(data.variable.curvepressure(i,j))
cp=1;
break
end
end
end
The above code is not working and need your advice please.Hi,
I have a plot as attached herewith in which the value of the point as shown by arrow mark is to be determined and compared to a reference value. It is plotted at a time step of 999 (t ranges from 1 to 1000).
global data;
cp=0;
for i=999:max(length(data.variable.t))
for j=60:max(length(data.variable.x))-1
if data.variable.curvepressure(i,j) <= -10.2661
disp(data.variable.curvepressure(i,j))
cp=1;
break
end
end
end
The above code is not working and need your advice please. Hi,
I have a plot as attached herewith in which the value of the point as shown by arrow mark is to be determined and compared to a reference value. It is plotted at a time step of 999 (t ranges from 1 to 1000).
global data;
cp=0;
for i=999:max(length(data.variable.t))
for j=60:max(length(data.variable.x))-1
if data.variable.curvepressure(i,j) <= -10.2661
disp(data.variable.curvepressure(i,j))
cp=1;
break
end
end
end
The above code is not working and need your advice please. transferred MATLAB Answers — New Questions
Freezing panels – other users worksheet
Hi,
We are working on worksheet ( few users using the same worksheet ), and whenever one of the users uses freezing panels option in view menu it happens for all the users currently working on worksheet.
Is there a way or addin that will allow implementation of freeze panels only for that one specific user ?
Hi,We are working on worksheet ( few users using the same worksheet ), and whenever one of the users uses freezing panels option in view menu it happens for all the users currently working on worksheet. Is there a way or addin that will allow implementation of freeze panels only for that one specific user ? Read More
Is there a way to get Copilot to look through a PDF file in a public website and summarise it?
Is it possible for Copilot to look through a file in a public website and retrieve information from it? For example, when I asked Copilot to
“extract Volkswagen AG’s latest inventory balance for the quarter ended March 2024, as per the investor relations section on their website.”
I received this answer
“I’m sorry, but I don’t have the capability to extract specific financial data from external websites such as Volkswagen AG’s investor relations section. However, you can usually find this information by visiting the investor relations page of Volkswagen AG’s website and looking for their financial reports or quarterly statements. These documents typically include detailed information about the company’s inventory balance and other financial metrics for the quarter. If you need assistance with analyzing the data or have any other questions, feel free to ask!2”
I downloaded the file and tried to attach it to the chat but Copilot complained about the file size (20MB)
Am I doing something wrong or are these actually Copilot limitations?
Many thanks!
Zainab
Is it possible for Copilot to look through a file in a public website and retrieve information from it? For example, when I asked Copilot to “extract Volkswagen AG’s latest inventory balance for the quarter ended March 2024, as per the investor relations section on their website.” I received this answer “I’m sorry, but I don’t have the capability to extract specific financial data from external websites such as Volkswagen AG’s investor relations section. However, you can usually find this information by visiting the investor relations page of Volkswagen AG’s website and looking for their financial reports or quarterly statements. These documents typically include detailed information about the company’s inventory balance and other financial metrics for the quarter. If you need assistance with analyzing the data or have any other questions, feel free to ask!2” I downloaded the file and tried to attach it to the chat but Copilot complained about the file size (20MB) Am I doing something wrong or are these actually Copilot limitations? Many thanks!Zainab Read More