Month: October 2024
Problem with multi-factor authentication
Hello, I am a registered and active Microsoft Partner with ID 1822164. I have two-factor authentication through the Authenticator app on my mobile phone. The phone is currently down and I can’t log into partner.microsoft.com. I have a new phone with Authenticator installed but I can’t make any changes to the account. I can provide any necessary identification information, my name and password are valid. Where can I request to turn off two-factor authentication to sign in and add my new phone?
Hello, I am a registered and active Microsoft Partner with ID 1822164. I have two-factor authentication through the Authenticator app on my mobile phone. The phone is currently down and I can’t log into partner.microsoft.com. I have a new phone with Authenticator installed but I can’t make any changes to the account. I can provide any necessary identification information, my name and password are valid. Where can I request to turn off two-factor authentication to sign in and add my new phone? Read More
winget upgrade –all
I kind of have a problem with my window. I cannot get my apps the updates like actually that I tried to use this command. It will not update on my PC even that I have the latest newest version 24h2 I have even tried to use the ai chat GPT. and still it does not want to work, so I don’t know what I do wrong but can some one get like a research on it? Because I do have an image.
I kind of have a problem with my window. I cannot get my apps the updates like actually that I tried to use this command. It will not update on my PC even that I have the latest newest version 24h2 I have even tried to use the ai chat GPT. and still it does not want to work, so I don’t know what I do wrong but can some one get like a research on it? Because I do have an image. Read More
Bookings of 30mins to start on hour & then to 15mins
I am opening bookings from 12pm (for 30mins) and running until 2pm. Then my team have a 45min lunch break. I would then like to start the appointments again at 2:45pm (for 30mins) until 5:45pm. I can’t find a way to do this as MSBookings will only let me start at 3pm or 2:30pm. Can you help?
I am opening bookings from 12pm (for 30mins) and running until 2pm. Then my team have a 45min lunch break. I would then like to start the appointments again at 2:45pm (for 30mins) until 5:45pm. I can’t find a way to do this as MSBookings will only let me start at 3pm or 2:30pm. Can you help? Read More
Migrating Windows Server from ‘Hybrid Azure AD Join’ to ‘Entra ID Join (Cloud-Only)’
Hi everyone,
I need help with a scenario where I’m looking to move a server ( non DC ) from Microsoft Entra Hybrid Joined to cloud only (Entra ID) Joined only. The goal is to stop relying on the on-premises AD domain and make the server authenticate only through cloud-based accounts (Azure AD accounts).
I’d appreciate any guidance, documentation or best practices on how to properly handle this migration while ensuring minimal disruption.
Has anyone done this transition before?
What steps and considerations should I be aware of in terms of network configuration, Cost…. etc?
Thanks in advance for your help!
Hi everyone, I need help with a scenario where I’m looking to move a server ( non DC ) from Microsoft Entra Hybrid Joined to cloud only (Entra ID) Joined only. The goal is to stop relying on the on-premises AD domain and make the server authenticate only through cloud-based accounts (Azure AD accounts). I’d appreciate any guidance, documentation or best practices on how to properly handle this migration while ensuring minimal disruption. Has anyone done this transition before?What steps and considerations should I be aware of in terms of network configuration, Cost…. etc? Thanks in advance for your help! Read More
How to use a solver function to solve matrix?
So I have an equation that goes something like N.*P + S.*P + E.*P + W.*P = Q
N S E and W are coefficients, P is pressure changing with time. In terms of [A]*[x]=[b] its supposedly [coefficients]*[Pressure]=[Q]. How would I use a solver to translate the equation into these matrix terms?So I have an equation that goes something like N.*P + S.*P + E.*P + W.*P = Q
N S E and W are coefficients, P is pressure changing with time. In terms of [A]*[x]=[b] its supposedly [coefficients]*[Pressure]=[Q]. How would I use a solver to translate the equation into these matrix terms? So I have an equation that goes something like N.*P + S.*P + E.*P + W.*P = Q
N S E and W are coefficients, P is pressure changing with time. In terms of [A]*[x]=[b] its supposedly [coefficients]*[Pressure]=[Q]. How would I use a solver to translate the equation into these matrix terms? gmres, solver MATLAB Answers — New Questions
Error using mex No supported compiler was found. MATLAB2018b Windows10
Hi all,
I am trying to use compiler using mex code,
so I installed following
・Microsoft Visual C++ 2015-2019 x64 Redistributable
・Windows 10 SDK
and I got following error
>> mex -v -setup
Verbose mode is on.
… Looking for compiler ‘Intel Parallel Studio XE 2015 with Microsoft Visual Studio 2015 (C)’ …
… Looking for environment variable ‘ICPP_COMPILER15’ …No.
Did not find installed compiler ‘Intel Parallel Studio XE 2015 with Microsoft Visual Studio 2015 (C)’.
… Looking for compiler ‘Intel Parallel Studio XE 2016 with Microsoft Visual Studio 2015 (C)’ …
… Looking for environment variable ‘ICPP_COMPILER16’ …No.
Did not find installed compiler ‘Intel Parallel Studio XE 2016 with Microsoft Visual Studio 2015 (C)’.
… Looking for compiler ‘Intel Parallel Studio XE 2017 with Microsoft Visual Studio 2015 (C)’ …
… Looking for environment variable ‘ICPP_COMPILER17’ …No.
Did not find installed compiler ‘Intel Parallel Studio XE 2017 with Microsoft Visual Studio 2015 (C)’.
… Looking for compiler ‘Intel Parallel Studio XE 2017 with Microsoft Visual Studio 2017 (C)’ …
… Looking for environment variable ‘ICPP_COMPILER17’ …No.
Did not find installed compiler ‘Intel Parallel Studio XE 2017 with Microsoft Visual Studio 2017 (C)’.
… Looking for compiler ‘Intel Parallel Studio XE 2018 with Microsoft Visual Studio 2015 (C)’ …
… Looking for environment variable ‘ICPP_COMPILER18’ …No.
Did not find installed compiler ‘Intel Parallel Studio XE 2018 with Microsoft Visual Studio 2015 (C)’.
… Looking for compiler ‘Intel Parallel Studio XE 2018 with Microsoft Visual Studio 2017 (C)’ …
… Looking for environment variable ‘ICPP_COMPILER18’ …No.
Did not find installed compiler ‘Intel Parallel Studio XE 2018 with Microsoft Visual Studio 2017 (C)’.
… Looking for compiler ‘MinGW64 Compiler (C)’ …
… Looking for environment variable ‘MW_MINGW64_LOC’ …No.
Did not find installed compiler ‘MinGW64 Compiler (C)’.
… Looking for compiler ‘Microsoft Visual C++ 2013 (C)’ …
… Looking for registry setting ‘HKLMSOFTWAREMicrosoftVisualStudioSxSVS7’ 12.0 …No.
… Looking for registry setting ‘HKCUSOFTWAREMicrosoftVisualStudioSxSVS7’ 12.0 …No.
… Looking for registry setting ‘HKLMSOFTWAREWow6432NodeMicrosoftVisualStudioSxSVS7’ 12.0 …No.
… Looking for registry setting ‘HKCUSOFTWAREWow6432NodeMicrosoftVisualStudioSxSVS7’ 12.0 …No.
Did not find installed compiler ‘Microsoft Visual C++ 2013 (C)’.
… Looking for compiler ‘Microsoft Visual C++ 2015 (C)’ …
… Looking for registry setting ‘HKLMSOFTWAREMicrosoftVisualStudioSxSVC7’ 14.0 …No.
… Looking for registry setting ‘HKCUSOFTWAREMicrosoftVisualStudioSxSVC7’ 14.0 …No.
… Looking for registry setting ‘HKLMSOFTWAREWow6432NodeMicrosoftVisualStudioSxSVC7’ 14.0 …No.
… Looking for registry setting ‘HKCUSOFTWAREWow6432NodeMicrosoftVisualStudioSxSVC7’ 14.0 …No.
Did not find installed compiler ‘Microsoft Visual C++ 2015 (C)’.
… Looking for compiler ‘Microsoft Visual C++ 2017 (C)’ …
… Looking for registry setting ‘HKLMSOFTWAREMicrosoftVisualStudioSxSVS7’ 15.0 …No.
… Looking for registry setting ‘HKCUSOFTWAREMicrosoftVisualStudioSxSVS7’ 15.0 …No.
… Looking for registry setting ‘HKLMSOFTWAREWow6432NodeMicrosoftVisualStudioSxSVS7’ 15.0 …No.
… Looking for registry setting ‘HKCUSOFTWAREWow6432NodeMicrosoftVisualStudioSxSVS7’ 15.0 …No.
Did not find installed compiler ‘Microsoft Visual C++ 2017 (C)’.
Error using mex
No supported compiler was found. You can install the freely available MinGW-w64 C/C++ compiler; see Install MinGW-w64 Compiler. For more options, visit
https://www.mathworks.com/support/compilers.
>> mbuild -setup -v
‘mbuild’ requires MATLAB Compiler SDK.
I installed windows 10 SDK first and then installed Microsoft Visual C++ 2015-2019 x64 Redistributable
what am I missing?Hi all,
I am trying to use compiler using mex code,
so I installed following
・Microsoft Visual C++ 2015-2019 x64 Redistributable
・Windows 10 SDK
and I got following error
>> mex -v -setup
Verbose mode is on.
… Looking for compiler ‘Intel Parallel Studio XE 2015 with Microsoft Visual Studio 2015 (C)’ …
… Looking for environment variable ‘ICPP_COMPILER15’ …No.
Did not find installed compiler ‘Intel Parallel Studio XE 2015 with Microsoft Visual Studio 2015 (C)’.
… Looking for compiler ‘Intel Parallel Studio XE 2016 with Microsoft Visual Studio 2015 (C)’ …
… Looking for environment variable ‘ICPP_COMPILER16’ …No.
Did not find installed compiler ‘Intel Parallel Studio XE 2016 with Microsoft Visual Studio 2015 (C)’.
… Looking for compiler ‘Intel Parallel Studio XE 2017 with Microsoft Visual Studio 2015 (C)’ …
… Looking for environment variable ‘ICPP_COMPILER17’ …No.
Did not find installed compiler ‘Intel Parallel Studio XE 2017 with Microsoft Visual Studio 2015 (C)’.
… Looking for compiler ‘Intel Parallel Studio XE 2017 with Microsoft Visual Studio 2017 (C)’ …
… Looking for environment variable ‘ICPP_COMPILER17’ …No.
Did not find installed compiler ‘Intel Parallel Studio XE 2017 with Microsoft Visual Studio 2017 (C)’.
… Looking for compiler ‘Intel Parallel Studio XE 2018 with Microsoft Visual Studio 2015 (C)’ …
… Looking for environment variable ‘ICPP_COMPILER18’ …No.
Did not find installed compiler ‘Intel Parallel Studio XE 2018 with Microsoft Visual Studio 2015 (C)’.
… Looking for compiler ‘Intel Parallel Studio XE 2018 with Microsoft Visual Studio 2017 (C)’ …
… Looking for environment variable ‘ICPP_COMPILER18’ …No.
Did not find installed compiler ‘Intel Parallel Studio XE 2018 with Microsoft Visual Studio 2017 (C)’.
… Looking for compiler ‘MinGW64 Compiler (C)’ …
… Looking for environment variable ‘MW_MINGW64_LOC’ …No.
Did not find installed compiler ‘MinGW64 Compiler (C)’.
… Looking for compiler ‘Microsoft Visual C++ 2013 (C)’ …
… Looking for registry setting ‘HKLMSOFTWAREMicrosoftVisualStudioSxSVS7’ 12.0 …No.
… Looking for registry setting ‘HKCUSOFTWAREMicrosoftVisualStudioSxSVS7’ 12.0 …No.
… Looking for registry setting ‘HKLMSOFTWAREWow6432NodeMicrosoftVisualStudioSxSVS7’ 12.0 …No.
… Looking for registry setting ‘HKCUSOFTWAREWow6432NodeMicrosoftVisualStudioSxSVS7’ 12.0 …No.
Did not find installed compiler ‘Microsoft Visual C++ 2013 (C)’.
… Looking for compiler ‘Microsoft Visual C++ 2015 (C)’ …
… Looking for registry setting ‘HKLMSOFTWAREMicrosoftVisualStudioSxSVC7’ 14.0 …No.
… Looking for registry setting ‘HKCUSOFTWAREMicrosoftVisualStudioSxSVC7’ 14.0 …No.
… Looking for registry setting ‘HKLMSOFTWAREWow6432NodeMicrosoftVisualStudioSxSVC7’ 14.0 …No.
… Looking for registry setting ‘HKCUSOFTWAREWow6432NodeMicrosoftVisualStudioSxSVC7’ 14.0 …No.
Did not find installed compiler ‘Microsoft Visual C++ 2015 (C)’.
… Looking for compiler ‘Microsoft Visual C++ 2017 (C)’ …
… Looking for registry setting ‘HKLMSOFTWAREMicrosoftVisualStudioSxSVS7’ 15.0 …No.
… Looking for registry setting ‘HKCUSOFTWAREMicrosoftVisualStudioSxSVS7’ 15.0 …No.
… Looking for registry setting ‘HKLMSOFTWAREWow6432NodeMicrosoftVisualStudioSxSVS7’ 15.0 …No.
… Looking for registry setting ‘HKCUSOFTWAREWow6432NodeMicrosoftVisualStudioSxSVS7’ 15.0 …No.
Did not find installed compiler ‘Microsoft Visual C++ 2017 (C)’.
Error using mex
No supported compiler was found. You can install the freely available MinGW-w64 C/C++ compiler; see Install MinGW-w64 Compiler. For more options, visit
https://www.mathworks.com/support/compilers.
>> mbuild -setup -v
‘mbuild’ requires MATLAB Compiler SDK.
I installed windows 10 SDK first and then installed Microsoft Visual C++ 2015-2019 x64 Redistributable
what am I missing? Hi all,
I am trying to use compiler using mex code,
so I installed following
・Microsoft Visual C++ 2015-2019 x64 Redistributable
・Windows 10 SDK
and I got following error
>> mex -v -setup
Verbose mode is on.
… Looking for compiler ‘Intel Parallel Studio XE 2015 with Microsoft Visual Studio 2015 (C)’ …
… Looking for environment variable ‘ICPP_COMPILER15’ …No.
Did not find installed compiler ‘Intel Parallel Studio XE 2015 with Microsoft Visual Studio 2015 (C)’.
… Looking for compiler ‘Intel Parallel Studio XE 2016 with Microsoft Visual Studio 2015 (C)’ …
… Looking for environment variable ‘ICPP_COMPILER16’ …No.
Did not find installed compiler ‘Intel Parallel Studio XE 2016 with Microsoft Visual Studio 2015 (C)’.
… Looking for compiler ‘Intel Parallel Studio XE 2017 with Microsoft Visual Studio 2015 (C)’ …
… Looking for environment variable ‘ICPP_COMPILER17’ …No.
Did not find installed compiler ‘Intel Parallel Studio XE 2017 with Microsoft Visual Studio 2015 (C)’.
… Looking for compiler ‘Intel Parallel Studio XE 2017 with Microsoft Visual Studio 2017 (C)’ …
… Looking for environment variable ‘ICPP_COMPILER17’ …No.
Did not find installed compiler ‘Intel Parallel Studio XE 2017 with Microsoft Visual Studio 2017 (C)’.
… Looking for compiler ‘Intel Parallel Studio XE 2018 with Microsoft Visual Studio 2015 (C)’ …
… Looking for environment variable ‘ICPP_COMPILER18’ …No.
Did not find installed compiler ‘Intel Parallel Studio XE 2018 with Microsoft Visual Studio 2015 (C)’.
… Looking for compiler ‘Intel Parallel Studio XE 2018 with Microsoft Visual Studio 2017 (C)’ …
… Looking for environment variable ‘ICPP_COMPILER18’ …No.
Did not find installed compiler ‘Intel Parallel Studio XE 2018 with Microsoft Visual Studio 2017 (C)’.
… Looking for compiler ‘MinGW64 Compiler (C)’ …
… Looking for environment variable ‘MW_MINGW64_LOC’ …No.
Did not find installed compiler ‘MinGW64 Compiler (C)’.
… Looking for compiler ‘Microsoft Visual C++ 2013 (C)’ …
… Looking for registry setting ‘HKLMSOFTWAREMicrosoftVisualStudioSxSVS7’ 12.0 …No.
… Looking for registry setting ‘HKCUSOFTWAREMicrosoftVisualStudioSxSVS7’ 12.0 …No.
… Looking for registry setting ‘HKLMSOFTWAREWow6432NodeMicrosoftVisualStudioSxSVS7’ 12.0 …No.
… Looking for registry setting ‘HKCUSOFTWAREWow6432NodeMicrosoftVisualStudioSxSVS7’ 12.0 …No.
Did not find installed compiler ‘Microsoft Visual C++ 2013 (C)’.
… Looking for compiler ‘Microsoft Visual C++ 2015 (C)’ …
… Looking for registry setting ‘HKLMSOFTWAREMicrosoftVisualStudioSxSVC7’ 14.0 …No.
… Looking for registry setting ‘HKCUSOFTWAREMicrosoftVisualStudioSxSVC7’ 14.0 …No.
… Looking for registry setting ‘HKLMSOFTWAREWow6432NodeMicrosoftVisualStudioSxSVC7’ 14.0 …No.
… Looking for registry setting ‘HKCUSOFTWAREWow6432NodeMicrosoftVisualStudioSxSVC7’ 14.0 …No.
Did not find installed compiler ‘Microsoft Visual C++ 2015 (C)’.
… Looking for compiler ‘Microsoft Visual C++ 2017 (C)’ …
… Looking for registry setting ‘HKLMSOFTWAREMicrosoftVisualStudioSxSVS7’ 15.0 …No.
… Looking for registry setting ‘HKCUSOFTWAREMicrosoftVisualStudioSxSVS7’ 15.0 …No.
… Looking for registry setting ‘HKLMSOFTWAREWow6432NodeMicrosoftVisualStudioSxSVS7’ 15.0 …No.
… Looking for registry setting ‘HKCUSOFTWAREWow6432NodeMicrosoftVisualStudioSxSVS7’ 15.0 …No.
Did not find installed compiler ‘Microsoft Visual C++ 2017 (C)’.
Error using mex
No supported compiler was found. You can install the freely available MinGW-w64 C/C++ compiler; see Install MinGW-w64 Compiler. For more options, visit
https://www.mathworks.com/support/compilers.
>> mbuild -setup -v
‘mbuild’ requires MATLAB Compiler SDK.
I installed windows 10 SDK first and then installed Microsoft Visual C++ 2015-2019 x64 Redistributable
what am I missing? mex, compiler, sdk, windows10 sdk MATLAB Answers — New Questions
Interpolate pairs of values from matrix
I have a coarse 2D-matrix with [X,Y,Z]-values.
I want to input a Z-value and would like to interpolate possible values for the [X,Y]-pairs. These [X,Y]-pairs are then used for a fit. This means that for a given value of Z, if I choose any X value, Y can be calcualted and the other way arround.
I have tried the interp2 already, but it seems that I can only input X and Y values to get the interpolated Z value and not the other way around, where I input a Z-value and get a list of [X,Y]-pairs for that.
All the best
ChrisI have a coarse 2D-matrix with [X,Y,Z]-values.
I want to input a Z-value and would like to interpolate possible values for the [X,Y]-pairs. These [X,Y]-pairs are then used for a fit. This means that for a given value of Z, if I choose any X value, Y can be calcualted and the other way arround.
I have tried the interp2 already, but it seems that I can only input X and Y values to get the interpolated Z value and not the other way around, where I input a Z-value and get a list of [X,Y]-pairs for that.
All the best
Chris I have a coarse 2D-matrix with [X,Y,Z]-values.
I want to input a Z-value and would like to interpolate possible values for the [X,Y]-pairs. These [X,Y]-pairs are then used for a fit. This means that for a given value of Z, if I choose any X value, Y can be calcualted and the other way arround.
I have tried the interp2 already, but it seems that I can only input X and Y values to get the interpolated Z value and not the other way around, where I input a Z-value and get a list of [X,Y]-pairs for that.
All the best
Chris interp2 MATLAB Answers — New Questions
VALUE Error When Combining IF with SUMPRODUCT
Hi,
Please I need assistance with IF and SUMPRODUCT formula that keeps returning a Value Error.
I want to return sales value that match 4 criteria: the customer selected in Column C2, Product ID in E8 and between two dates columns F8 and G8.
However, as shown in photo 1, while the formula returns the correct numbers for Customer B (which table is in the same workbook i’m using), it returns a Value Error when I link to an external workbook as shown in photo below:
Hi,Please I need assistance with IF and SUMPRODUCT formula that keeps returning a Value Error.I want to return sales value that match 4 criteria: the customer selected in Column C2, Product ID in E8 and between two dates columns F8 and G8.However, as shown in photo 1, while the formula returns the correct numbers for Customer B (which table is in the same workbook i’m using), it returns a Value Error when I link to an external workbook as shown in photo below: Read More
COUNTIFS Week/Month start error
Hello,
I’ve tried to add a formula which can automatically read data from a spreadsheet and tell me how many appointments i have week to date and month to date once i change the date.
It seems to work, however the start date is wrong, it is doing Wednesday to Wednesday instead of Monday to Sunday. Any help appreciated.
=COUNTIFS(‘Annuity Tracker’!G:G,”<=” & B1,’Annuity Tracker’!G:G,”>=”& B1-(WEEKDAY(B2)-2))
Hello, I’ve tried to add a formula which can automatically read data from a spreadsheet and tell me how many appointments i have week to date and month to date once i change the date.It seems to work, however the start date is wrong, it is doing Wednesday to Wednesday instead of Monday to Sunday. Any help appreciated. =COUNTIFS(‘Annuity Tracker’!G:G,”<=” & B1,’Annuity Tracker’!G:G,”>=”& B1-(WEEKDAY(B2)-2)) Read More
Drop down in uitable to work like excel
I have an uitable and I want to have certain cells with a drop down. I know that this is done by using the functions categorical and table. The problem is that I need the table to accept empty values and show the empty values as a blank cell with the drop down functionality. If I add the empty option to a categorical this will show as <undefined>
Data = cell(21,2);
for i = 1:length(Data)
for j = 1:length(Data)
Data{i,j} = "";
end
end
fig = uifigure;
tab = uitable(fig);
opts = categorical({‘1′,’2’,”});
Data{2,1} = opts(3);
Column1 = Data(:,1);
Column2 = Data(:,2);
tab.Data = table(Column1,Column2);
By making the Columns editable and changing the <undefined> value it will show always one of the non-empty options entered in the categorical function and not allowing the cell to be empty (or <undefined>) anymore:
Is there a way to allow this types of cells to work like the drop downs works in Excel?
Thank you beforehand.I have an uitable and I want to have certain cells with a drop down. I know that this is done by using the functions categorical and table. The problem is that I need the table to accept empty values and show the empty values as a blank cell with the drop down functionality. If I add the empty option to a categorical this will show as <undefined>
Data = cell(21,2);
for i = 1:length(Data)
for j = 1:length(Data)
Data{i,j} = "";
end
end
fig = uifigure;
tab = uitable(fig);
opts = categorical({‘1′,’2’,”});
Data{2,1} = opts(3);
Column1 = Data(:,1);
Column2 = Data(:,2);
tab.Data = table(Column1,Column2);
By making the Columns editable and changing the <undefined> value it will show always one of the non-empty options entered in the categorical function and not allowing the cell to be empty (or <undefined>) anymore:
Is there a way to allow this types of cells to work like the drop downs works in Excel?
Thank you beforehand. I have an uitable and I want to have certain cells with a drop down. I know that this is done by using the functions categorical and table. The problem is that I need the table to accept empty values and show the empty values as a blank cell with the drop down functionality. If I add the empty option to a categorical this will show as <undefined>
Data = cell(21,2);
for i = 1:length(Data)
for j = 1:length(Data)
Data{i,j} = "";
end
end
fig = uifigure;
tab = uitable(fig);
opts = categorical({‘1′,’2’,”});
Data{2,1} = opts(3);
Column1 = Data(:,1);
Column2 = Data(:,2);
tab.Data = table(Column1,Column2);
By making the Columns editable and changing the <undefined> value it will show always one of the non-empty options entered in the categorical function and not allowing the cell to be empty (or <undefined>) anymore:
Is there a way to allow this types of cells to work like the drop downs works in Excel?
Thank you beforehand. dropdown, uitable, excel, empty MATLAB Answers — New Questions
Error with simout = sim (…)
I have defined three signals with timeseries, then I want to simulate a model loading this three signals
I have a error with the function
simout = sim (‘model’, ‘LoadExternalInput’,’on’, ‘ExternalInput’,’inp’, ‘ExternalInput’,’inp1′,’ExternalInput’,’inp2′);
Error using model (line 41)
The number of external inputs must be equal to the number of root-level input port blocks. Root-level
input port blocks include Trigger and Enable blocks. The model contains 3 root-level input port
blocks, but 1 external inputs were specified in Configuration Parameters -> Data Import/Export ->
Input.
I don’t know why doesn’t recognize the signalsI have defined three signals with timeseries, then I want to simulate a model loading this three signals
I have a error with the function
simout = sim (‘model’, ‘LoadExternalInput’,’on’, ‘ExternalInput’,’inp’, ‘ExternalInput’,’inp1′,’ExternalInput’,’inp2′);
Error using model (line 41)
The number of external inputs must be equal to the number of root-level input port blocks. Root-level
input port blocks include Trigger and Enable blocks. The model contains 3 root-level input port
blocks, but 1 external inputs were specified in Configuration Parameters -> Data Import/Export ->
Input.
I don’t know why doesn’t recognize the signals I have defined three signals with timeseries, then I want to simulate a model loading this three signals
I have a error with the function
simout = sim (‘model’, ‘LoadExternalInput’,’on’, ‘ExternalInput’,’inp’, ‘ExternalInput’,’inp1′,’ExternalInput’,’inp2′);
Error using model (line 41)
The number of external inputs must be equal to the number of root-level input port blocks. Root-level
input port blocks include Trigger and Enable blocks. The model contains 3 root-level input port
blocks, but 1 external inputs were specified in Configuration Parameters -> Data Import/Export ->
Input.
I don’t know why doesn’t recognize the signals simout MATLAB Answers — New Questions
transform linear inequality constraints into bound constraints for optimization solvers
Suppose there are linear inequality constraints and are the parameters optimized by fmincon, lsqnonlin, or friends.
Since linear inequality constraints can generally not be enforced at intermediate iterations, I want to transform them into bound constraints which can be enforced at all iterations.
General idea:
If is dense and has rows (i.e, there are constraints), then we can make a "change of variables"
, where are the rows of , for instance, .
This leads to simple bound constraints . Does that make sense?
Specific problem:
My parameters represent interpolation values corresponding to interpolation points and the resulting interpolation function is supposed to be convex on the interpolation domain. For the specific case of linear interpolation, @Matt J showed that convexity is realized by increasing second order finite differences
(which represents a set of linear inequality constraints)
This can be transformed into simpler bounds on the new parameters by the change of variables
with
What I am really working with are smoother B-spline basis functions of higher degree using spapi function. @Bruno Luong showed that the linear inequality matrix is given by
% k: spline order, x: points where values y live
B = spapi(k,x,eye(length(x)));
Bdd = fnder(B,2);
A = Bdd.coefs’
and
is a sufficient condition for convexity.
I am wondering whether a change of variables (like for linear interpolation functions) can be applied here to transform the inequalities into bounds?
Any opinions are greatly appreciated!Suppose there are linear inequality constraints and are the parameters optimized by fmincon, lsqnonlin, or friends.
Since linear inequality constraints can generally not be enforced at intermediate iterations, I want to transform them into bound constraints which can be enforced at all iterations.
General idea:
If is dense and has rows (i.e, there are constraints), then we can make a "change of variables"
, where are the rows of , for instance, .
This leads to simple bound constraints . Does that make sense?
Specific problem:
My parameters represent interpolation values corresponding to interpolation points and the resulting interpolation function is supposed to be convex on the interpolation domain. For the specific case of linear interpolation, @Matt J showed that convexity is realized by increasing second order finite differences
(which represents a set of linear inequality constraints)
This can be transformed into simpler bounds on the new parameters by the change of variables
with
What I am really working with are smoother B-spline basis functions of higher degree using spapi function. @Bruno Luong showed that the linear inequality matrix is given by
% k: spline order, x: points where values y live
B = spapi(k,x,eye(length(x)));
Bdd = fnder(B,2);
A = Bdd.coefs’
and
is a sufficient condition for convexity.
I am wondering whether a change of variables (like for linear interpolation functions) can be applied here to transform the inequalities into bounds?
Any opinions are greatly appreciated! Suppose there are linear inequality constraints and are the parameters optimized by fmincon, lsqnonlin, or friends.
Since linear inequality constraints can generally not be enforced at intermediate iterations, I want to transform them into bound constraints which can be enforced at all iterations.
General idea:
If is dense and has rows (i.e, there are constraints), then we can make a "change of variables"
, where are the rows of , for instance, .
This leads to simple bound constraints . Does that make sense?
Specific problem:
My parameters represent interpolation values corresponding to interpolation points and the resulting interpolation function is supposed to be convex on the interpolation domain. For the specific case of linear interpolation, @Matt J showed that convexity is realized by increasing second order finite differences
(which represents a set of linear inequality constraints)
This can be transformed into simpler bounds on the new parameters by the change of variables
with
What I am really working with are smoother B-spline basis functions of higher degree using spapi function. @Bruno Luong showed that the linear inequality matrix is given by
% k: spline order, x: points where values y live
B = spapi(k,x,eye(length(x)));
Bdd = fnder(B,2);
A = Bdd.coefs’
and
is a sufficient condition for convexity.
I am wondering whether a change of variables (like for linear interpolation functions) can be applied here to transform the inequalities into bounds?
Any opinions are greatly appreciated! splines, optimization, fmincon, spapi, interpolation MATLAB Answers — New Questions
Sharepoint list created from Excel Export creates a allitemsg.aspx view and also goes to Edit mode
I think is easier to create and build columns using Excel formulas in Excel.
But when I Export the table to create a new sharepoint list it gets a default view called allitemsg.aspx ?
I like the format of the list since it keeps the columns very narrow.
But I manually have to delete the leftmost column, which is icon called Type.
The big problem is I don’t want to go directly into Edit mode. The list contains hyperlinks that should be easy to click.
Can I somehow restore to the standard view behaviour?
kind of restore alliteimsg.aspx to allitems.aspx ?
I think is easier to create and build columns using Excel formulas in Excel.But when I Export the table to create a new sharepoint list it gets a default view called allitemsg.aspx ?I like the format of the list since it keeps the columns very narrow.But I manually have to delete the leftmost column, which is icon called Type. The big problem is I don’t want to go directly into Edit mode. The list contains hyperlinks that should be easy to click. Can I somehow restore to the standard view behaviour? kind of restore alliteimsg.aspx to allitems.aspx ? Read More
planner access issue – external tenant?
Selected user account does not exist in tenant ‘Microsoft Services’ and cannot access the application ’09abbdfd-ed23-44ee-a2d9-a627aa1c90f3′ in that tenant. The account needs to be added as an external user in the tenant first. Please use a different account.
Selected user account does not exist in tenant ‘Microsoft Services’ and cannot access the application ’09abbdfd-ed23-44ee-a2d9-a627aa1c90f3′ in that tenant. The account needs to be added as an external user in the tenant first. Please use a different account. Read More
envoi du destinataire non remis
Bonjour depuis quelques jours quand un destinataire m’envoi un émail il est informé que son émail ne m’est pas remis , hors je le reçois , dans ma boîte de réception , ou ça va dans mes emails indésirables ou là j’ai une liste d’émail « non remis » postmaster@outlook Je dois cliquer sur courrier légitime pour le lire , comment puis je corrige cela ?
Bonjour depuis quelques jours quand un destinataire m’envoi un émail il est informé que son émail ne m’est pas remis , hors je le reçois , dans ma boîte de réception , ou ça va dans mes emails indésirables ou là j’ai une liste d’émail « non remis » postmaster@outlook Je dois cliquer sur courrier légitime pour le lire , comment puis je corrige cela ? Read More
Microsoft Teams Room version 5.2.115.0 bug: Teams Room account can’t login
Hello,
I work as an AV integrator and we currently have roughly 100 Microsoft Teams Room machines installed.
Since last Tuesday we have been notified of multiple rooms (10 so far) where the Microsoft Teams Room account cannot login.
All these rooms have in common that the Microsoft Teams Room application has been updated (automatically) to version 5.2.115.0
Previous versions of the Microsoft Teams Room application do not show these issues.
Is there a way we can downgrade these machines to an older working version?
Hello, I work as an AV integrator and we currently have roughly 100 Microsoft Teams Room machines installed.Since last Tuesday we have been notified of multiple rooms (10 so far) where the Microsoft Teams Room account cannot login.All these rooms have in common that the Microsoft Teams Room application has been updated (automatically) to version 5.2.115.0Previous versions of the Microsoft Teams Room application do not show these issues. Is there a way we can downgrade these machines to an older working version? Read More
Colour representation of three matrices entities (SOLID, rho1 and rho2)
Dear friend,
Please I am solving a mixture of two fluids in a solid domain just as presented in the code below; I want a representation of the three parameters(SOLID,rho1 and rho2) with distinct colours in the same domain. Attached are two graphs (the one with two colours is the result I got, the result with three colours is what I want).
clear clc;close all;
% define numerical parameters
%new BounceBack<T,Descriptor>(0.5);
N=256;
nx=1*N; ny=N;
tau1=1; tau2=1; % relexation time
G=-1.5;
% define weight coefficient(D2Q9)
w0=4/9;
w1=1/9; w2=1/9; w3=1/9; w4=1/9;
w5=1/36; w6=1/36; w7=1/36; w8=1/36;
% initialize variable values in the field
c=1; %lattice speed
dt=1;% delta t
% solid capturing initialisation
SOLID=rand(nx+1,ny+1)>0.7;%extremely porous random domain
%SOLID = false( 1, nx, ny );
SOLID( 1, : ) = true;
SOLID( end, : ) = true;
SOLID( :, 1 ) = true;
SOLID( :, end ) = true;
%SOLID = find( SOLID );
% initialize distribution functions for two components
delta_rho=0.001*(1-2*rand(ny+1,nx+1));
rho1=1+delta_rho;
rho2=1-delta_rho;
% distribution function for component 1
f(:,:,1)=w1*rho1;
f(:,:,2)=w2*rho1;
f(:,:,3)=w3*rho1;
f(:,:,4)=w4*rho1;
f(:,:,5)=w5*rho1;
f(:,:,6)=w6*rho1;
f(:,:,7)=w7*rho1;
f(:,:,8)=w8*rho1;
f(:,:,9)=w0*rho1;
% distribution function for component 2
g(:,:,1)=w1*rho2;
g(:,:,2)=w2*rho2;
g(:,:,3)=w3*rho2;
g(:,:,4)=w4*rho2;
g(:,:,5)=w5*rho2;
g(:,:,6)=w6*rho2;
g(:,:,7)=w7*rho2;
g(:,:,8)=w8*rho2;
g(:,:,9)=w0*rho2;
for it=1:1000
% macropic properties
% calculate interaction body forces
rho1=sum(f,3); %density of fluid 1
rho2=sum(g,3); %density of fluid 2
rho_tot=rho1+rho2;% total local density
% body forces for conhension
F221_x=-rho1.*G.*(w1*circshift(rho2,[0,1])-w3*circshift(rho2,[0,-1])+w5*circshift(rho2,[-1,1])-w6*circshift(rho2,[-1,-1])…
-w7*circshift(rho2,[1,-1])+w8*circshift(rho2,[1,1]));
F221_y=-rho1.*G.*(w2*circshift(rho2,[-1 0])-w4*circshift(rho2,[1,0])+w5*circshift(rho2,[-1,1])+w6*circshift(rho2,[-1,-1])…
-w7*circshift(rho2,[1,-1])-w8*circshift(rho2,[1,1]));
F122_x=-rho2.*G.*(w1*circshift(rho1,[0,1])-w3*circshift(rho1,[0,-1])+w5*circshift(rho1,[-1,1])-w6*circshift(rho1,[-1,-1])…
-w7*circshift(rho1,[1,-1])+w8*circshift(rho1,[1,1]));
F122_y=-rho2.*G.*(w2*circshift(rho1,[-1 0])-w4*circshift(rho1,[1,0])+w5*circshift(rho1,[-1,1])+w6*circshift(rho1,[-1,-1])…
-w7*circshift(rho1,[1,-1])-w8*circshift(rho1,[1,1]));
% velocity field
u=(sum(f(:,:,[1 5 8]),3)-sum(f(:,:,[3 6 7]),3)+sum(g(:,:,[1 5 8]),3)-sum(g(:,:,[3 6 7]),3))./rho_tot+(F221_x+F122_x)./rho_tot./2;
v=(sum(f(:,:,[2 5 6]),3)-sum(f(:,:,[4 7 8]),3)+sum(g(:,:,[2 5 6]),3)-sum(g(:,:,[4 7 8]),3))./rho_tot+(F221_y+F122_y)./rho_tot./2;
% collision step
% calculate equilibrium distribution for fluid 1
feq(:,:,1)=w1*rho1.*(1+3*u/c+9/2*u.^2/c^2-3/2*(u.^2+v.^2)/c^2);
feq(:,:,2)=w2*rho1.*(1+3*v/c+9/2*v.^2/c^2-3/2*(u.^2+v.^2)/c^2);
feq(:,:,3)=w3*rho1.*(1+3*-u/c+9/2*u.^2/c^2-3/2*(u.^2+v.^2)/c^2);
feq(:,:,4)=w4*rho1.*(1+3*-v/c+9/2*v.^2/c^2-3/2*(u.^2+v.^2)/c^2);
feq(:,:,5)=w5*rho1.*(1+3*(u+v)/c+9/2*(u+v).^2/c^2-3/2*(u.^2+v.^2)/c^2);
feq(:,:,6)=w6*rho1.*(1+3*(-u+v)/c+9/2*(-u+v).^2/c^2-3/2*(u.^2+v.^2)/c^2);
feq(:,:,7)=w7*rho1.*(1+3*(-u-v)/c+9/2*(-u-v).^2/c^2-3/2*(u.^2+v.^2)/c^2);
feq(:,:,8)=w8*rho1.*(1+3*(u-v)/c+9/2*(u-v).^2/c^2-3/2*(u.^2+v.^2)/c^2);
feq(:,:,9)=w0*rho1.*(1-3/2*(u.^2+v.^2)/c^2);
% for fluid 2
geq(:,:,1)=w1*rho2.*(1+3*u/c+9/2*u.^2/c^2-3/2*(u.^2+v.^2)/c^2);
geq(:,:,2)=w2*rho2.*(1+3*v/c+9/2*v.^2/c^2-3/2*(u.^2+v.^2)/c^2);
geq(:,:,3)=w3*rho2.*(1+3*-u/c+9/2*u.^2/c^2-3/2*(u.^2+v.^2)/c^2);
geq(:,:,4)=w4*rho2.*(1+3*-v/c+9/2*v.^2/c^2-3/2*(u.^2+v.^2)/c^2);
geq(:,:,5)=w5*rho2.*(1+3*(u+v)/c+9/2*(u+v).^2/c^2-3/2*(u.^2+v.^2)/c^2);
geq(:,:,6)=w6*rho2.*(1+3*(-u+v)/c+9/2*(-u+v).^2/c^2-3/2*(u.^2+v.^2)/c^2);
geq(:,:,7)=w7*rho2.*(1+3*(-u-v)/c+9/2*(-u-v).^2/c^2-3/2*(u.^2+v.^2)/c^2);
geq(:,:,8)=w8*rho2.*(1+3*(u-v)/c+9/2*(u-v).^2/c^2-3/2*(u.^2+v.^2)/c^2);
geq(:,:,9)=w0*rho2.*(1-3/2*(u.^2+v.^2)/c^2);
%calculate body force terms in collision step
% for fluid 1
F1(:,:,1)=w1*(1-1/2/tau1)*((6*u+3).*(F221_x)+-3*v.*(F221_y));
F1(:,:,2)=w2*(1-1/2/tau1)*(-3*u.*(F221_x)+(3+6*v).*(F221_y));
F1(:,:,3)=w3*(1-1/2/tau1)*((6*u-3).*(F221_x)+-3*v.*(F221_y));
F1(:,:,4)=w4*(1-1/2/tau1)*(-3*u.*(F221_x)+(-3+6*v).*(F221_y));
F1(:,:,5)=w5*(1-1/2/tau1)*((3+6*u+9*v).*(F221_x)+(3+9*u+6*v).*(F221_y));
F1(:,:,6)=w6*(1-1/2/tau1)*((-3+6*u-9*v).*(F221_x)+(3-9*u+6*v).*(F221_y));
F1(:,:,7)=w7*(1-1/2/tau1)*((-3+6*u+9*v).*(F221_x)+(-3+9*u+6*v).*(F221_y));
F1(:,:,8)=w8*(1-1/2/tau1)*((3+6*u-9*v).*(F221_x)+(-3-9*u+6*v).*(F221_y));
F1(:,:,9)=w0*(1-1/2/tau1)*(-3*u.*(F221_x)+-3*v.*(F221_y));
% for fluid 2
F2(:,:,1)=w1*(1-1/2/tau2)*((6*u+3).*(F122_x)+-3*v.*(F122_y));
F2(:,:,2)=w2*(1-1/2/tau2)*(-3*u.*(F122_x)+(3+6*v).*(F122_y));
F2(:,:,3)=w3*(1-1/2/tau2)*((6*u-3).*(F122_x)+-3*v.*(F122_y));
F2(:,:,4)=w4*(1-1/2/tau2)*(-3*u.*(F122_x)+(-3+6*v).*(F122_y));
F2(:,:,5)=w5*(1-1/2/tau2)*((3+6*u+9*v).*(F122_x)+(3+9*u+6*v).*(F122_y));
F2(:,:,6)=w6*(1-1/2/tau2)*((-3+6*u-9*v).*(F122_x)+(3-9*u+6*v).*(F122_y));
F2(:,:,7)=w7*(1-1/2/tau2)*((-3+6*u+9*v).*(F122_x)+(-3+9*u+6*v).*(F122_y));
F2(:,:,8)=w8*(1-1/2/tau2)*((3+6*u-9*v).*(F122_x)+(-3-9*u+6*v).*(F122_y));
F2(:,:,9)=w0*(1-1/2/tau2)*(-3*u.*(F122_x)+-3*v.*(F122_y));
% collision
f=f-1/tau1.*(f-feq)+F1;
g=g-1/tau2.*(g-geq)+F2;
%streaming
f(:,:,1)=circshift(f(:,:,1),[0,1]);
f(:,:,2)=circshift(f(:,:,2),[-1,0]);
f(:,:,3)=circshift(f(:,:,3),[0,-1]);
f(:,:,4)=circshift(f(:,:,4),[1,0]);
f(:,:,5)=circshift(f(:,:,5),[-1,1]);
f(:,:,6)=circshift(f(:,:,6),[-1,-1]);
f(:,:,7)=circshift(f(:,:,7),[1,-1]);
f(:,:,8)=circshift(f(:,:,8),[1,1]);
g(:,:,1)=circshift(g(:,:,1),[0,1]);
g(:,:,2)=circshift(g(:,:,2),[-1,0]);
g(:,:,3)=circshift(g(:,:,3),[0,-1]);
g(:,:,4)=circshift(g(:,:,4),[1,0]);
g(:,:,5)=circshift(g(:,:,5),[-1,1]);
g(:,:,6)=circshift(g(:,:,6),[-1,-1]);
g(:,:,7)=circshift(g(:,:,7),[1,-1]);
g(:,:,8)=circshift(g(:,:,8),[1,1]);
% add BC
%L
f(:,1,1)=f(:,nx+1,1);
f(:,1,5)=f(:,nx+1,5);
f(:,1,8)=f(:,nx+1,8);
g(:,1,1)=g(:,nx+1,1);
g(:,1,5)=g(:,nx+1,5);
g(:,1,8)=g(:,nx+1,8);
%R
f(:,nx+1,3)=f(:,1,3);
f(:,nx+1,6)=f(:,1,6);
f(:,nx+1,7)=f(:,1,7);
g(:,nx+1,3)=g(:,1,3);
g(:,nx+1,6)=g(:,1,6);
g(:,nx+1,7)=g(:,1,7);
%T
f(1,:,4)=f(ny+1,:,4);
f(1,:,7)=f(ny+1,:,7);
f(1,:,8)=f(ny+1,:,8);
g(1,:,4)=g(ny+1,:,4);
g(1,:,7)=g(ny+1,:,7);
g(1,:,8)=g(ny+1,:,8);
%B
f(ny+1,:,2)=f(1,:,2);
f(ny+1,:,5)=f(1,:,5);
f(ny+1,:,6)=f(1,:,6);
g(ny+1,:,2)=g(1,:,2);
g(ny+1,:,5)=g(1,:,5);
g(ny+1,:,6)=g(1,:,6);
if rem(it,5)==0
imagesc(rho1);
%imagesc(rho2);
%imagesc(solid);
fff=getframe;
axis equal off;
end
endDear friend,
Please I am solving a mixture of two fluids in a solid domain just as presented in the code below; I want a representation of the three parameters(SOLID,rho1 and rho2) with distinct colours in the same domain. Attached are two graphs (the one with two colours is the result I got, the result with three colours is what I want).
clear clc;close all;
% define numerical parameters
%new BounceBack<T,Descriptor>(0.5);
N=256;
nx=1*N; ny=N;
tau1=1; tau2=1; % relexation time
G=-1.5;
% define weight coefficient(D2Q9)
w0=4/9;
w1=1/9; w2=1/9; w3=1/9; w4=1/9;
w5=1/36; w6=1/36; w7=1/36; w8=1/36;
% initialize variable values in the field
c=1; %lattice speed
dt=1;% delta t
% solid capturing initialisation
SOLID=rand(nx+1,ny+1)>0.7;%extremely porous random domain
%SOLID = false( 1, nx, ny );
SOLID( 1, : ) = true;
SOLID( end, : ) = true;
SOLID( :, 1 ) = true;
SOLID( :, end ) = true;
%SOLID = find( SOLID );
% initialize distribution functions for two components
delta_rho=0.001*(1-2*rand(ny+1,nx+1));
rho1=1+delta_rho;
rho2=1-delta_rho;
% distribution function for component 1
f(:,:,1)=w1*rho1;
f(:,:,2)=w2*rho1;
f(:,:,3)=w3*rho1;
f(:,:,4)=w4*rho1;
f(:,:,5)=w5*rho1;
f(:,:,6)=w6*rho1;
f(:,:,7)=w7*rho1;
f(:,:,8)=w8*rho1;
f(:,:,9)=w0*rho1;
% distribution function for component 2
g(:,:,1)=w1*rho2;
g(:,:,2)=w2*rho2;
g(:,:,3)=w3*rho2;
g(:,:,4)=w4*rho2;
g(:,:,5)=w5*rho2;
g(:,:,6)=w6*rho2;
g(:,:,7)=w7*rho2;
g(:,:,8)=w8*rho2;
g(:,:,9)=w0*rho2;
for it=1:1000
% macropic properties
% calculate interaction body forces
rho1=sum(f,3); %density of fluid 1
rho2=sum(g,3); %density of fluid 2
rho_tot=rho1+rho2;% total local density
% body forces for conhension
F221_x=-rho1.*G.*(w1*circshift(rho2,[0,1])-w3*circshift(rho2,[0,-1])+w5*circshift(rho2,[-1,1])-w6*circshift(rho2,[-1,-1])…
-w7*circshift(rho2,[1,-1])+w8*circshift(rho2,[1,1]));
F221_y=-rho1.*G.*(w2*circshift(rho2,[-1 0])-w4*circshift(rho2,[1,0])+w5*circshift(rho2,[-1,1])+w6*circshift(rho2,[-1,-1])…
-w7*circshift(rho2,[1,-1])-w8*circshift(rho2,[1,1]));
F122_x=-rho2.*G.*(w1*circshift(rho1,[0,1])-w3*circshift(rho1,[0,-1])+w5*circshift(rho1,[-1,1])-w6*circshift(rho1,[-1,-1])…
-w7*circshift(rho1,[1,-1])+w8*circshift(rho1,[1,1]));
F122_y=-rho2.*G.*(w2*circshift(rho1,[-1 0])-w4*circshift(rho1,[1,0])+w5*circshift(rho1,[-1,1])+w6*circshift(rho1,[-1,-1])…
-w7*circshift(rho1,[1,-1])-w8*circshift(rho1,[1,1]));
% velocity field
u=(sum(f(:,:,[1 5 8]),3)-sum(f(:,:,[3 6 7]),3)+sum(g(:,:,[1 5 8]),3)-sum(g(:,:,[3 6 7]),3))./rho_tot+(F221_x+F122_x)./rho_tot./2;
v=(sum(f(:,:,[2 5 6]),3)-sum(f(:,:,[4 7 8]),3)+sum(g(:,:,[2 5 6]),3)-sum(g(:,:,[4 7 8]),3))./rho_tot+(F221_y+F122_y)./rho_tot./2;
% collision step
% calculate equilibrium distribution for fluid 1
feq(:,:,1)=w1*rho1.*(1+3*u/c+9/2*u.^2/c^2-3/2*(u.^2+v.^2)/c^2);
feq(:,:,2)=w2*rho1.*(1+3*v/c+9/2*v.^2/c^2-3/2*(u.^2+v.^2)/c^2);
feq(:,:,3)=w3*rho1.*(1+3*-u/c+9/2*u.^2/c^2-3/2*(u.^2+v.^2)/c^2);
feq(:,:,4)=w4*rho1.*(1+3*-v/c+9/2*v.^2/c^2-3/2*(u.^2+v.^2)/c^2);
feq(:,:,5)=w5*rho1.*(1+3*(u+v)/c+9/2*(u+v).^2/c^2-3/2*(u.^2+v.^2)/c^2);
feq(:,:,6)=w6*rho1.*(1+3*(-u+v)/c+9/2*(-u+v).^2/c^2-3/2*(u.^2+v.^2)/c^2);
feq(:,:,7)=w7*rho1.*(1+3*(-u-v)/c+9/2*(-u-v).^2/c^2-3/2*(u.^2+v.^2)/c^2);
feq(:,:,8)=w8*rho1.*(1+3*(u-v)/c+9/2*(u-v).^2/c^2-3/2*(u.^2+v.^2)/c^2);
feq(:,:,9)=w0*rho1.*(1-3/2*(u.^2+v.^2)/c^2);
% for fluid 2
geq(:,:,1)=w1*rho2.*(1+3*u/c+9/2*u.^2/c^2-3/2*(u.^2+v.^2)/c^2);
geq(:,:,2)=w2*rho2.*(1+3*v/c+9/2*v.^2/c^2-3/2*(u.^2+v.^2)/c^2);
geq(:,:,3)=w3*rho2.*(1+3*-u/c+9/2*u.^2/c^2-3/2*(u.^2+v.^2)/c^2);
geq(:,:,4)=w4*rho2.*(1+3*-v/c+9/2*v.^2/c^2-3/2*(u.^2+v.^2)/c^2);
geq(:,:,5)=w5*rho2.*(1+3*(u+v)/c+9/2*(u+v).^2/c^2-3/2*(u.^2+v.^2)/c^2);
geq(:,:,6)=w6*rho2.*(1+3*(-u+v)/c+9/2*(-u+v).^2/c^2-3/2*(u.^2+v.^2)/c^2);
geq(:,:,7)=w7*rho2.*(1+3*(-u-v)/c+9/2*(-u-v).^2/c^2-3/2*(u.^2+v.^2)/c^2);
geq(:,:,8)=w8*rho2.*(1+3*(u-v)/c+9/2*(u-v).^2/c^2-3/2*(u.^2+v.^2)/c^2);
geq(:,:,9)=w0*rho2.*(1-3/2*(u.^2+v.^2)/c^2);
%calculate body force terms in collision step
% for fluid 1
F1(:,:,1)=w1*(1-1/2/tau1)*((6*u+3).*(F221_x)+-3*v.*(F221_y));
F1(:,:,2)=w2*(1-1/2/tau1)*(-3*u.*(F221_x)+(3+6*v).*(F221_y));
F1(:,:,3)=w3*(1-1/2/tau1)*((6*u-3).*(F221_x)+-3*v.*(F221_y));
F1(:,:,4)=w4*(1-1/2/tau1)*(-3*u.*(F221_x)+(-3+6*v).*(F221_y));
F1(:,:,5)=w5*(1-1/2/tau1)*((3+6*u+9*v).*(F221_x)+(3+9*u+6*v).*(F221_y));
F1(:,:,6)=w6*(1-1/2/tau1)*((-3+6*u-9*v).*(F221_x)+(3-9*u+6*v).*(F221_y));
F1(:,:,7)=w7*(1-1/2/tau1)*((-3+6*u+9*v).*(F221_x)+(-3+9*u+6*v).*(F221_y));
F1(:,:,8)=w8*(1-1/2/tau1)*((3+6*u-9*v).*(F221_x)+(-3-9*u+6*v).*(F221_y));
F1(:,:,9)=w0*(1-1/2/tau1)*(-3*u.*(F221_x)+-3*v.*(F221_y));
% for fluid 2
F2(:,:,1)=w1*(1-1/2/tau2)*((6*u+3).*(F122_x)+-3*v.*(F122_y));
F2(:,:,2)=w2*(1-1/2/tau2)*(-3*u.*(F122_x)+(3+6*v).*(F122_y));
F2(:,:,3)=w3*(1-1/2/tau2)*((6*u-3).*(F122_x)+-3*v.*(F122_y));
F2(:,:,4)=w4*(1-1/2/tau2)*(-3*u.*(F122_x)+(-3+6*v).*(F122_y));
F2(:,:,5)=w5*(1-1/2/tau2)*((3+6*u+9*v).*(F122_x)+(3+9*u+6*v).*(F122_y));
F2(:,:,6)=w6*(1-1/2/tau2)*((-3+6*u-9*v).*(F122_x)+(3-9*u+6*v).*(F122_y));
F2(:,:,7)=w7*(1-1/2/tau2)*((-3+6*u+9*v).*(F122_x)+(-3+9*u+6*v).*(F122_y));
F2(:,:,8)=w8*(1-1/2/tau2)*((3+6*u-9*v).*(F122_x)+(-3-9*u+6*v).*(F122_y));
F2(:,:,9)=w0*(1-1/2/tau2)*(-3*u.*(F122_x)+-3*v.*(F122_y));
% collision
f=f-1/tau1.*(f-feq)+F1;
g=g-1/tau2.*(g-geq)+F2;
%streaming
f(:,:,1)=circshift(f(:,:,1),[0,1]);
f(:,:,2)=circshift(f(:,:,2),[-1,0]);
f(:,:,3)=circshift(f(:,:,3),[0,-1]);
f(:,:,4)=circshift(f(:,:,4),[1,0]);
f(:,:,5)=circshift(f(:,:,5),[-1,1]);
f(:,:,6)=circshift(f(:,:,6),[-1,-1]);
f(:,:,7)=circshift(f(:,:,7),[1,-1]);
f(:,:,8)=circshift(f(:,:,8),[1,1]);
g(:,:,1)=circshift(g(:,:,1),[0,1]);
g(:,:,2)=circshift(g(:,:,2),[-1,0]);
g(:,:,3)=circshift(g(:,:,3),[0,-1]);
g(:,:,4)=circshift(g(:,:,4),[1,0]);
g(:,:,5)=circshift(g(:,:,5),[-1,1]);
g(:,:,6)=circshift(g(:,:,6),[-1,-1]);
g(:,:,7)=circshift(g(:,:,7),[1,-1]);
g(:,:,8)=circshift(g(:,:,8),[1,1]);
% add BC
%L
f(:,1,1)=f(:,nx+1,1);
f(:,1,5)=f(:,nx+1,5);
f(:,1,8)=f(:,nx+1,8);
g(:,1,1)=g(:,nx+1,1);
g(:,1,5)=g(:,nx+1,5);
g(:,1,8)=g(:,nx+1,8);
%R
f(:,nx+1,3)=f(:,1,3);
f(:,nx+1,6)=f(:,1,6);
f(:,nx+1,7)=f(:,1,7);
g(:,nx+1,3)=g(:,1,3);
g(:,nx+1,6)=g(:,1,6);
g(:,nx+1,7)=g(:,1,7);
%T
f(1,:,4)=f(ny+1,:,4);
f(1,:,7)=f(ny+1,:,7);
f(1,:,8)=f(ny+1,:,8);
g(1,:,4)=g(ny+1,:,4);
g(1,:,7)=g(ny+1,:,7);
g(1,:,8)=g(ny+1,:,8);
%B
f(ny+1,:,2)=f(1,:,2);
f(ny+1,:,5)=f(1,:,5);
f(ny+1,:,6)=f(1,:,6);
g(ny+1,:,2)=g(1,:,2);
g(ny+1,:,5)=g(1,:,5);
g(ny+1,:,6)=g(1,:,6);
if rem(it,5)==0
imagesc(rho1);
%imagesc(rho2);
%imagesc(solid);
fff=getframe;
axis equal off;
end
end Dear friend,
Please I am solving a mixture of two fluids in a solid domain just as presented in the code below; I want a representation of the three parameters(SOLID,rho1 and rho2) with distinct colours in the same domain. Attached are two graphs (the one with two colours is the result I got, the result with three colours is what I want).
clear clc;close all;
% define numerical parameters
%new BounceBack<T,Descriptor>(0.5);
N=256;
nx=1*N; ny=N;
tau1=1; tau2=1; % relexation time
G=-1.5;
% define weight coefficient(D2Q9)
w0=4/9;
w1=1/9; w2=1/9; w3=1/9; w4=1/9;
w5=1/36; w6=1/36; w7=1/36; w8=1/36;
% initialize variable values in the field
c=1; %lattice speed
dt=1;% delta t
% solid capturing initialisation
SOLID=rand(nx+1,ny+1)>0.7;%extremely porous random domain
%SOLID = false( 1, nx, ny );
SOLID( 1, : ) = true;
SOLID( end, : ) = true;
SOLID( :, 1 ) = true;
SOLID( :, end ) = true;
%SOLID = find( SOLID );
% initialize distribution functions for two components
delta_rho=0.001*(1-2*rand(ny+1,nx+1));
rho1=1+delta_rho;
rho2=1-delta_rho;
% distribution function for component 1
f(:,:,1)=w1*rho1;
f(:,:,2)=w2*rho1;
f(:,:,3)=w3*rho1;
f(:,:,4)=w4*rho1;
f(:,:,5)=w5*rho1;
f(:,:,6)=w6*rho1;
f(:,:,7)=w7*rho1;
f(:,:,8)=w8*rho1;
f(:,:,9)=w0*rho1;
% distribution function for component 2
g(:,:,1)=w1*rho2;
g(:,:,2)=w2*rho2;
g(:,:,3)=w3*rho2;
g(:,:,4)=w4*rho2;
g(:,:,5)=w5*rho2;
g(:,:,6)=w6*rho2;
g(:,:,7)=w7*rho2;
g(:,:,8)=w8*rho2;
g(:,:,9)=w0*rho2;
for it=1:1000
% macropic properties
% calculate interaction body forces
rho1=sum(f,3); %density of fluid 1
rho2=sum(g,3); %density of fluid 2
rho_tot=rho1+rho2;% total local density
% body forces for conhension
F221_x=-rho1.*G.*(w1*circshift(rho2,[0,1])-w3*circshift(rho2,[0,-1])+w5*circshift(rho2,[-1,1])-w6*circshift(rho2,[-1,-1])…
-w7*circshift(rho2,[1,-1])+w8*circshift(rho2,[1,1]));
F221_y=-rho1.*G.*(w2*circshift(rho2,[-1 0])-w4*circshift(rho2,[1,0])+w5*circshift(rho2,[-1,1])+w6*circshift(rho2,[-1,-1])…
-w7*circshift(rho2,[1,-1])-w8*circshift(rho2,[1,1]));
F122_x=-rho2.*G.*(w1*circshift(rho1,[0,1])-w3*circshift(rho1,[0,-1])+w5*circshift(rho1,[-1,1])-w6*circshift(rho1,[-1,-1])…
-w7*circshift(rho1,[1,-1])+w8*circshift(rho1,[1,1]));
F122_y=-rho2.*G.*(w2*circshift(rho1,[-1 0])-w4*circshift(rho1,[1,0])+w5*circshift(rho1,[-1,1])+w6*circshift(rho1,[-1,-1])…
-w7*circshift(rho1,[1,-1])-w8*circshift(rho1,[1,1]));
% velocity field
u=(sum(f(:,:,[1 5 8]),3)-sum(f(:,:,[3 6 7]),3)+sum(g(:,:,[1 5 8]),3)-sum(g(:,:,[3 6 7]),3))./rho_tot+(F221_x+F122_x)./rho_tot./2;
v=(sum(f(:,:,[2 5 6]),3)-sum(f(:,:,[4 7 8]),3)+sum(g(:,:,[2 5 6]),3)-sum(g(:,:,[4 7 8]),3))./rho_tot+(F221_y+F122_y)./rho_tot./2;
% collision step
% calculate equilibrium distribution for fluid 1
feq(:,:,1)=w1*rho1.*(1+3*u/c+9/2*u.^2/c^2-3/2*(u.^2+v.^2)/c^2);
feq(:,:,2)=w2*rho1.*(1+3*v/c+9/2*v.^2/c^2-3/2*(u.^2+v.^2)/c^2);
feq(:,:,3)=w3*rho1.*(1+3*-u/c+9/2*u.^2/c^2-3/2*(u.^2+v.^2)/c^2);
feq(:,:,4)=w4*rho1.*(1+3*-v/c+9/2*v.^2/c^2-3/2*(u.^2+v.^2)/c^2);
feq(:,:,5)=w5*rho1.*(1+3*(u+v)/c+9/2*(u+v).^2/c^2-3/2*(u.^2+v.^2)/c^2);
feq(:,:,6)=w6*rho1.*(1+3*(-u+v)/c+9/2*(-u+v).^2/c^2-3/2*(u.^2+v.^2)/c^2);
feq(:,:,7)=w7*rho1.*(1+3*(-u-v)/c+9/2*(-u-v).^2/c^2-3/2*(u.^2+v.^2)/c^2);
feq(:,:,8)=w8*rho1.*(1+3*(u-v)/c+9/2*(u-v).^2/c^2-3/2*(u.^2+v.^2)/c^2);
feq(:,:,9)=w0*rho1.*(1-3/2*(u.^2+v.^2)/c^2);
% for fluid 2
geq(:,:,1)=w1*rho2.*(1+3*u/c+9/2*u.^2/c^2-3/2*(u.^2+v.^2)/c^2);
geq(:,:,2)=w2*rho2.*(1+3*v/c+9/2*v.^2/c^2-3/2*(u.^2+v.^2)/c^2);
geq(:,:,3)=w3*rho2.*(1+3*-u/c+9/2*u.^2/c^2-3/2*(u.^2+v.^2)/c^2);
geq(:,:,4)=w4*rho2.*(1+3*-v/c+9/2*v.^2/c^2-3/2*(u.^2+v.^2)/c^2);
geq(:,:,5)=w5*rho2.*(1+3*(u+v)/c+9/2*(u+v).^2/c^2-3/2*(u.^2+v.^2)/c^2);
geq(:,:,6)=w6*rho2.*(1+3*(-u+v)/c+9/2*(-u+v).^2/c^2-3/2*(u.^2+v.^2)/c^2);
geq(:,:,7)=w7*rho2.*(1+3*(-u-v)/c+9/2*(-u-v).^2/c^2-3/2*(u.^2+v.^2)/c^2);
geq(:,:,8)=w8*rho2.*(1+3*(u-v)/c+9/2*(u-v).^2/c^2-3/2*(u.^2+v.^2)/c^2);
geq(:,:,9)=w0*rho2.*(1-3/2*(u.^2+v.^2)/c^2);
%calculate body force terms in collision step
% for fluid 1
F1(:,:,1)=w1*(1-1/2/tau1)*((6*u+3).*(F221_x)+-3*v.*(F221_y));
F1(:,:,2)=w2*(1-1/2/tau1)*(-3*u.*(F221_x)+(3+6*v).*(F221_y));
F1(:,:,3)=w3*(1-1/2/tau1)*((6*u-3).*(F221_x)+-3*v.*(F221_y));
F1(:,:,4)=w4*(1-1/2/tau1)*(-3*u.*(F221_x)+(-3+6*v).*(F221_y));
F1(:,:,5)=w5*(1-1/2/tau1)*((3+6*u+9*v).*(F221_x)+(3+9*u+6*v).*(F221_y));
F1(:,:,6)=w6*(1-1/2/tau1)*((-3+6*u-9*v).*(F221_x)+(3-9*u+6*v).*(F221_y));
F1(:,:,7)=w7*(1-1/2/tau1)*((-3+6*u+9*v).*(F221_x)+(-3+9*u+6*v).*(F221_y));
F1(:,:,8)=w8*(1-1/2/tau1)*((3+6*u-9*v).*(F221_x)+(-3-9*u+6*v).*(F221_y));
F1(:,:,9)=w0*(1-1/2/tau1)*(-3*u.*(F221_x)+-3*v.*(F221_y));
% for fluid 2
F2(:,:,1)=w1*(1-1/2/tau2)*((6*u+3).*(F122_x)+-3*v.*(F122_y));
F2(:,:,2)=w2*(1-1/2/tau2)*(-3*u.*(F122_x)+(3+6*v).*(F122_y));
F2(:,:,3)=w3*(1-1/2/tau2)*((6*u-3).*(F122_x)+-3*v.*(F122_y));
F2(:,:,4)=w4*(1-1/2/tau2)*(-3*u.*(F122_x)+(-3+6*v).*(F122_y));
F2(:,:,5)=w5*(1-1/2/tau2)*((3+6*u+9*v).*(F122_x)+(3+9*u+6*v).*(F122_y));
F2(:,:,6)=w6*(1-1/2/tau2)*((-3+6*u-9*v).*(F122_x)+(3-9*u+6*v).*(F122_y));
F2(:,:,7)=w7*(1-1/2/tau2)*((-3+6*u+9*v).*(F122_x)+(-3+9*u+6*v).*(F122_y));
F2(:,:,8)=w8*(1-1/2/tau2)*((3+6*u-9*v).*(F122_x)+(-3-9*u+6*v).*(F122_y));
F2(:,:,9)=w0*(1-1/2/tau2)*(-3*u.*(F122_x)+-3*v.*(F122_y));
% collision
f=f-1/tau1.*(f-feq)+F1;
g=g-1/tau2.*(g-geq)+F2;
%streaming
f(:,:,1)=circshift(f(:,:,1),[0,1]);
f(:,:,2)=circshift(f(:,:,2),[-1,0]);
f(:,:,3)=circshift(f(:,:,3),[0,-1]);
f(:,:,4)=circshift(f(:,:,4),[1,0]);
f(:,:,5)=circshift(f(:,:,5),[-1,1]);
f(:,:,6)=circshift(f(:,:,6),[-1,-1]);
f(:,:,7)=circshift(f(:,:,7),[1,-1]);
f(:,:,8)=circshift(f(:,:,8),[1,1]);
g(:,:,1)=circshift(g(:,:,1),[0,1]);
g(:,:,2)=circshift(g(:,:,2),[-1,0]);
g(:,:,3)=circshift(g(:,:,3),[0,-1]);
g(:,:,4)=circshift(g(:,:,4),[1,0]);
g(:,:,5)=circshift(g(:,:,5),[-1,1]);
g(:,:,6)=circshift(g(:,:,6),[-1,-1]);
g(:,:,7)=circshift(g(:,:,7),[1,-1]);
g(:,:,8)=circshift(g(:,:,8),[1,1]);
% add BC
%L
f(:,1,1)=f(:,nx+1,1);
f(:,1,5)=f(:,nx+1,5);
f(:,1,8)=f(:,nx+1,8);
g(:,1,1)=g(:,nx+1,1);
g(:,1,5)=g(:,nx+1,5);
g(:,1,8)=g(:,nx+1,8);
%R
f(:,nx+1,3)=f(:,1,3);
f(:,nx+1,6)=f(:,1,6);
f(:,nx+1,7)=f(:,1,7);
g(:,nx+1,3)=g(:,1,3);
g(:,nx+1,6)=g(:,1,6);
g(:,nx+1,7)=g(:,1,7);
%T
f(1,:,4)=f(ny+1,:,4);
f(1,:,7)=f(ny+1,:,7);
f(1,:,8)=f(ny+1,:,8);
g(1,:,4)=g(ny+1,:,4);
g(1,:,7)=g(ny+1,:,7);
g(1,:,8)=g(ny+1,:,8);
%B
f(ny+1,:,2)=f(1,:,2);
f(ny+1,:,5)=f(1,:,5);
f(ny+1,:,6)=f(1,:,6);
g(ny+1,:,2)=g(1,:,2);
g(ny+1,:,5)=g(1,:,5);
g(ny+1,:,6)=g(1,:,6);
if rem(it,5)==0
imagesc(rho1);
%imagesc(rho2);
%imagesc(solid);
fff=getframe;
axis equal off;
end
end the parameters in the same domain MATLAB Answers — New Questions
Cannot define a cell array of custom classes in function argument validation
I’ve a class like the following one:
classdef Session < handle
%SESSION Summary of this class goes here
% Detailed explanation goes here
properties (Access = private)
configurations (1, 🙂 cell {mustBeA(configurations, "App.Core.Configuration")}
end
methods (Access = public)
function this = Session()
this.configurations = {}
end
end
What I want to do is to declare che configuration property as a unidimensional cell array of a custom class, that can have 0 or more elements.
The problem is that I cannot instantiate it. When I try to do something like:
s = App.Core.Session()
I obtain the following error
Error using implicit default value of property ‘configurations’ of class ‘App.Core.Session’. Value must be one of the following types: ‘App.Core.Configuration’.
even if the App.Core.Configuration() class exists and it works (I’ve already unit tested it).
How can I declare correctly my configurations property?I’ve a class like the following one:
classdef Session < handle
%SESSION Summary of this class goes here
% Detailed explanation goes here
properties (Access = private)
configurations (1, 🙂 cell {mustBeA(configurations, "App.Core.Configuration")}
end
methods (Access = public)
function this = Session()
this.configurations = {}
end
end
What I want to do is to declare che configuration property as a unidimensional cell array of a custom class, that can have 0 or more elements.
The problem is that I cannot instantiate it. When I try to do something like:
s = App.Core.Session()
I obtain the following error
Error using implicit default value of property ‘configurations’ of class ‘App.Core.Session’. Value must be one of the following types: ‘App.Core.Configuration’.
even if the App.Core.Configuration() class exists and it works (I’ve already unit tested it).
How can I declare correctly my configurations property? I’ve a class like the following one:
classdef Session < handle
%SESSION Summary of this class goes here
% Detailed explanation goes here
properties (Access = private)
configurations (1, 🙂 cell {mustBeA(configurations, "App.Core.Configuration")}
end
methods (Access = public)
function this = Session()
this.configurations = {}
end
end
What I want to do is to declare che configuration property as a unidimensional cell array of a custom class, that can have 0 or more elements.
The problem is that I cannot instantiate it. When I try to do something like:
s = App.Core.Session()
I obtain the following error
Error using implicit default value of property ‘configurations’ of class ‘App.Core.Session’. Value must be one of the following types: ‘App.Core.Configuration’.
even if the App.Core.Configuration() class exists and it works (I’ve already unit tested it).
How can I declare correctly my configurations property? validation, class, cell, mustbea MATLAB Answers — New Questions
Why Notepad takes so much CPU?
Hi everyone.
I wonder why Notepad is taking so much CPU. I thought its a simple and light weight text editor but I noticed lately that its heavier than even chrome and firefox, and most of the time its on top in task manager.
Some people said the exe might not be genuine and might be a virus but I checked it and it was digitally signed by Microsoft.
Hi everyone.I wonder why Notepad is taking so much CPU. I thought its a simple and light weight text editor but I noticed lately that its heavier than even chrome and firefox, and most of the time its on top in task manager.Some people said the exe might not be genuine and might be a virus but I checked it and it was digitally signed by Microsoft. Read More
华纳公司经理电话_17300435119(微同)
强大的数据存储和管理能力:支持大规模数据存储,可以处理海量的结构化数据。无论是小型企业的业务数据,还是大型企业的复杂数据集合,SQL Server 都能提供稳定可靠的数据存储解决方案。提供高效的数据管理功能,包括数据的插入、更新、删除、查询等操作。通过优化的存储引擎和查询处理器,能够快速响应各种复杂的查询请求,提高数据处理效率。高可用性和可靠性:具备多种高可用性解决方案,如数据库镜像、故障转移集群等。这些技术可以确保在硬件故障、软件故障或其他意外情况下,数据库系统能够持续运行,保证业务的连续性。支持数据备份和恢复功能,可以定期对数据库进行备份,并在需要时快速恢复数据。这对于保护企业的重要数据至关重要。安全性:提供强大的安全功能,包括用户身份验证、访问控制、数据加密等。可以对不同的用户和角色设置不同的访问权限,确保数据的安全性和保密性。支持透明数据加密(T DE)等高级加密技术,可以对整个数据库进行加密,防止数据泄露。集成性和扩展性:与微软的其他产品和技术紧密集成,如 Windows Server、Visual Studio 等。这使得开发人员和管理员能够更加方便地进行开发、部署和管理。提供丰富的扩展功能和接口,可以与第三方软件和工具进行集成。例如,可以通过 O D B C、J D BC 等接口与其他编程语言和数据库系统进行交互。
企业资源规划(E R P)系统:SQL Server 可以作为 E R P 系统的后端数据库,存储和管理企业的各种业务数据,如销售订单、库存信息、财务数据等。通过与 E R P 软件的集成,可以实现高效的数据处理和业务流程管理。客户关系管理(C R M)系统:用于存储客户信息、销售机会、客户服务记录等数据。通过强大的查询和分析功能,可以帮助企业更好地了解客户需求,提高客户满意度和销售业绩。电子商务平台:管理商品信息、订单数据、用户信息等。支持高并发的访问请求,确保电子商务平台的稳定运行。数据分析和报表:作为数据仓库的后端存储,支持大规模的数据存储和分析。可以使用 SQL Server 的分析服务和报表服务,创建各种数据分析报表和仪表盘,为企业决策提供数据支持。
优势:功能强大:提供了丰富的功能和工具,满足企业级应用的各种需求。易于使用:与微软的其他产品和技术具有良好的集成性,使得开发人员和管理员能够快速上手。高可用性和可靠性:通过多种技术保障数据库系统的持续运行。安全性高:提供了多层次的安全防护措施,保护企业数据的安全。不足:成本较高:对于小型企业来说,可能需要较高的成本投入。对硬件要求较高:在处理大规模数据时,可能需要较高配置的硬件设备。
SQL 服务器(SQL Server)是由微软公司开发的一款关系型数据库管理系统,在企业级应用中具有广泛的用途。 一、主要特点 强大的数据存储和管理能力:支持大规模数据存储,可以处理海量的结构化数据。无论是小型企业的业务数据,还是大型企业的复杂数据集合,SQL Server 都能提供稳定可靠的数据存储解决方案。提供高效的数据管理功能,包括数据的插入、更新、删除、查询等操作。通过优化的存储引擎和查询处理器,能够快速响应各种复杂的查询请求,提高数据处理效率。高可用性和可靠性:具备多种高可用性解决方案,如数据库镜像、故障转移集群等。这些技术可以确保在硬件故障、软件故障或其他意外情况下,数据库系统能够持续运行,保证业务的连续性。支持数据备份和恢复功能,可以定期对数据库进行备份,并在需要时快速恢复数据。这对于保护企业的重要数据至关重要。安全性:提供强大的安全功能,包括用户身份验证、访问控制、数据加密等。可以对不同的用户和角色设置不同的访问权限,确保数据的安全性和保密性。支持透明数据加密(T DE)等高级加密技术,可以对整个数据库进行加密,防止数据泄露。集成性和扩展性:与微软的其他产品和技术紧密集成,如 Windows Server、Visual Studio 等。这使得开发人员和管理员能够更加方便地进行开发、部署和管理。提供丰富的扩展功能和接口,可以与第三方软件和工具进行集成。例如,可以通过 O D B C、J D BC 等接口与其他编程语言和数据库系统进行交互。 二、应用场景 企业资源规划(E R P)系统:SQL Server 可以作为 E R P 系统的后端数据库,存储和管理企业的各种业务数据,如销售订单、库存信息、财务数据等。通过与 E R P 软件的集成,可以实现高效的数据处理和业务流程管理。客户关系管理(C R M)系统:用于存储客户信息、销售机会、客户服务记录等数据。通过强大的查询和分析功能,可以帮助企业更好地了解客户需求,提高客户满意度和销售业绩。电子商务平台:管理商品信息、订单数据、用户信息等。支持高并发的访问请求,确保电子商务平台的稳定运行。数据分析和报表:作为数据仓库的后端存储,支持大规模的数据存储和分析。可以使用 SQL Server 的分析服务和报表服务,创建各种数据分析报表和仪表盘,为企业决策提供数据支持。 三、优势与不足 优势:功能强大:提供了丰富的功能和工具,满足企业级应用的各种需求。易于使用:与微软的其他产品和技术具有良好的集成性,使得开发人员和管理员能够快速上手。高可用性和可靠性:通过多种技术保障数据库系统的持续运行。安全性高:提供了多层次的安全防护措施,保护企业数据的安全。不足:成本较高:对于小型企业来说,可能需要较高的成本投入。对硬件要求较高:在处理大规模数据时,可能需要较高配置的硬件设备。 总之,SQL Server 是一款功能强大、可靠安全的关系型数据库管理系统,适用于各种规模的企业应用。在选择数据库管理系统时,企业需要根据自身的业务需求、预算和技术实力等因素进行综合考虑。 Read More