Month: June 2024
internal user email quarantined and reason “high confidence phish”
Have you ever seen email quarantined when both sender and recipient are internal organization user and the quarantine reason is high confidence phish by the default built-in anti spam policy?
really confused why it happened and how to avoid such false positive..
Have you ever seen email quarantined when both sender and recipient are internal organization user and the quarantine reason is high confidence phish by the default built-in anti spam policy? really confused why it happened and how to avoid such false positive.. Read More
ySense Referral Code [165920172]: Get $5 Sign up Bonus And $2 Referral Bonus
If you’re looking to supplement your income or simply earn some extra cash, Ysense’s referral program is an excellent opportunity to explore.
The best ySense referral code is [165920172] that gives you a $0.10 to $0.30 head start sign up bonus when you use this code to sign up. You can also use this referral link.
Signup Commissions
1. For each referral that becomes active you will earn a signup commission of $0.10 or $0.30 from select countries.
2. Once your referrals earn their first $5.00 (excluding commissions and bonuses) you will also earn an extra $2.00* bonus!
Activity Commissions
For every approved Survey Offer your referrals complete you earn a whopping 20%* commission of that they earn.Increase your commission level to up to 30%. The more active your referrals are the more you earn!
Use this latest ySense promo code “165920172” to sign up and get up to $0.30 sign up reward after you complete your first survey.
Here are some Latest Ysense Referral Codes:
Ysense referral code 2024: [165920172]Ysense Referral Code June: [165920172]Ysense promo code: [165920172]Ysense referral code new users: [165920172]
If you’re looking to supplement your income or simply earn some extra cash, Ysense’s referral program is an excellent opportunity to explore. The best ySense referral code is [165920172] that gives you a $0.10 to $0.30 head start sign up bonus when you use this code to sign up. You can also use this referral link.Signup Commissions1. For each referral that becomes active you will earn a signup commission of $0.10 or $0.30 from select countries.2. Once your referrals earn their first $5.00 (excluding commissions and bonuses) you will also earn an extra $2.00* bonus!Activity CommissionsFor every approved Survey Offer your referrals complete you earn a whopping 20%* commission of that they earn.Increase your commission level to up to 30%. The more active your referrals are the more you earn! Use this latest ySense promo code “165920172” to sign up and get up to $0.30 sign up reward after you complete your first survey. Here are some Latest Ysense Referral Codes: Ysense referral code 2024: [165920172]Ysense Referral Code June: [165920172]Ysense promo code: [165920172]Ysense referral code new users: [165920172] Read More
onprem (self-hosted) to azure cloud
Hi All, I am looking for your support on ADF where I had to copy date from onprem(self-hosted) to Azure through ADF. In source, I have multi-level data (year-under that month-each month-under that days-under that days-each day-under that each hour -each min data) eg. 2013(year)-12(month)-03(march)-03(day)-00hrs(start hour)-30(min).
In Source, I opted for binary as I do not want read or write or transformation but just copy however, it throughs an error saying “binary level file copy can be done but not folder level”
I am able to pick each data in ground level but want to copy from the year level recursively (all child items). Can anybody through your thoughts on this, please?
Hi All, I am looking for your support on ADF where I had to copy date from onprem(self-hosted) to Azure through ADF. In source, I have multi-level data (year-under that month-each month-under that days-under that days-each day-under that each hour -each min data) eg. 2013(year)-12(month)-03(march)-03(day)-00hrs(start hour)-30(min).In Source, I opted for binary as I do not want read or write or transformation but just copy however, it throughs an error saying “binary level file copy can be done but not folder level”I am able to pick each data in ground level but want to copy from the year level recursively (all child items). Can anybody through your thoughts on this, please? Read More
Pulling through row data to a new sheet where a condition applies
I have a spreadsheet with multiple tabs, our team fill in a quantity tab on each row if they need an item.
I would like to try and create a pick list of sorts on a tab so that only rows with a number in the quantity column appear in the pick list tab.
Is this possible?
I have a spreadsheet with multiple tabs, our team fill in a quantity tab on each row if they need an item. I would like to try and create a pick list of sorts on a tab so that only rows with a number in the quantity column appear in the pick list tab. Is this possible? Read More
Microsoft Urges Consumer and Enterprise Users to Move to Newer Outlook Versions
Microsoft wants users to upgrade from legacy Outlook clients. The biggest impact for Microsoft 365 tenants might be the loss of OWA light, but consumer users are in for the same kind of change that enterprise users experienced when Microsoft blocked basic authentication for Exchange Online. The announcement wasn’t very clear about what’s happening, so we’re happy to clarify matters.
https://office365itpros.com/2024/06/19/legacy-outlook-clients-retirement/
Microsoft wants users to upgrade from legacy Outlook clients. The biggest impact for Microsoft 365 tenants might be the loss of OWA light, but consumer users are in for the same kind of change that enterprise users experienced when Microsoft blocked basic authentication for Exchange Online. The announcement wasn’t very clear about what’s happening, so we’re happy to clarify matters.
https://office365itpros.com/2024/06/19/legacy-outlook-clients-retirement/ Read More
Excel Table format change
Hi,
I need to convert a table format as per picture below (table with hundreds of lines).
Any suggestion to automate this kind of table transformation?
Many Thanks.
Joaquim
Hi,I need to convert a table format as per picture below (table with hundreds of lines).Any suggestion to automate this kind of table transformation?Many Thanks.Joaquim Read More
Endpoint Security
Hello,
Kindly i need to know if we can use the policies in endpoint security like antivirus etc if the devices are onboarded to defender by script or gpo without intune license
Regards,
Hello, Kindly i need to know if we can use the policies in endpoint security like antivirus etc if the devices are onboarded to defender by script or gpo without intune license Regards, Read More
Edit Subject in New Outlook
I cannot edit the Subject of emails in ‘New’ Outlook. This is something we use as part of a business process here.
Does anyone know if MS have plans to fix this in ‘New’ Outlook?
I cannot edit the Subject of emails in ‘New’ Outlook. This is something we use as part of a business process here.Does anyone know if MS have plans to fix this in ‘New’ Outlook? Read More
Auto fetch logo in email signature in Outlook
I want to automatically fetch logo through transport rule , the logo is at a location in GDrive , I have written the HTML code for it , but when the email is sent , the recipient does receive the logo outline , but is shows as blocked image src .
Request you to help regarding same , below is my code pls do necessary changes if required –
<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”UTF-8″>
<title>Email Signature</title>
</head>
<body>
<table
style=”width: 600px; font-size: 12px; font-family: Arial, sans-serif; line-height: normal; background: transparent !important;”
cellpadding=”0″ cellspacing=”0″>
<tbody>
<tr>
<td style=”width: 364px; vertical-align: top;” valign=”top”>
<span
style=”font-size: 13px; font-family: Arial, sans-serif; line-height: 20px; font-weight: bold;”>
%%firstname%% %%lastname%%
<br>
</span>
<span style=”font-size: 13px; font-family: Arial, sans-serif; line-height: 25px;”>
<span style=” font-family: Arial, sans-serif; line-height: 15px;”><span>
%%Title%% (%%Department%%)
<br>
<br>
</span>
</span>
<img border=”0″ style=”width: 100px; height: 30px; border: 0;”
src=””>
<p
style=”font-size: 12px; font-family: Arial, sans-serif; padding-bottom: 1px;margin:0;color:grey”>
<span style=”font-family: Arial, sans-serif;”>
</span>
<br>
</p>
<p style=”font-size: 12px; font-family: Arial, sans-serif; padding-bottom: 1px;margin:0″>
<span style=”font-family: Arial, sans-serif; “>
<span style=”font-weight: bold;”>M: </span>%%MobilePhone%% | <span style=”font-weight: bold;”>P: </span>%%Phone%%
</span>
<br>
</span>
<span style=”font-size: 12px; font-family: Arial, sans-serif; padding-bottom: 1px;”>
<span style=”font-family: Arial, sans-serif; “>
<a href=”mailto:%%Email%%” style=”font-family: Arial, sans-serif; “>
<span style=”font-family: Arial, sans-serif; “>%%email%%</span>
</a>
</span>
<span>
<p style=”margin:0;padding-bottom:1px”><a href=””
target=”_blank” style=””>
<span style=”font-family: Arial, sans-serif; “></span>
</a></p>
</span>
<br>
</span>
<br>
<span style=”padding-top: 10px; vertical-align: bottom;”>
<span style=”display: inline-block; height: 22px;”></span>
</span>
</td>
</tr>
</tbody>
</table>
</body>
</html>
I want to automatically fetch logo through transport rule , the logo is at a location in GDrive , I have written the HTML code for it , but when the email is sent , the recipient does receive the logo outline , but is shows as blocked image src . Request you to help regarding same , below is my code pls do necessary changes if required – <!DOCTYPE html><html lang=”en”> <head><meta charset=”UTF-8″><title>Email Signature</title></head> <body><tablestyle=”width: 600px; font-size: 12px; font-family: Arial, sans-serif; line-height: normal; background: transparent !important;”cellpadding=”0″ cellspacing=”0″><tbody><tr> <td style=”width: 364px; vertical-align: top;” valign=”top”><spanstyle=”font-size: 13px; font-family: Arial, sans-serif; line-height: 20px; font-weight: bold;”>%%firstname%% %%lastname%%<br></span><span style=”font-size: 13px; font-family: Arial, sans-serif; line-height: 25px;”><span style=” font-family: Arial, sans-serif; line-height: 15px;”><span>%%Title%% (%%Department%%)<br><br></span></span> <img border=”0″ style=”width: 100px; height: 30px; border: 0;”src=””> <pstyle=”font-size: 12px; font-family: Arial, sans-serif; padding-bottom: 1px;margin:0;color:grey”><span style=”font-family: Arial, sans-serif;”></span><br></p><p style=”font-size: 12px; font-family: Arial, sans-serif; padding-bottom: 1px;margin:0″><span style=”font-family: Arial, sans-serif; “><span style=”font-weight: bold;”>M: </span>%%MobilePhone%% | <span style=”font-weight: bold;”>P: </span>%%Phone%%</span><br></span><span style=”font-size: 12px; font-family: Arial, sans-serif; padding-bottom: 1px;”><span style=”font-family: Arial, sans-serif; “> <a href=”mailto:%%Email%%” style=”font-family: Arial, sans-serif; “><span style=”font-family: Arial, sans-serif; “>%%email%%</span></a></span><span><p style=”margin:0;padding-bottom:1px”><a href=””target=”_blank” style=””><span style=”font-family: Arial, sans-serif; “></span></a></p></span><br></span> <br><span style=”padding-top: 10px; vertical-align: bottom;”><span style=”display: inline-block; height: 22px;”></span></span></td></tr></tbody></table></body> </html> Read More
HDL Coder Mult + Add uses DSP48E1 + fabric
Matlab 2023a, HDL Coder ver4.1, and VC707 board. I tried to use Coder on dsp_subsys1 from: https://www.mathworks.com/help/hdlcoder/ug/modeling-efficient-multiplication-and-division-operations-for-fpga-targeting.html
But the workflow advisor always generates adder logic in the fabric, in addition to using a DSP slice. THe resets are configured as synchronous.
I’m basing my last sentence on this: https://www.mathworks.com/matlabcentral/answers/1727185-multiply-and-add-not-correctly-mapping-to-a-single-dsp-slice?s_tid=srchtitle
Help on this would be much appreciated…Matlab 2023a, HDL Coder ver4.1, and VC707 board. I tried to use Coder on dsp_subsys1 from: https://www.mathworks.com/help/hdlcoder/ug/modeling-efficient-multiplication-and-division-operations-for-fpga-targeting.html
But the workflow advisor always generates adder logic in the fabric, in addition to using a DSP slice. THe resets are configured as synchronous.
I’m basing my last sentence on this: https://www.mathworks.com/matlabcentral/answers/1727185-multiply-and-add-not-correctly-mapping-to-a-single-dsp-slice?s_tid=srchtitle
Help on this would be much appreciated… Matlab 2023a, HDL Coder ver4.1, and VC707 board. I tried to use Coder on dsp_subsys1 from: https://www.mathworks.com/help/hdlcoder/ug/modeling-efficient-multiplication-and-division-operations-for-fpga-targeting.html
But the workflow advisor always generates adder logic in the fabric, in addition to using a DSP slice. THe resets are configured as synchronous.
I’m basing my last sentence on this: https://www.mathworks.com/matlabcentral/answers/1727185-multiply-and-add-not-correctly-mapping-to-a-single-dsp-slice?s_tid=srchtitle
Help on this would be much appreciated… multiply add hdl coder MATLAB Answers — New Questions
Assignment of colors in a scatter plot
I have a problem when using the colorbar in my scatter plot. I have a variable called flag, that can have the value 0, 1 or 2 and is used to plot the color of my scatter plot. Furthermore I defined a custom colormap with three colors which are assigned to each flag. The problem that arrises now is that the wrong colors are used in my scatter plot.
For example: Flag 1 is coded with green but the scatter shows it in blue (used for flag 0). I tried to solve it by setting the limits manually but it still has a problem with correctly assigning the colors.
c = colorbar;
c.Ticks = [0, 1, 2];
clim([0 2]);
Heres an example shown:
The first tile shows both data together and the two tiles at the bottom seperately. The colors in the third tile (bottom right) are shown correctly but in the first tile they are shown in a different color.I have a problem when using the colorbar in my scatter plot. I have a variable called flag, that can have the value 0, 1 or 2 and is used to plot the color of my scatter plot. Furthermore I defined a custom colormap with three colors which are assigned to each flag. The problem that arrises now is that the wrong colors are used in my scatter plot.
For example: Flag 1 is coded with green but the scatter shows it in blue (used for flag 0). I tried to solve it by setting the limits manually but it still has a problem with correctly assigning the colors.
c = colorbar;
c.Ticks = [0, 1, 2];
clim([0 2]);
Heres an example shown:
The first tile shows both data together and the two tiles at the bottom seperately. The colors in the third tile (bottom right) are shown correctly but in the first tile they are shown in a different color. I have a problem when using the colorbar in my scatter plot. I have a variable called flag, that can have the value 0, 1 or 2 and is used to plot the color of my scatter plot. Furthermore I defined a custom colormap with three colors which are assigned to each flag. The problem that arrises now is that the wrong colors are used in my scatter plot.
For example: Flag 1 is coded with green but the scatter shows it in blue (used for flag 0). I tried to solve it by setting the limits manually but it still has a problem with correctly assigning the colors.
c = colorbar;
c.Ticks = [0, 1, 2];
clim([0 2]);
Heres an example shown:
The first tile shows both data together and the two tiles at the bottom seperately. The colors in the third tile (bottom right) are shown correctly but in the first tile they are shown in a different color. scatter plot, colorbar, assignment MATLAB Answers — New Questions
how do these function (separate functions)
clc; clear;
input=[‘MATLAB’];
for i= 1:length(input)
fprintf(input(1:i))
fprintf(‘n’)
end
%—————————————————————————————–
clc; clear;
for j=length(input):-1:2
fprintf(input(1:j-1))
fprintf(‘n’)
end
for x= 5:-1:1
msg=[];
for y = 1 : x
number= x*y;
msg = [msg number];
end
disp(msg);
end
%—————————————————————————————–
clc; clear;
height = 10;
for i= 1:height;
for j= i:height;
if mod(i,2)==0
fprintf ‘O’
else
fprintf ‘X’
end
end
fprintf ‘n’
endclc; clear;
input=[‘MATLAB’];
for i= 1:length(input)
fprintf(input(1:i))
fprintf(‘n’)
end
%—————————————————————————————–
clc; clear;
for j=length(input):-1:2
fprintf(input(1:j-1))
fprintf(‘n’)
end
for x= 5:-1:1
msg=[];
for y = 1 : x
number= x*y;
msg = [msg number];
end
disp(msg);
end
%—————————————————————————————–
clc; clear;
height = 10;
for i= 1:height;
for j= i:height;
if mod(i,2)==0
fprintf ‘O’
else
fprintf ‘X’
end
end
fprintf ‘n’
end clc; clear;
input=[‘MATLAB’];
for i= 1:length(input)
fprintf(input(1:i))
fprintf(‘n’)
end
%—————————————————————————————–
clc; clear;
for j=length(input):-1:2
fprintf(input(1:j-1))
fprintf(‘n’)
end
for x= 5:-1:1
msg=[];
for y = 1 : x
number= x*y;
msg = [msg number];
end
disp(msg);
end
%—————————————————————————————–
clc; clear;
height = 10;
for i= 1:height;
for j= i:height;
if mod(i,2)==0
fprintf ‘O’
else
fprintf ‘X’
end
end
fprintf ‘n’
end matlab MATLAB Answers — New Questions
Sorting an array of strings based on number pattern
I’m looking for an _efficient_ way to solve the following issue:
Typically I read out all files in a directory that match a certain pattern by means of the *dir* function:
dirFiles = dir(‘Common_*_common.ext’);
fileNames= {dirFiles.name};
This does what it is supposed to do and gives me a nice cell array with files I need to load.
However, the pattern is of the format _0, 1, 2, …, 8, 9, 10_ and the order of my *fileNames* comes out as _0, 10, 1, …, 7, 8, 9_. Unfortunately, changing the filenames themselves to _00, 01, 02, …, 10_ is not an option. Is there an efficient way to sort such arrays to the correct format?
Of course this should also hold when the sequence increases to larger numbers (e.g. _0, 1, 2, …, 29, 30, 31_).I’m looking for an _efficient_ way to solve the following issue:
Typically I read out all files in a directory that match a certain pattern by means of the *dir* function:
dirFiles = dir(‘Common_*_common.ext’);
fileNames= {dirFiles.name};
This does what it is supposed to do and gives me a nice cell array with files I need to load.
However, the pattern is of the format _0, 1, 2, …, 8, 9, 10_ and the order of my *fileNames* comes out as _0, 10, 1, …, 7, 8, 9_. Unfortunately, changing the filenames themselves to _00, 01, 02, …, 10_ is not an option. Is there an efficient way to sort such arrays to the correct format?
Of course this should also hold when the sequence increases to larger numbers (e.g. _0, 1, 2, …, 29, 30, 31_). I’m looking for an _efficient_ way to solve the following issue:
Typically I read out all files in a directory that match a certain pattern by means of the *dir* function:
dirFiles = dir(‘Common_*_common.ext’);
fileNames= {dirFiles.name};
This does what it is supposed to do and gives me a nice cell array with files I need to load.
However, the pattern is of the format _0, 1, 2, …, 8, 9, 10_ and the order of my *fileNames* comes out as _0, 10, 1, …, 7, 8, 9_. Unfortunately, changing the filenames themselves to _00, 01, 02, …, 10_ is not an option. Is there an efficient way to sort such arrays to the correct format?
Of course this should also hold when the sequence increases to larger numbers (e.g. _0, 1, 2, …, 29, 30, 31_). sort, strings, pattern, sequence, natsort, natsortfiles MATLAB Answers — New Questions
How can I change SCCM client setting?
Hello Team,
I don’t have a lot of experience with Configuration Manager and for this reason I’m asking about your help. We have new Configuration Manager environment and I’m able to install CM client on servers which are in AD. These servers are new or there were no CM clients installed before – everything is working fine.
Couple days ago we migrated some old servers to AD. I can see these servers on CM console but I can’t see that there are already CM client installed. On this servers CM client is already installed as they were before in different AD and they were managed by different CM. Now I need to change CM client settings to point to new CM instance. Could you tell me please if it is possible and how to do this or I need to uninstall client and then install CM client once again?
Regards,
Sebastian
Hello Team, I don’t have a lot of experience with Configuration Manager and for this reason I’m asking about your help. We have new Configuration Manager environment and I’m able to install CM client on servers which are in AD. These servers are new or there were no CM clients installed before – everything is working fine. Couple days ago we migrated some old servers to AD. I can see these servers on CM console but I can’t see that there are already CM client installed. On this servers CM client is already installed as they were before in different AD and they were managed by different CM. Now I need to change CM client settings to point to new CM instance. Could you tell me please if it is possible and how to do this or I need to uninstall client and then install CM client once again? Regards,Sebastian Read More
Embed Stream Videos with activated mcas
Embedding of stream videos doesn’t work when the url is mcas suffixed.
A support engineer:
I have received an update from our Escalation Engineering team after reviewing all the har traces and video recordings. I have been updated that the issue stems from a product limitation related to the mcas.ms. suffix. Unfortunately, the mcas reverse proxy cannot proxy the session and play the video in reverse proxy mode while pulling the video stream into a third-party app. This limitation is by design. The session is breaking at this point and getting stuck in loop.
It will be feasible not to use mcas.ms proxy in this scenario ,I wish I could have been more helpful in this regard.
Embedding of stream videos doesn’t work when the url is mcas suffixed. A support engineer: I have received an update from our Escalation Engineering team after reviewing all the har traces and video recordings. I have been updated that the issue stems from a product limitation related to the mcas.ms. suffix. Unfortunately, the mcas reverse proxy cannot proxy the session and play the video in reverse proxy mode while pulling the video stream into a third-party app. This limitation is by design. The session is breaking at this point and getting stuck in loop. It will be feasible not to use mcas.ms proxy in this scenario ,I wish I could have been more helpful in this regard. Read More
How do I get permission to view quarantined messages for a group mailbox?
I was added to an Outlook group through the Exchange admin center. If a quarantine mail comes in from email address removed for privacy reasons and I want to click on “Check message”, I am redirected to the quarantine website, but I get the message “You do not have the necessary permission to perform this process.” I can’t delete or release quarantined messages as a result. I don’t even see the messages. I am both a member and owner of the group. Does anyone have a solution for this?
You can also answer in German
I was added to an Outlook group through the Exchange admin center. If a quarantine mail comes in from email address removed for privacy reasons and I want to click on “Check message”, I am redirected to the quarantine website, but I get the message “You do not have the necessary permission to perform this process.” I can’t delete or release quarantined messages as a result. I don’t even see the messages. I am both a member and owner of the group. Does anyone have a solution for this? You can also answer in German Read More
Troubleshooting Tips and Solutions for Quick-Books Crashes When Sending Emails
I’m experiencing an issue where Q.B crashes every time I try to send an email. The error message appears shortly after initiating the email, causing significant disruption to my workflow. I’ve checked my email settings and they seem correct. How can I fix this problem and send emails without Q.B crashing?
I’m experiencing an issue where Q.B crashes every time I try to send an email. The error message appears shortly after initiating the email, causing significant disruption to my workflow. I’ve checked my email settings and they seem correct. How can I fix this problem and send emails without Q.B crashing? Read More
When saving a MATLAB figure with arrows and text as a PDF using print, the annotations are rescaled incorrectly, but using exportgraphics preserves the correct scaling
Hi everyone,
I’m encountering an issue when saving a figure in PDF format using MATLAB.
Here’s the context: I create a figure and plot some data using the following code (Part from the code comes from https://www.youtube.com/watch?v=wP3jjk1O18A&t=383s&ab_channel=PhysicsLaure):
hfig = figure; % save the figure handle in a variable
stairs(Results2Coal.Power_demand,’LineWidth’,1.5,’DisplayName’,’Load’,’Color’,colorsScheme(13,:));
hold on
stairs(Results2Coal.P_generated_coal_1,’LineWidth’,1.5,’DisplayName’,’G1′,’Color’,colorsScheme(2,:));
stairs(Results2Coal.P_generated_coal_2,’LineWidth’,1.5,’DisplayName’,’G2′,’Color’,colorsScheme(9,:));
plot(Results2Coal.P_max_coal_2*ones(1,24),’LineWidth’,0.5,’HandleVisibility’,’off’,’Color’,’k’,’LineStyle’,’–‘);
plot(Results2Coal.P_max_coal_1*ones(1,24),’LineWidth’,0.5,’HandleVisibility’,’off’,’Color’,’k’,’LineStyle’,’–‘);
xlabel(‘time $t$ (h)’)
ylabel(‘Power (MW)’)
legend(‘Location’, ‘northwest’,’FontSize’,12)
picturewidth = 20; % set this parameter and keep it forever
hw_ratio = 0.65; % feel free to play with this ratio
set(findall(hfig,’-property’,’FontSize’),’FontSize’,12) % adjust fontsize to your document
axis([0 25 1000 8000])
set(gca,’YTick’,[1000,1500, 2000,2685, 4000,5000,6000,7000, 8000]) % impose sensible tickmark locations
set(gca,’YTickLabel’,{‘1000’, ‘$G1_{min}$’,’2000′, ‘$G1_{max}$’,’4000′,’$G2_{max}$’,’6000′,’7000′,’8000′}) % put in informative labels at these tickmarks
set(gca,’XTick’,[0, 4,8,12, 16,20, 24]) % impose sensible tickmark locations
set(gca,’XTickLabel’,{’00:00′, ’04:00′, ’08:00′,’12:00′, ’16:00′, ’20:00′, ’24:00′}) %consistent tick interval
set(findall(hfig,’-property’,’Box’),’Box’,’off’) % optional
set(findall(hfig,’-property’,’Interpreter’),’Interpreter’,’latex’)
set(findall(hfig,’-property’,’TickLabelInterpreter’),’TickLabelInterpreter’,’latex’)
set(hfig,’Units’,’centimeters’,’Position’,[3 3 picturewidth hw_ratio*picturewidth])
pos = get(hfig,’Position’);
set(hfig,’PaperPositionMode’,’Auto’,’PaperUnits’,’centimeters’,’PaperSize’,[pos(3), pos(4)])
fname = [‘CommitmentProblem with two power plants’, datestr(now,’dd yyyy hhMM’)];
print(hfig,fname,’-dpdf’,’-vector’,’-fillpage’)
The problem arises when I use the figure menu to insert arrows and text (via Insert/Arrows and Insert/Text). These arrows and text appear correctly in the MATLAB figure window, but when I save the figure as a PDF, the arrows are rescaled and don’t match the original placement.
If I save the figure as a .png file, the scaling is correct, and the arrows and text maintain their placement. However, I prefer to use the .pdf format for my figures.
When I use:
exportgraphics(hfig, [fname, ‘.pdf’], ‘ContentType’, ‘vector’);
This method works and preserves the correct scaling of arrows and text in the PDF.
Although this solves my problem, I am still curious to understand why the print function does not work as expected.
Has anyone experienced a similar problem or have any insights on why print causes this scaling issue while exportgraphics does not?
Thanks in advance for your help!Hi everyone,
I’m encountering an issue when saving a figure in PDF format using MATLAB.
Here’s the context: I create a figure and plot some data using the following code (Part from the code comes from https://www.youtube.com/watch?v=wP3jjk1O18A&t=383s&ab_channel=PhysicsLaure):
hfig = figure; % save the figure handle in a variable
stairs(Results2Coal.Power_demand,’LineWidth’,1.5,’DisplayName’,’Load’,’Color’,colorsScheme(13,:));
hold on
stairs(Results2Coal.P_generated_coal_1,’LineWidth’,1.5,’DisplayName’,’G1′,’Color’,colorsScheme(2,:));
stairs(Results2Coal.P_generated_coal_2,’LineWidth’,1.5,’DisplayName’,’G2′,’Color’,colorsScheme(9,:));
plot(Results2Coal.P_max_coal_2*ones(1,24),’LineWidth’,0.5,’HandleVisibility’,’off’,’Color’,’k’,’LineStyle’,’–‘);
plot(Results2Coal.P_max_coal_1*ones(1,24),’LineWidth’,0.5,’HandleVisibility’,’off’,’Color’,’k’,’LineStyle’,’–‘);
xlabel(‘time $t$ (h)’)
ylabel(‘Power (MW)’)
legend(‘Location’, ‘northwest’,’FontSize’,12)
picturewidth = 20; % set this parameter and keep it forever
hw_ratio = 0.65; % feel free to play with this ratio
set(findall(hfig,’-property’,’FontSize’),’FontSize’,12) % adjust fontsize to your document
axis([0 25 1000 8000])
set(gca,’YTick’,[1000,1500, 2000,2685, 4000,5000,6000,7000, 8000]) % impose sensible tickmark locations
set(gca,’YTickLabel’,{‘1000’, ‘$G1_{min}$’,’2000′, ‘$G1_{max}$’,’4000′,’$G2_{max}$’,’6000′,’7000′,’8000′}) % put in informative labels at these tickmarks
set(gca,’XTick’,[0, 4,8,12, 16,20, 24]) % impose sensible tickmark locations
set(gca,’XTickLabel’,{’00:00′, ’04:00′, ’08:00′,’12:00′, ’16:00′, ’20:00′, ’24:00′}) %consistent tick interval
set(findall(hfig,’-property’,’Box’),’Box’,’off’) % optional
set(findall(hfig,’-property’,’Interpreter’),’Interpreter’,’latex’)
set(findall(hfig,’-property’,’TickLabelInterpreter’),’TickLabelInterpreter’,’latex’)
set(hfig,’Units’,’centimeters’,’Position’,[3 3 picturewidth hw_ratio*picturewidth])
pos = get(hfig,’Position’);
set(hfig,’PaperPositionMode’,’Auto’,’PaperUnits’,’centimeters’,’PaperSize’,[pos(3), pos(4)])
fname = [‘CommitmentProblem with two power plants’, datestr(now,’dd yyyy hhMM’)];
print(hfig,fname,’-dpdf’,’-vector’,’-fillpage’)
The problem arises when I use the figure menu to insert arrows and text (via Insert/Arrows and Insert/Text). These arrows and text appear correctly in the MATLAB figure window, but when I save the figure as a PDF, the arrows are rescaled and don’t match the original placement.
If I save the figure as a .png file, the scaling is correct, and the arrows and text maintain their placement. However, I prefer to use the .pdf format for my figures.
When I use:
exportgraphics(hfig, [fname, ‘.pdf’], ‘ContentType’, ‘vector’);
This method works and preserves the correct scaling of arrows and text in the PDF.
Although this solves my problem, I am still curious to understand why the print function does not work as expected.
Has anyone experienced a similar problem or have any insights on why print causes this scaling issue while exportgraphics does not?
Thanks in advance for your help! Hi everyone,
I’m encountering an issue when saving a figure in PDF format using MATLAB.
Here’s the context: I create a figure and plot some data using the following code (Part from the code comes from https://www.youtube.com/watch?v=wP3jjk1O18A&t=383s&ab_channel=PhysicsLaure):
hfig = figure; % save the figure handle in a variable
stairs(Results2Coal.Power_demand,’LineWidth’,1.5,’DisplayName’,’Load’,’Color’,colorsScheme(13,:));
hold on
stairs(Results2Coal.P_generated_coal_1,’LineWidth’,1.5,’DisplayName’,’G1′,’Color’,colorsScheme(2,:));
stairs(Results2Coal.P_generated_coal_2,’LineWidth’,1.5,’DisplayName’,’G2′,’Color’,colorsScheme(9,:));
plot(Results2Coal.P_max_coal_2*ones(1,24),’LineWidth’,0.5,’HandleVisibility’,’off’,’Color’,’k’,’LineStyle’,’–‘);
plot(Results2Coal.P_max_coal_1*ones(1,24),’LineWidth’,0.5,’HandleVisibility’,’off’,’Color’,’k’,’LineStyle’,’–‘);
xlabel(‘time $t$ (h)’)
ylabel(‘Power (MW)’)
legend(‘Location’, ‘northwest’,’FontSize’,12)
picturewidth = 20; % set this parameter and keep it forever
hw_ratio = 0.65; % feel free to play with this ratio
set(findall(hfig,’-property’,’FontSize’),’FontSize’,12) % adjust fontsize to your document
axis([0 25 1000 8000])
set(gca,’YTick’,[1000,1500, 2000,2685, 4000,5000,6000,7000, 8000]) % impose sensible tickmark locations
set(gca,’YTickLabel’,{‘1000’, ‘$G1_{min}$’,’2000′, ‘$G1_{max}$’,’4000′,’$G2_{max}$’,’6000′,’7000′,’8000′}) % put in informative labels at these tickmarks
set(gca,’XTick’,[0, 4,8,12, 16,20, 24]) % impose sensible tickmark locations
set(gca,’XTickLabel’,{’00:00′, ’04:00′, ’08:00′,’12:00′, ’16:00′, ’20:00′, ’24:00′}) %consistent tick interval
set(findall(hfig,’-property’,’Box’),’Box’,’off’) % optional
set(findall(hfig,’-property’,’Interpreter’),’Interpreter’,’latex’)
set(findall(hfig,’-property’,’TickLabelInterpreter’),’TickLabelInterpreter’,’latex’)
set(hfig,’Units’,’centimeters’,’Position’,[3 3 picturewidth hw_ratio*picturewidth])
pos = get(hfig,’Position’);
set(hfig,’PaperPositionMode’,’Auto’,’PaperUnits’,’centimeters’,’PaperSize’,[pos(3), pos(4)])
fname = [‘CommitmentProblem with two power plants’, datestr(now,’dd yyyy hhMM’)];
print(hfig,fname,’-dpdf’,’-vector’,’-fillpage’)
The problem arises when I use the figure menu to insert arrows and text (via Insert/Arrows and Insert/Text). These arrows and text appear correctly in the MATLAB figure window, but when I save the figure as a PDF, the arrows are rescaled and don’t match the original placement.
If I save the figure as a .png file, the scaling is correct, and the arrows and text maintain their placement. However, I prefer to use the .pdf format for my figures.
When I use:
exportgraphics(hfig, [fname, ‘.pdf’], ‘ContentType’, ‘vector’);
This method works and preserves the correct scaling of arrows and text in the PDF.
Although this solves my problem, I am still curious to understand why the print function does not work as expected.
Has anyone experienced a similar problem or have any insights on why print causes this scaling issue while exportgraphics does not?
Thanks in advance for your help! matlab, plotting, print, export, exportgraphics MATLAB Answers — New Questions
while i doing FFT analysis the following error is occurred
Warning: Error occurred while executing the listener callback for event InstanceCreated defined for class matlab.metadata.Class:
Invalid or deleted object.Warning: Error occurred while executing the listener callback for event InstanceCreated defined for class matlab.metadata.Class:
Invalid or deleted object. Warning: Error occurred while executing the listener callback for event InstanceCreated defined for class matlab.metadata.Class:
Invalid or deleted object. fft analysis error in 2024a version MATLAB Answers — New Questions
I want to find the centroid at a specific image
I want to find the centroid on the label of the wine bottle. After finding the centroid, I want to crop out the whole label image as it is my ROI.
Please, anyone can help me with the coding?I want to find the centroid on the label of the wine bottle. After finding the centroid, I want to crop out the whole label image as it is my ROI.
Please, anyone can help me with the coding? I want to find the centroid on the label of the wine bottle. After finding the centroid, I want to crop out the whole label image as it is my ROI.
Please, anyone can help me with the coding? image processing, digital image processing, centroid MATLAB Answers — New Questions