Category: News
I need to extract or get latest conversation mail with its attachment from graphAPI?
when i am requesting to the azure graphAPI by the below url
f’https://graph.microsoft.com/v1.0/me/mailFolders/{folder}/messages?$top=1&$orderby=receivedDateTime desc’
it is coming the email body html entire conversation message as a whole html. But i need latest conversation either it is a single mail or reply mail and its attachments only , I need. I have tried but the html body giving full conversations as a html content .
when i am requesting to the azure graphAPI by the below urlf’https://graph.microsoft.com/v1.0/me/mailFolders/{folder}/messages?$top=1&$orderby=receivedDateTime desc’it is coming the email body html entire conversation message as a whole html. But i need latest conversation either it is a single mail or reply mail and its attachments only , I need. I have tried but the html body giving full conversations as a html content . Read More
How to embed Outlook’s inbox into my own project?
I wanna ask, does software support outlook’s email inbox to embed into our web project? We already buy the microsoft 365 office.
I wanna ask, does software support outlook’s email inbox to embed into our web project? We already buy the microsoft 365 office. Read More
How to Easily Record Your Screen in Windows 11 for Free
Windows 11 and Windows 10 do offer a built-way to record the screen, which is to use Xbox Game Bar. Some users find this method helpful. But I personally don’t think it’s convenient enough. I also tried Bandicam, which is a popular screen recorder. But I don’t like the user experience.
I finally found an easy-to-use tool to record the screen. I’ve been using it for over two years. It’s free to use, but I believe there’s a paid version. I’m very happy with the free version.
This tool has a web-based version and a desktop version. I prefer the former. You can download the desktop if needed.
Steps: How to screen record in Windows 11 and 10 for free, with or without audio
1. In your browser, visit the official website of the Apowersoft tool.
2. You’ll find a Start Recording button on the page. Click this button.
3. In the Free Online Recording screen, you will see four options.
To record your screen with audio, select Screen and System Sound.To record your screen without audio, select Screen only.
4. Click the Start Recording button, and a message will appear to encourage you to download the app. Click the Continue recording button.
5. A dialog will pop up, allowing to you to select an area to record, such as the entire screen, a specific window, or a specific browser tab. Select the area that you need to record and click Share.
Now the screen recording will start. You can pause/resume or stop the recording at any time.
6. After you finish recording the screen, click the Stop button.
7. You will see a Save button. Click the Save button and then choose MP4 file or Original file based on your needs. Generally the MP4 file is recommended because it’s a popular video format and is widely supported.
This screen recorder is very easy to use. However, it’s not perfect. Instead of the entire screen, I only need to record a certain area on the screen. I wish it allowed me to drag to select an area. All in all, this is a good tool for screen recording considering it’s free to use.
Windows 11 and Windows 10 do offer a built-way to record the screen, which is to use Xbox Game Bar. Some users find this method helpful. But I personally don’t think it’s convenient enough. I also tried Bandicam, which is a popular screen recorder. But I don’t like the user experience. I finally found an easy-to-use tool to record the screen. I’ve been using it for over two years. It’s free to use, but I believe there’s a paid version. I’m very happy with the free version. This tool has a web-based version and a desktop version. I prefer the former. You can download the desktop if needed. Steps: How to screen record in Windows 11 and 10 for free, with or without audio 1. In your browser, visit the official website of the Apowersoft tool. 2. You’ll find a Start Recording button on the page. Click this button. 3. In the Free Online Recording screen, you will see four options. To record your screen with audio, select Screen and System Sound.To record your screen without audio, select Screen only. 4. Click the Start Recording button, and a message will appear to encourage you to download the app. Click the Continue recording button. 5. A dialog will pop up, allowing to you to select an area to record, such as the entire screen, a specific window, or a specific browser tab. Select the area that you need to record and click Share. Now the screen recording will start. You can pause/resume or stop the recording at any time. 6. After you finish recording the screen, click the Stop button. 7. You will see a Save button. Click the Save button and then choose MP4 file or Original file based on your needs. Generally the MP4 file is recommended because it’s a popular video format and is widely supported. This screen recorder is very easy to use. However, it’s not perfect. Instead of the entire screen, I only need to record a certain area on the screen. I wish it allowed me to drag to select an area. All in all, this is a good tool for screen recording considering it’s free to use. Read More
Azure Communication Service / Call a Call Queue
Hello
When I try to call a call queue in the same tenant from Azure Communication Services, a connection is established and then terminated shortly afterwards with this error code: {message: ‘CallSetupError’, code: 403, subCode: 10391, resultCategories: Array(1)}
I could not find anything about this error code in the documentation. Can anyone help me here?
I have also adjusted the tenant policy as described here: https://learn.microsoft.com/en-us/azure/communication-services/quickstarts/voice-video-calling/get-started-teams-call-queue
Best regards
HelloWhen I try to call a call queue in the same tenant from Azure Communication Services, a connection is established and then terminated shortly afterwards with this error code: {message: ‘CallSetupError’, code: 403, subCode: 10391, resultCategories: Array(1)}I could not find anything about this error code in the documentation. Can anyone help me here?I have also adjusted the tenant policy as described here: https://learn.microsoft.com/en-us/azure/communication-services/quickstarts/voice-video-calling/get-started-teams-call-queueBest regards Read More
close autosar update report
How to close autosar update report with script e.g. after running updateModel(ar, ‘abc’)How to close autosar update report with script e.g. after running updateModel(ar, ‘abc’) How to close autosar update report with script e.g. after running updateModel(ar, ‘abc’) autosar update MATLAB Answers — New Questions
Extracting data from struct as array
Hi, I have a following structure:
S(1).a = 1:10;
S(2).a = 11:20;
S(3).a = 21:30;
I want the output in the following format:
y = [1:10; 11:20; 21:30];
Using [S(1:3).a] concatenates it in a single direction. Is there a better way (other than for loop) to extract the data in the requisite format?
Thank you,
RashiHi, I have a following structure:
S(1).a = 1:10;
S(2).a = 11:20;
S(3).a = 21:30;
I want the output in the following format:
y = [1:10; 11:20; 21:30];
Using [S(1:3).a] concatenates it in a single direction. Is there a better way (other than for loop) to extract the data in the requisite format?
Thank you,
Rashi Hi, I have a following structure:
S(1).a = 1:10;
S(2).a = 11:20;
S(3).a = 21:30;
I want the output in the following format:
y = [1:10; 11:20; 21:30];
Using [S(1:3).a] concatenates it in a single direction. Is there a better way (other than for loop) to extract the data in the requisite format?
Thank you,
Rashi structures, data output, array MATLAB Answers — New Questions
How to plot vectors of zonally averaged meridional-vertical wind circulation in a latitude-pressure cross-section in MATLAB
Dear all,
I have 3D matrices (longitude*latitude*plev) of U, V and W-components of wind. Since I want to plot latitude-pressure vertical cross section, I took average along the first dimension (i.e, longitude) for V and W-components of wind. Also, initially I had the plev data with 12 pressure levels. But, I created 91 interpolated pressure levels using ‘meshgrid’ command and interpolated the V and W-components of wind data at each pressure levels using ‘griddata’ command, like in the following:
[X_LAT,Y_PLEV]=meshgrid(latitude,min(plev):10:max(plev));
V=griddata(latitude,plev,Vwind’,X_LAT,Y_PLEV);
%same as for W wind
For your convenience, I attached the latitude, plev, V, and W matrices. But, when I tried to plot the wind vectors along latitude-pressure vertical cross-section using ‘quiversc’ function, I am getting absurd vectors (see the figure attached). But, previously, with the same ‘quiversc’ function, I got the correct wind vectors when I used U and V-components of wind at x-y plane for a particular pressure level. So, I think, there is nothing wrong with the function. Maybe the code should be different this time as I am plotting latitude-pressure vertical cross section. My code for plotting is as follows:
contourf(X_LAT,Y_PLEV,W,40,’linecolor’,’none’) ;
set(gca,’YDir’,’reverse’);
set(gca,’yscale’,’log’)
hold on
q1=quiversc(X_LAT,Y_PLEV,V,W,’density’,10,’MaxHeadSize’,5,’AutoScale’,’on’,’color’,’k’,’LineWidth’,1);
colormap(jet(50))
caxis([-2 2])
xlim([-7 1])
ylim([100 1000])
box on
set(gca,’YTick’,(100:100:1000),’YTickLabel’,{‘100’ ‘200’ ‘300’ ‘400’ ‘500’ ‘600’ ‘700’ ‘800’ ‘900’ ‘1000’},’FontName’, ‘Arial’,’FontSize’,14,’FontWeight’,’bold’,’LineWidth’,1)
Now, it is important to note that I multiplied W by 100 for scaling as per the V wind. Since, the vertical cross-section is along the latitudes, so I think quiversc should work with V and W to get the meridional-vertical wind circulation vector. Right? Or, do I have to do something additional to get the desired plot. For your reference, I attached a sample figure from Zhu et al. (2022). Can anyone please help me to solve this issue? That will be very helpful for me. Thank you for your time and consideration.Dear all,
I have 3D matrices (longitude*latitude*plev) of U, V and W-components of wind. Since I want to plot latitude-pressure vertical cross section, I took average along the first dimension (i.e, longitude) for V and W-components of wind. Also, initially I had the plev data with 12 pressure levels. But, I created 91 interpolated pressure levels using ‘meshgrid’ command and interpolated the V and W-components of wind data at each pressure levels using ‘griddata’ command, like in the following:
[X_LAT,Y_PLEV]=meshgrid(latitude,min(plev):10:max(plev));
V=griddata(latitude,plev,Vwind’,X_LAT,Y_PLEV);
%same as for W wind
For your convenience, I attached the latitude, plev, V, and W matrices. But, when I tried to plot the wind vectors along latitude-pressure vertical cross-section using ‘quiversc’ function, I am getting absurd vectors (see the figure attached). But, previously, with the same ‘quiversc’ function, I got the correct wind vectors when I used U and V-components of wind at x-y plane for a particular pressure level. So, I think, there is nothing wrong with the function. Maybe the code should be different this time as I am plotting latitude-pressure vertical cross section. My code for plotting is as follows:
contourf(X_LAT,Y_PLEV,W,40,’linecolor’,’none’) ;
set(gca,’YDir’,’reverse’);
set(gca,’yscale’,’log’)
hold on
q1=quiversc(X_LAT,Y_PLEV,V,W,’density’,10,’MaxHeadSize’,5,’AutoScale’,’on’,’color’,’k’,’LineWidth’,1);
colormap(jet(50))
caxis([-2 2])
xlim([-7 1])
ylim([100 1000])
box on
set(gca,’YTick’,(100:100:1000),’YTickLabel’,{‘100’ ‘200’ ‘300’ ‘400’ ‘500’ ‘600’ ‘700’ ‘800’ ‘900’ ‘1000’},’FontName’, ‘Arial’,’FontSize’,14,’FontWeight’,’bold’,’LineWidth’,1)
Now, it is important to note that I multiplied W by 100 for scaling as per the V wind. Since, the vertical cross-section is along the latitudes, so I think quiversc should work with V and W to get the meridional-vertical wind circulation vector. Right? Or, do I have to do something additional to get the desired plot. For your reference, I attached a sample figure from Zhu et al. (2022). Can anyone please help me to solve this issue? That will be very helpful for me. Thank you for your time and consideration. Dear all,
I have 3D matrices (longitude*latitude*plev) of U, V and W-components of wind. Since I want to plot latitude-pressure vertical cross section, I took average along the first dimension (i.e, longitude) for V and W-components of wind. Also, initially I had the plev data with 12 pressure levels. But, I created 91 interpolated pressure levels using ‘meshgrid’ command and interpolated the V and W-components of wind data at each pressure levels using ‘griddata’ command, like in the following:
[X_LAT,Y_PLEV]=meshgrid(latitude,min(plev):10:max(plev));
V=griddata(latitude,plev,Vwind’,X_LAT,Y_PLEV);
%same as for W wind
For your convenience, I attached the latitude, plev, V, and W matrices. But, when I tried to plot the wind vectors along latitude-pressure vertical cross-section using ‘quiversc’ function, I am getting absurd vectors (see the figure attached). But, previously, with the same ‘quiversc’ function, I got the correct wind vectors when I used U and V-components of wind at x-y plane for a particular pressure level. So, I think, there is nothing wrong with the function. Maybe the code should be different this time as I am plotting latitude-pressure vertical cross section. My code for plotting is as follows:
contourf(X_LAT,Y_PLEV,W,40,’linecolor’,’none’) ;
set(gca,’YDir’,’reverse’);
set(gca,’yscale’,’log’)
hold on
q1=quiversc(X_LAT,Y_PLEV,V,W,’density’,10,’MaxHeadSize’,5,’AutoScale’,’on’,’color’,’k’,’LineWidth’,1);
colormap(jet(50))
caxis([-2 2])
xlim([-7 1])
ylim([100 1000])
box on
set(gca,’YTick’,(100:100:1000),’YTickLabel’,{‘100’ ‘200’ ‘300’ ‘400’ ‘500’ ‘600’ ‘700’ ‘800’ ‘900’ ‘1000’},’FontName’, ‘Arial’,’FontSize’,14,’FontWeight’,’bold’,’LineWidth’,1)
Now, it is important to note that I multiplied W by 100 for scaling as per the V wind. Since, the vertical cross-section is along the latitudes, so I think quiversc should work with V and W to get the meridional-vertical wind circulation vector. Right? Or, do I have to do something additional to get the desired plot. For your reference, I attached a sample figure from Zhu et al. (2022). Can anyone please help me to solve this issue? That will be very helpful for me. Thank you for your time and consideration. matlab, vector MATLAB Answers — New Questions
Solving the equations of Simscape’s Ejector with vsolve
Dear Everyone,
I have written a Matlab script based on the equations of the Ejector in Simscape (https://www.mathworks.com/help/hydro/ref/ejectorg.html). I am not good at using Simscape and I am having difficulties running the Ejector in Simscape.
My script calculates Pm (pressure after mixing ) using fsolve. I have modified the equations a bit as I think γ should be different for the two streams, therefore I have kp (γ of the primary stream) and ks (γ of the secondary stream). I also included an iteration to calculate the stagnation temperatures of the two streams since the documentation of the Ejector states that the block assumes that Tp and Ts (temperatures of primary and secondary streams) are equal to their primary flow stagnation temperature. These temperatures are needed for the calculation of Tm (temperature of mixing). The stagnation temperature depends on Mm (Mach number of mixing) which depends on Tm which in turn depends on the stagnation temperatures.
I am considering a case where the primary stream is CO2 at 1MPa and 20°C and the secondary stream is air at 0.1 MPa and 20°C, and I calculate Pm = 0.0012 MPa and Mm = 0.033. I think these results are wrong, could someone please confirm this? It seems that my solver calculates the same Pm regardless of Pp (primary pressure) and a Pm always close to Ps (secondary pressure).
I am attaching the m files needed to run the script below. "ejector_solver.m". "Ejector_equations_star" uses the same equations as in "Ejector_equations" but replaces Pm with Pm_star to calculate the critical diffuser outlet pressure.
Also, does anyone know how the cross-sectional areas of the three ports are used? They need to be specified for the Ejector in Simscape but I am not sure where they appear in the equations.
I am grateful for any help you can provide.
Best regards,
clearvars; close all; clc;
% Primary stream
Primary_fluid = ‘CO2’;
Pp = 1; % [MPa] Pressure of primary stream
Tp = 20 + 273.15; % [K] Temperature of primary stream
kp = 1.3589; % Primary stream’s ratio of heat capacities
rhop = 19.098; % [kg/m^3] Density of primary stream
% Secondary stream
Secondary_fluid = ‘Air.ppf’;
Ps = 0.1; % [MPa] Pressure of secondary stream
Ts = 20 + 273.15; % [K] Temperature of secondary stream
ks = 1.402; % Secondary stream’s ratio of heat capacities
rhos = 1.189; % [kg/m^3] Density of secondary stream
% Gas constant
R = 0.2871; % [kJ/(kg K)]
% Parameters of ejector (same as in Simscape)
Spt = 1e-4; % [m^2] Throat area
Spn_to_Spt = 3; % Area ratio of nozzle exit to throat
Sm_to_Spt = 8; % Area ratio of mixing chamber exit to throat
eta_p = 0.95; % Efficiency of primary flow through nozzle
eta_s = 0.85; % Efficiency of secondary suction flow
eta_e = 0.88; % Efficiency for primary flow expansion
eta_m = 0.84; % Efficiency for mixing
% Initial guess for Pm
Pm_initial_guess = 0.001; % [MPa]
% Use fsolve to find Pm
options = optimoptions(‘fsolve’, ‘Display’, ‘iter’);
Pm = fsolve(@(Pm) ejector_solver(Pm, Pp, Tp, kp, rhop, Ps, Ts, ks, rhos, R, Spt, Spn_to_Spt, Sm_to_Spt, eta_p, eta_s, eta_e, eta_m), Pm_initial_guess, options);
disp([‘Pm is: ‘, num2str(Pm), ‘ MPa’]);
% Calculate equations with Pm
Ejector_equations
% Critical mode operation
Pm_star = min(Pp,Ps) * (2 / (km+1))^(km / (km-1)); % Threshold that causes choking in both primary and secondary flow
Ejector_equations_star % Same equations to calculate the critical diffuser outlet pressure by replacing Pm with Pm_star
% Evaluate if critical mode operation
if Pd < Pd_star
Pm = Pm_star;
else
Ejector_equations % Repeat equations to save the correct values
end
disp([‘Mm is: ‘, num2str(Mm), ”]);Dear Everyone,
I have written a Matlab script based on the equations of the Ejector in Simscape (https://www.mathworks.com/help/hydro/ref/ejectorg.html). I am not good at using Simscape and I am having difficulties running the Ejector in Simscape.
My script calculates Pm (pressure after mixing ) using fsolve. I have modified the equations a bit as I think γ should be different for the two streams, therefore I have kp (γ of the primary stream) and ks (γ of the secondary stream). I also included an iteration to calculate the stagnation temperatures of the two streams since the documentation of the Ejector states that the block assumes that Tp and Ts (temperatures of primary and secondary streams) are equal to their primary flow stagnation temperature. These temperatures are needed for the calculation of Tm (temperature of mixing). The stagnation temperature depends on Mm (Mach number of mixing) which depends on Tm which in turn depends on the stagnation temperatures.
I am considering a case where the primary stream is CO2 at 1MPa and 20°C and the secondary stream is air at 0.1 MPa and 20°C, and I calculate Pm = 0.0012 MPa and Mm = 0.033. I think these results are wrong, could someone please confirm this? It seems that my solver calculates the same Pm regardless of Pp (primary pressure) and a Pm always close to Ps (secondary pressure).
I am attaching the m files needed to run the script below. "ejector_solver.m". "Ejector_equations_star" uses the same equations as in "Ejector_equations" but replaces Pm with Pm_star to calculate the critical diffuser outlet pressure.
Also, does anyone know how the cross-sectional areas of the three ports are used? They need to be specified for the Ejector in Simscape but I am not sure where they appear in the equations.
I am grateful for any help you can provide.
Best regards,
clearvars; close all; clc;
% Primary stream
Primary_fluid = ‘CO2’;
Pp = 1; % [MPa] Pressure of primary stream
Tp = 20 + 273.15; % [K] Temperature of primary stream
kp = 1.3589; % Primary stream’s ratio of heat capacities
rhop = 19.098; % [kg/m^3] Density of primary stream
% Secondary stream
Secondary_fluid = ‘Air.ppf’;
Ps = 0.1; % [MPa] Pressure of secondary stream
Ts = 20 + 273.15; % [K] Temperature of secondary stream
ks = 1.402; % Secondary stream’s ratio of heat capacities
rhos = 1.189; % [kg/m^3] Density of secondary stream
% Gas constant
R = 0.2871; % [kJ/(kg K)]
% Parameters of ejector (same as in Simscape)
Spt = 1e-4; % [m^2] Throat area
Spn_to_Spt = 3; % Area ratio of nozzle exit to throat
Sm_to_Spt = 8; % Area ratio of mixing chamber exit to throat
eta_p = 0.95; % Efficiency of primary flow through nozzle
eta_s = 0.85; % Efficiency of secondary suction flow
eta_e = 0.88; % Efficiency for primary flow expansion
eta_m = 0.84; % Efficiency for mixing
% Initial guess for Pm
Pm_initial_guess = 0.001; % [MPa]
% Use fsolve to find Pm
options = optimoptions(‘fsolve’, ‘Display’, ‘iter’);
Pm = fsolve(@(Pm) ejector_solver(Pm, Pp, Tp, kp, rhop, Ps, Ts, ks, rhos, R, Spt, Spn_to_Spt, Sm_to_Spt, eta_p, eta_s, eta_e, eta_m), Pm_initial_guess, options);
disp([‘Pm is: ‘, num2str(Pm), ‘ MPa’]);
% Calculate equations with Pm
Ejector_equations
% Critical mode operation
Pm_star = min(Pp,Ps) * (2 / (km+1))^(km / (km-1)); % Threshold that causes choking in both primary and secondary flow
Ejector_equations_star % Same equations to calculate the critical diffuser outlet pressure by replacing Pm with Pm_star
% Evaluate if critical mode operation
if Pd < Pd_star
Pm = Pm_star;
else
Ejector_equations % Repeat equations to save the correct values
end
disp([‘Mm is: ‘, num2str(Mm), ”]); Dear Everyone,
I have written a Matlab script based on the equations of the Ejector in Simscape (https://www.mathworks.com/help/hydro/ref/ejectorg.html). I am not good at using Simscape and I am having difficulties running the Ejector in Simscape.
My script calculates Pm (pressure after mixing ) using fsolve. I have modified the equations a bit as I think γ should be different for the two streams, therefore I have kp (γ of the primary stream) and ks (γ of the secondary stream). I also included an iteration to calculate the stagnation temperatures of the two streams since the documentation of the Ejector states that the block assumes that Tp and Ts (temperatures of primary and secondary streams) are equal to their primary flow stagnation temperature. These temperatures are needed for the calculation of Tm (temperature of mixing). The stagnation temperature depends on Mm (Mach number of mixing) which depends on Tm which in turn depends on the stagnation temperatures.
I am considering a case where the primary stream is CO2 at 1MPa and 20°C and the secondary stream is air at 0.1 MPa and 20°C, and I calculate Pm = 0.0012 MPa and Mm = 0.033. I think these results are wrong, could someone please confirm this? It seems that my solver calculates the same Pm regardless of Pp (primary pressure) and a Pm always close to Ps (secondary pressure).
I am attaching the m files needed to run the script below. "ejector_solver.m". "Ejector_equations_star" uses the same equations as in "Ejector_equations" but replaces Pm with Pm_star to calculate the critical diffuser outlet pressure.
Also, does anyone know how the cross-sectional areas of the three ports are used? They need to be specified for the Ejector in Simscape but I am not sure where they appear in the equations.
I am grateful for any help you can provide.
Best regards,
clearvars; close all; clc;
% Primary stream
Primary_fluid = ‘CO2’;
Pp = 1; % [MPa] Pressure of primary stream
Tp = 20 + 273.15; % [K] Temperature of primary stream
kp = 1.3589; % Primary stream’s ratio of heat capacities
rhop = 19.098; % [kg/m^3] Density of primary stream
% Secondary stream
Secondary_fluid = ‘Air.ppf’;
Ps = 0.1; % [MPa] Pressure of secondary stream
Ts = 20 + 273.15; % [K] Temperature of secondary stream
ks = 1.402; % Secondary stream’s ratio of heat capacities
rhos = 1.189; % [kg/m^3] Density of secondary stream
% Gas constant
R = 0.2871; % [kJ/(kg K)]
% Parameters of ejector (same as in Simscape)
Spt = 1e-4; % [m^2] Throat area
Spn_to_Spt = 3; % Area ratio of nozzle exit to throat
Sm_to_Spt = 8; % Area ratio of mixing chamber exit to throat
eta_p = 0.95; % Efficiency of primary flow through nozzle
eta_s = 0.85; % Efficiency of secondary suction flow
eta_e = 0.88; % Efficiency for primary flow expansion
eta_m = 0.84; % Efficiency for mixing
% Initial guess for Pm
Pm_initial_guess = 0.001; % [MPa]
% Use fsolve to find Pm
options = optimoptions(‘fsolve’, ‘Display’, ‘iter’);
Pm = fsolve(@(Pm) ejector_solver(Pm, Pp, Tp, kp, rhop, Ps, Ts, ks, rhos, R, Spt, Spn_to_Spt, Sm_to_Spt, eta_p, eta_s, eta_e, eta_m), Pm_initial_guess, options);
disp([‘Pm is: ‘, num2str(Pm), ‘ MPa’]);
% Calculate equations with Pm
Ejector_equations
% Critical mode operation
Pm_star = min(Pp,Ps) * (2 / (km+1))^(km / (km-1)); % Threshold that causes choking in both primary and secondary flow
Ejector_equations_star % Same equations to calculate the critical diffuser outlet pressure by replacing Pm with Pm_star
% Evaluate if critical mode operation
if Pd < Pd_star
Pm = Pm_star;
else
Ejector_equations % Repeat equations to save the correct values
end
disp([‘Mm is: ‘, num2str(Mm), ”]); matlab, fsolve, ejector MATLAB Answers — New Questions
create guest account
Hi All,
I want to create a guest account. I have logged in to the Exchange Online Admin Center and created a mail contact. However, I am not seeing this mail contact in Azure AD. Will mail contacts not show up in Azure AD?
If i need to create a guest account in Azure AD should i use invite external user in EntraID? The guest account will be used for B2B. I want to invite external user in Azure EntraID, Please help me with PowerShell syntax to create guest users with below fields in EntraID, is the below syntax correct?
Email:
DisplayName:
Send Invite Message:(This box to be checked)
FirstName
LastName
UserType:Guest
CompanyName:
JobTitle
$email = “email address removed for privacy reasons”
$displayName = “FN LN”
$sendInviteMessage = $true
$firstName = “FN”
$lastName = “LN”
$userType = “Guest”
$companyName = “SomeCompany”
$jobTitle = “Developer”
New-AzureADMSInvitation -InvitedUserEmailAddress $email -InvitedUserDisplayName $displayName -SendInvitationMessage $sendInviteMessage -InvitedUserType $userType -InvitedUserOrganizations $companyName -InvitedUserJobTitle $jobTitle
Hi All,I want to create a guest account. I have logged in to the Exchange Online Admin Center and created a mail contact. However, I am not seeing this mail contact in Azure AD. Will mail contacts not show up in Azure AD?If i need to create a guest account in Azure AD should i use invite external user in EntraID? The guest account will be used for B2B. I want to invite external user in Azure EntraID, Please help me with PowerShell syntax to create guest users with below fields in EntraID, is the below syntax correct?Email:DisplayName:Send Invite Message:(This box to be checked)FirstNameLastNameUserType:GuestCompanyName:JobTitle$email = “email address removed for privacy reasons”
$displayName = “FN LN”
$sendInviteMessage = $true
$firstName = “FN”
$lastName = “LN”
$userType = “Guest”
$companyName = “SomeCompany”
$jobTitle = “Developer”
New-AzureADMSInvitation -InvitedUserEmailAddress $email -InvitedUserDisplayName $displayName -SendInvitationMessage $sendInviteMessage -InvitedUserType $userType -InvitedUserOrganizations $companyName -InvitedUserJobTitle $jobTitle Read More
Performance Tuning
The alias name used in the query can affect query performance?
For Example : select aB.col1,Ab.col2 from table1 AB join table2 CD on AB.col1 = cd.col1
Question: I have given alias name with capital letters but I used small and caps in the select and join conditions . does it affect?
when I seeing execution plan there is no diff.
Thank you.
The alias name used in the query can affect query performance?For Example : select aB.col1,Ab.col2 from table1 AB join table2 CD on AB.col1 = cd.col1Question: I have given alias name with capital letters but I used small and caps in the select and join conditions . does it affect? when I seeing execution plan there is no diff. Thank you. Read More
Error in legends of subplots using a for loop
I want legends g_1=fr(1), g_1=fr(2), g_1=fr(3) for each plots in each window ha(kk). I am doing some mistake in legends, but couldn’t figured it out. Any suggestions please. Thanks.
[ha, pos]= tight_subplot(4,3,[.1 .15],[.13 .01],[.13 .1]);
fr=([0.1, 0.5, 1]);
[h0, h1]=size(fr);
% for jj=1:h1
for jj=1:3
for kk=1:12
lin={‘–‘,’-.’,’:’};
axes(ha(kk));
x=load(sprintf(‘frq_%d%d.dat’,jj,kk));
x1(jj)=loglog(x(:,33),x(:,kk+5),’linestyle’,lin{jj},’LineWidth’, 2.5);
hold on
ylabel([ha(1),ha(4), ha(7),ha(10)],’Deltaomega_{}’)
xlabel([ha(10), ha(11),ha(12)],’Deltaomega_{o}’)
% legend([x1([1 2 3])],{‘$g_1=fr(%d)$’,jj},’Fontsize’,34,’Location’,’northwest’,’Interpreter’, ‘latex’);
legend([x1([jj])],{‘rm{"$g_1{‘+fr{jj}+’}$"}’},’Fontsize’,34,’Location’,’northwest’,’Interpreter’, ‘latex’);
legend(‘boxoff’)
end
endI want legends g_1=fr(1), g_1=fr(2), g_1=fr(3) for each plots in each window ha(kk). I am doing some mistake in legends, but couldn’t figured it out. Any suggestions please. Thanks.
[ha, pos]= tight_subplot(4,3,[.1 .15],[.13 .01],[.13 .1]);
fr=([0.1, 0.5, 1]);
[h0, h1]=size(fr);
% for jj=1:h1
for jj=1:3
for kk=1:12
lin={‘–‘,’-.’,’:’};
axes(ha(kk));
x=load(sprintf(‘frq_%d%d.dat’,jj,kk));
x1(jj)=loglog(x(:,33),x(:,kk+5),’linestyle’,lin{jj},’LineWidth’, 2.5);
hold on
ylabel([ha(1),ha(4), ha(7),ha(10)],’Deltaomega_{}’)
xlabel([ha(10), ha(11),ha(12)],’Deltaomega_{o}’)
% legend([x1([1 2 3])],{‘$g_1=fr(%d)$’,jj},’Fontsize’,34,’Location’,’northwest’,’Interpreter’, ‘latex’);
legend([x1([jj])],{‘rm{"$g_1{‘+fr{jj}+’}$"}’},’Fontsize’,34,’Location’,’northwest’,’Interpreter’, ‘latex’);
legend(‘boxoff’)
end
end I want legends g_1=fr(1), g_1=fr(2), g_1=fr(3) for each plots in each window ha(kk). I am doing some mistake in legends, but couldn’t figured it out. Any suggestions please. Thanks.
[ha, pos]= tight_subplot(4,3,[.1 .15],[.13 .01],[.13 .1]);
fr=([0.1, 0.5, 1]);
[h0, h1]=size(fr);
% for jj=1:h1
for jj=1:3
for kk=1:12
lin={‘–‘,’-.’,’:’};
axes(ha(kk));
x=load(sprintf(‘frq_%d%d.dat’,jj,kk));
x1(jj)=loglog(x(:,33),x(:,kk+5),’linestyle’,lin{jj},’LineWidth’, 2.5);
hold on
ylabel([ha(1),ha(4), ha(7),ha(10)],’Deltaomega_{}’)
xlabel([ha(10), ha(11),ha(12)],’Deltaomega_{o}’)
% legend([x1([1 2 3])],{‘$g_1=fr(%d)$’,jj},’Fontsize’,34,’Location’,’northwest’,’Interpreter’, ‘latex’);
legend([x1([jj])],{‘rm{"$g_1{‘+fr{jj}+’}$"}’},’Fontsize’,34,’Location’,’northwest’,’Interpreter’, ‘latex’);
legend(‘boxoff’)
end
end plotting, subplot, legend, for loop MATLAB Answers — New Questions
why is 2D deformation plot in pdeplot samller with larger DefromationScaleFactor
I’ve used both pdeplot3d and pdeplot to show deformation after structure analysis. The DeformationScaleFactor is used to scale the distortion of the final picture plotted. I’ve noticed for pdeplot3d, a larger DeformationScaleFacotor means larger distortion. The online documents can clearly show it, https://ww2.mathworks.cn/help/pde/ug/pdeplot3d.html?s_tid=doc_ta#d126e109923. However, in 2d pdeplot, a larger DeformationScaleFactor will result in a smaller distortion. https://ww2.mathworks.cn/help/pde/ug/pdeplot.html?searchHighlight=pdeplot&s_tid=srchtitle_support_results_1_pdeplot. Is there any explaination on this comparison?
I caputured two pictures both function for convinience.
pdeplot3d case: larger DeformationScaleFactor larger distortion:
pdeplot case: larger DeformationScaleFactor smaller distortion:I’ve used both pdeplot3d and pdeplot to show deformation after structure analysis. The DeformationScaleFactor is used to scale the distortion of the final picture plotted. I’ve noticed for pdeplot3d, a larger DeformationScaleFacotor means larger distortion. The online documents can clearly show it, https://ww2.mathworks.cn/help/pde/ug/pdeplot3d.html?s_tid=doc_ta#d126e109923. However, in 2d pdeplot, a larger DeformationScaleFactor will result in a smaller distortion. https://ww2.mathworks.cn/help/pde/ug/pdeplot.html?searchHighlight=pdeplot&s_tid=srchtitle_support_results_1_pdeplot. Is there any explaination on this comparison?
I caputured two pictures both function for convinience.
pdeplot3d case: larger DeformationScaleFactor larger distortion:
pdeplot case: larger DeformationScaleFactor smaller distortion: I’ve used both pdeplot3d and pdeplot to show deformation after structure analysis. The DeformationScaleFactor is used to scale the distortion of the final picture plotted. I’ve noticed for pdeplot3d, a larger DeformationScaleFacotor means larger distortion. The online documents can clearly show it, https://ww2.mathworks.cn/help/pde/ug/pdeplot3d.html?s_tid=doc_ta#d126e109923. However, in 2d pdeplot, a larger DeformationScaleFactor will result in a smaller distortion. https://ww2.mathworks.cn/help/pde/ug/pdeplot.html?searchHighlight=pdeplot&s_tid=srchtitle_support_results_1_pdeplot. Is there any explaination on this comparison?
I caputured two pictures both function for convinience.
pdeplot3d case: larger DeformationScaleFactor larger distortion:
pdeplot case: larger DeformationScaleFactor smaller distortion: deformationscalefactor, pdeplot, pdeplot3d MATLAB Answers — New Questions
Tiledlayout: Make Plots of unequal width
Hello,
I want to use tiledlayout to place multiple graphs of unequal width. An example of what I’m trying to do is below. Using the figure command only seems to edit the entire box and I’m not sure how to make the tiledlayout command do what I want
Current figure:
Desired appearance (expertly edited using MS Paint)
Example code:
figure(‘Units’,’normalized’,’Position’,[0.5,0.4,.5,.5]);
tiledlayout(1,2,’TileSpacing’,’Compact’,’Padding’,’Compact’)
nexttile
plot(foo,bar)
%formatting stuff
nexttile
plot (foo2,bar2)
%formatting stuffHello,
I want to use tiledlayout to place multiple graphs of unequal width. An example of what I’m trying to do is below. Using the figure command only seems to edit the entire box and I’m not sure how to make the tiledlayout command do what I want
Current figure:
Desired appearance (expertly edited using MS Paint)
Example code:
figure(‘Units’,’normalized’,’Position’,[0.5,0.4,.5,.5]);
tiledlayout(1,2,’TileSpacing’,’Compact’,’Padding’,’Compact’)
nexttile
plot(foo,bar)
%formatting stuff
nexttile
plot (foo2,bar2)
%formatting stuff Hello,
I want to use tiledlayout to place multiple graphs of unequal width. An example of what I’m trying to do is below. Using the figure command only seems to edit the entire box and I’m not sure how to make the tiledlayout command do what I want
Current figure:
Desired appearance (expertly edited using MS Paint)
Example code:
figure(‘Units’,’normalized’,’Position’,[0.5,0.4,.5,.5]);
tiledlayout(1,2,’TileSpacing’,’Compact’,’Padding’,’Compact’)
nexttile
plot(foo,bar)
%formatting stuff
nexttile
plot (foo2,bar2)
%formatting stuff tiledlayout, plot dimensions MATLAB Answers — New Questions
Discrepancy Between VTT File Timestamps and Actual Audio Timestamps
The timestamps in VTT files do not always match the actual audio timestamps. This discrepancy varies from video to video and can be off by about 1 second. This issue arises because the timing of the speech in the VTT file is not perfectly synchronized with the actual audio. When editing videos or creating subtitles, it is important to account for this discrepancy and make necessary adjustments.
The timestamps in VTT files do not always match the actual audio timestamps. This discrepancy varies from video to video and can be off by about 1 second. This issue arises because the timing of the speech in the VTT file is not perfectly synchronized with the actual audio. When editing videos or creating subtitles, it is important to account for this discrepancy and make necessary adjustments. Read More
No video output in computer
I have a old Dell optiplex 3020 SFF with a i3 4060 an hdd and using the integrated onboard graphics. So few days ago I observed if I shutdown the computer and then booted it up it was stuck on windows logo and there was no more disk activity, so I just heard powered it of and then it started again. Today the same happened so I did the same, and now the pc doesn’t show any video output. The dell logo isn’t showing either and there IS DISK ACTIVITY AND EVEN NETWORK ACTIVITY. But I don’t Know. Like there is literally no video output it’s just blank screen.I tried getting into bios but obviously there was no video output. Also I thought that there was a bios corruption,( which in case was not possible because there was even network activity)so I removed the ram and turn on the computer and it even gave me a beep code. So confused right now…I even tried win+ctrl+shift+B just in case. But main issue is that there is no video activity. Also the hard drive activity is constant.also funny thing, I started the computer and let it be for 3-4 minutes then put in my windows password, then Spotify was put to autostart so just clicked media resume keys on my keyboard and **bleep**! The song also plays there isn’t just any video output. From what I guess there is no bios corruption whatsoever.
Any help is really appreciated asap
I have a old Dell optiplex 3020 SFF with a i3 4060 an hdd and using the integrated onboard graphics. So few days ago I observed if I shutdown the computer and then booted it up it was stuck on windows logo and there was no more disk activity, so I just heard powered it of and then it started again. Today the same happened so I did the same, and now the pc doesn’t show any video output. The dell logo isn’t showing either and there IS DISK ACTIVITY AND EVEN NETWORK ACTIVITY. But I don’t Know. Like there is literally no video output it’s just blank screen.I tried getting into bios but obviously there was no video output. Also I thought that there was a bios corruption,( which in case was not possible because there was even network activity)so I removed the ram and turn on the computer and it even gave me a beep code. So confused right now…I even tried win+ctrl+shift+B just in case. But main issue is that there is no video activity. Also the hard drive activity is constant.also funny thing, I started the computer and let it be for 3-4 minutes then put in my windows password, then Spotify was put to autostart so just clicked media resume keys on my keyboard and **bleep**! The song also plays there isn’t just any video output. From what I guess there is no bios corruption whatsoever. Any help is really appreciated asap Read More
Can not download all file
I can not download all file on OneDrive , but i can download before
2024.06.13
I can not download all file on OneDrive , but i can download before 2024.06.13 Read More
What List permission for users have no inherent list permission, just when an item is Shared
I have a Power Apps Gallery that points to a fairly simple SP List.
We only want users to see items they have submitted.
So we don’t give them any list-level permissions. Our App/workflows do a Share to grant users Read access to their own items.
The problem is if nothing has been shared with them, the Gallery throws an error saying the user doesn’t have access to the list.
If I grant even Read access as a permission, it gives the user Read access to everything in the list. Yes, I can manage that in the app programmatically with a filter. But I’d rather put that on Sharepoint to manage.
So how can I configure the List (or the app gallery?) so that if the user doesn’t have any items Shared to them, they just get a blank gallery instead of an error message?
I have a Power Apps Gallery that points to a fairly simple SP List.We only want users to see items they have submitted. So we don’t give them any list-level permissions. Our App/workflows do a Share to grant users Read access to their own items. The problem is if nothing has been shared with them, the Gallery throws an error saying the user doesn’t have access to the list. If I grant even Read access as a permission, it gives the user Read access to everything in the list. Yes, I can manage that in the app programmatically with a filter. But I’d rather put that on Sharepoint to manage. So how can I configure the List (or the app gallery?) so that if the user doesn’t have any items Shared to them, they just get a blank gallery instead of an error message? Read More
Windows repair version
After leaving the insiders program I noticed and update called windows repair version and I was wondering if i need to install it.
After leaving the insiders program I noticed and update called windows repair version and I was wondering if i need to install it. Read More
PID Controller Gain adjust
Hallo Jungs bitte jemand mir helfen?: habe einen pid-Regler für ein Selfdriving car entwickeln. das Problem ist das Fahrzeug fährt nicht in Centerline wie geplann und nach änderung der Strecke, wird der Fehler noch schlimer. kann jemand mir helfen?
function LateralLongitudinal_Controller(obj, cte)
kp_lat = 0.08; % Parameter für laterale Regelung
kd_lat = 0.8;
ki_lat = 0.000002;
kp_lon = 0.1; % Parameter für longitudinale Regelung
kd_lon = 0.01;
ki_lon = 0.000001;
dcte = cte – obj.old_cte;
obj.cte_intergral = obj.cte_intergral + cte;
% Anti-Windup für den integralen Anteil
obj.cte_intergral = max(-obj.steering_angle_limit / ki_lat, min(obj.steering_angle_limit / ki_lat, obj.cte_intergral));
obj.old_cte = cte;
% Lateral Control (quer)
steering = kp_lat * cte + kd_lat * dcte + ki_lat * obj.cte_intergral;
% Begrenzen Sie den Lenkwinkel
steering = max(-obj.steering_angle_limit, min(obj.steering_angle_limit, steering));
% Longitudinal Control (längs)
desired_velocity = obj.max_velocity; % Setzen Sie die gewünschte Geschwindigkeit
velocity_error = desired_velocity – obj.states(4);
% Fügen Sie die max_acceleration-Eigenschaft hinzu
max_acceleration = 10.0; % Setzen Sie hier den gewünschten maximalen Beschleunigungswert ein
% Reduziere die Geschwindigkeit in der Nähe von Kurven
curvature_threshold = 0.4; % Setzen Sie den Krümmungsschwellenwert ein
if abs(cte) > curvature_threshold
desired_velocity = 10 * obj.max_velocity; % Reduziere die Geschwindigkeit in der Nähe von Kurven
end
acceleration = kp_lon * velocity_error + kd_lon * obj.states(4) + ki_lon * sum(obj.states(1:4));
% Begrenzen Sie die Beschleunigung
acceleration = max(-max_acceleration, min(max_acceleration, acceleration));
control_signal = [steering, acceleration];
obj.update_input(control_signal);
endHallo Jungs bitte jemand mir helfen?: habe einen pid-Regler für ein Selfdriving car entwickeln. das Problem ist das Fahrzeug fährt nicht in Centerline wie geplann und nach änderung der Strecke, wird der Fehler noch schlimer. kann jemand mir helfen?
function LateralLongitudinal_Controller(obj, cte)
kp_lat = 0.08; % Parameter für laterale Regelung
kd_lat = 0.8;
ki_lat = 0.000002;
kp_lon = 0.1; % Parameter für longitudinale Regelung
kd_lon = 0.01;
ki_lon = 0.000001;
dcte = cte – obj.old_cte;
obj.cte_intergral = obj.cte_intergral + cte;
% Anti-Windup für den integralen Anteil
obj.cte_intergral = max(-obj.steering_angle_limit / ki_lat, min(obj.steering_angle_limit / ki_lat, obj.cte_intergral));
obj.old_cte = cte;
% Lateral Control (quer)
steering = kp_lat * cte + kd_lat * dcte + ki_lat * obj.cte_intergral;
% Begrenzen Sie den Lenkwinkel
steering = max(-obj.steering_angle_limit, min(obj.steering_angle_limit, steering));
% Longitudinal Control (längs)
desired_velocity = obj.max_velocity; % Setzen Sie die gewünschte Geschwindigkeit
velocity_error = desired_velocity – obj.states(4);
% Fügen Sie die max_acceleration-Eigenschaft hinzu
max_acceleration = 10.0; % Setzen Sie hier den gewünschten maximalen Beschleunigungswert ein
% Reduziere die Geschwindigkeit in der Nähe von Kurven
curvature_threshold = 0.4; % Setzen Sie den Krümmungsschwellenwert ein
if abs(cte) > curvature_threshold
desired_velocity = 10 * obj.max_velocity; % Reduziere die Geschwindigkeit in der Nähe von Kurven
end
acceleration = kp_lon * velocity_error + kd_lon * obj.states(4) + ki_lon * sum(obj.states(1:4));
% Begrenzen Sie die Beschleunigung
acceleration = max(-max_acceleration, min(max_acceleration, acceleration));
control_signal = [steering, acceleration];
obj.update_input(control_signal);
end Hallo Jungs bitte jemand mir helfen?: habe einen pid-Regler für ein Selfdriving car entwickeln. das Problem ist das Fahrzeug fährt nicht in Centerline wie geplann und nach änderung der Strecke, wird der Fehler noch schlimer. kann jemand mir helfen?
function LateralLongitudinal_Controller(obj, cte)
kp_lat = 0.08; % Parameter für laterale Regelung
kd_lat = 0.8;
ki_lat = 0.000002;
kp_lon = 0.1; % Parameter für longitudinale Regelung
kd_lon = 0.01;
ki_lon = 0.000001;
dcte = cte – obj.old_cte;
obj.cte_intergral = obj.cte_intergral + cte;
% Anti-Windup für den integralen Anteil
obj.cte_intergral = max(-obj.steering_angle_limit / ki_lat, min(obj.steering_angle_limit / ki_lat, obj.cte_intergral));
obj.old_cte = cte;
% Lateral Control (quer)
steering = kp_lat * cte + kd_lat * dcte + ki_lat * obj.cte_intergral;
% Begrenzen Sie den Lenkwinkel
steering = max(-obj.steering_angle_limit, min(obj.steering_angle_limit, steering));
% Longitudinal Control (längs)
desired_velocity = obj.max_velocity; % Setzen Sie die gewünschte Geschwindigkeit
velocity_error = desired_velocity – obj.states(4);
% Fügen Sie die max_acceleration-Eigenschaft hinzu
max_acceleration = 10.0; % Setzen Sie hier den gewünschten maximalen Beschleunigungswert ein
% Reduziere die Geschwindigkeit in der Nähe von Kurven
curvature_threshold = 0.4; % Setzen Sie den Krümmungsschwellenwert ein
if abs(cte) > curvature_threshold
desired_velocity = 10 * obj.max_velocity; % Reduziere die Geschwindigkeit in der Nähe von Kurven
end
acceleration = kp_lon * velocity_error + kd_lon * obj.states(4) + ki_lon * sum(obj.states(1:4));
% Begrenzen Sie die Beschleunigung
acceleration = max(-max_acceleration, min(max_acceleration, acceleration));
control_signal = [steering, acceleration];
obj.update_input(control_signal);
end pid controller MATLAB Answers — New Questions
How to move colorbar in scatter3 plot and keep it inside the figure
After adding title to the colorbar of a scatter3 plot, I realized the formatting is all wonky.
Looking online, I moved the colorbar to southoutside, and was able to move the colorbar by setting its second position, see code below, but it simply moves the colorbar out of the window instead and can no longer be seen.
Based on another answer, I tried to move the axes of the scatter3 plot, since in that case, moving the axes forced the figure window to resize, but it failed – scatter3’s axes doesn’t seem to have position property, which makes sense, given the type of figure.
So I am at a loss. I could move the parts manually, and then resize the main plot area, but I would love to be able to do it with the script since I would need to process many figures like this. Does anyone have any suggestions?
importdata(‘GNDout.mat’);
x = GNDout(:,1);
y = GNDout(:,2);
z = GNDout(:,3);
value2 = GNDout(:,17)-min(GNDout(:,17));
figure;
S = 50;
scatter3(x,y,z,S,value2/1e14,’filled’);
xlabel(‘x’);
ylabel(‘y’);
zlabel(‘z’);
axis equal;
cb = colorbar(‘Location’,’Southoutside’);
cb.Position(2) = cb.Position(2)-0.5;
title(cb, ‘rho_{GND} [10^{14} m^{-2}]’);
Attached is the data GNDout. Thanks in advance!After adding title to the colorbar of a scatter3 plot, I realized the formatting is all wonky.
Looking online, I moved the colorbar to southoutside, and was able to move the colorbar by setting its second position, see code below, but it simply moves the colorbar out of the window instead and can no longer be seen.
Based on another answer, I tried to move the axes of the scatter3 plot, since in that case, moving the axes forced the figure window to resize, but it failed – scatter3’s axes doesn’t seem to have position property, which makes sense, given the type of figure.
So I am at a loss. I could move the parts manually, and then resize the main plot area, but I would love to be able to do it with the script since I would need to process many figures like this. Does anyone have any suggestions?
importdata(‘GNDout.mat’);
x = GNDout(:,1);
y = GNDout(:,2);
z = GNDout(:,3);
value2 = GNDout(:,17)-min(GNDout(:,17));
figure;
S = 50;
scatter3(x,y,z,S,value2/1e14,’filled’);
xlabel(‘x’);
ylabel(‘y’);
zlabel(‘z’);
axis equal;
cb = colorbar(‘Location’,’Southoutside’);
cb.Position(2) = cb.Position(2)-0.5;
title(cb, ‘rho_{GND} [10^{14} m^{-2}]’);
Attached is the data GNDout. Thanks in advance! After adding title to the colorbar of a scatter3 plot, I realized the formatting is all wonky.
Looking online, I moved the colorbar to southoutside, and was able to move the colorbar by setting its second position, see code below, but it simply moves the colorbar out of the window instead and can no longer be seen.
Based on another answer, I tried to move the axes of the scatter3 plot, since in that case, moving the axes forced the figure window to resize, but it failed – scatter3’s axes doesn’t seem to have position property, which makes sense, given the type of figure.
So I am at a loss. I could move the parts manually, and then resize the main plot area, but I would love to be able to do it with the script since I would need to process many figures like this. Does anyone have any suggestions?
importdata(‘GNDout.mat’);
x = GNDout(:,1);
y = GNDout(:,2);
z = GNDout(:,3);
value2 = GNDout(:,17)-min(GNDout(:,17));
figure;
S = 50;
scatter3(x,y,z,S,value2/1e14,’filled’);
xlabel(‘x’);
ylabel(‘y’);
zlabel(‘z’);
axis equal;
cb = colorbar(‘Location’,’Southoutside’);
cb.Position(2) = cb.Position(2)-0.5;
title(cb, ‘rho_{GND} [10^{14} m^{-2}]’);
Attached is the data GNDout. Thanks in advance! plotting, figure MATLAB Answers — New Questions