Month: August 2024
Excel- auto formula
Hii,
Is it possible auto formula in excel, i want to sum 20 rows with the image i entered same formula, or any other formula or options??
Thank you
Hii, Is it possible auto formula in excel, i want to sum 20 rows with the image i entered same formula, or any other formula or options?? Thank you Read More
How to exclude a certain value from a range?
Suppose a variable has upper limit and lower limit of 1 and 54 [1 54] and I and to exclude one value say 30 from it. How to it?
For example:
a = [0 576;0 100; 0 140;0 100;0 550;0 100;0 410];
b = [0.95 1.1;0.95 1.1;0.95 1.1;0.95 1.1;0.95 1.1;0.95 1.1;0.95 1.1];
c = [0.9 1.1;0.9 1.1;0.9 1.1;0.9 1.1;0.9 1.1;0.9 1.1;0.9 1.1;0.9 1.1;0.9 1.1;0.9 1.1;0.9 1.1;0.9 1.1;0.9 1.1;0.9 1.1;0.9 1.1;0.9 1.1;0.9 1.1];
d = [0 20;0 20;0 20];
e = [2 7; 2 7; 2 7];
limit = [a;b;c;d;e]’;
In this case from e, I want to exclude the value 6.Suppose a variable has upper limit and lower limit of 1 and 54 [1 54] and I and to exclude one value say 30 from it. How to it?
For example:
a = [0 576;0 100; 0 140;0 100;0 550;0 100;0 410];
b = [0.95 1.1;0.95 1.1;0.95 1.1;0.95 1.1;0.95 1.1;0.95 1.1;0.95 1.1];
c = [0.9 1.1;0.9 1.1;0.9 1.1;0.9 1.1;0.9 1.1;0.9 1.1;0.9 1.1;0.9 1.1;0.9 1.1;0.9 1.1;0.9 1.1;0.9 1.1;0.9 1.1;0.9 1.1;0.9 1.1;0.9 1.1;0.9 1.1];
d = [0 20;0 20;0 20];
e = [2 7; 2 7; 2 7];
limit = [a;b;c;d;e]’;
In this case from e, I want to exclude the value 6. Suppose a variable has upper limit and lower limit of 1 and 54 [1 54] and I and to exclude one value say 30 from it. How to it?
For example:
a = [0 576;0 100; 0 140;0 100;0 550;0 100;0 410];
b = [0.95 1.1;0.95 1.1;0.95 1.1;0.95 1.1;0.95 1.1;0.95 1.1;0.95 1.1];
c = [0.9 1.1;0.9 1.1;0.9 1.1;0.9 1.1;0.9 1.1;0.9 1.1;0.9 1.1;0.9 1.1;0.9 1.1;0.9 1.1;0.9 1.1;0.9 1.1;0.9 1.1;0.9 1.1;0.9 1.1;0.9 1.1;0.9 1.1];
d = [0 20;0 20;0 20];
e = [2 7; 2 7; 2 7];
limit = [a;b;c;d;e]’;
In this case from e, I want to exclude the value 6. optimization, logical indexing, masking MATLAB Answers — New Questions
Any Idea Why I Keep Getting These When Outlook Starts
Microsoft® Outlook® 2021 MSO (Version 2407 Build 16.0.17830.20056) 32-bit
I keep getting various warnings when I start Outlook:
Any idea as to what is going on?
Microsoft® Outlook® 2021 MSO (Version 2407 Build 16.0.17830.20056) 32-bit I keep getting various warnings when I start Outlook: Any idea as to what is going on? Read More
Vlookup9
Sub santo()
Dim LastRow As Long
Set ws = Worksheets(“Customer”)
LastRow = Cells.Find(“*”, , xlValues, , xlRows, xlPrevious).Row
wrk = Array(Worksheets(“MIDDLE_INITIAL”), Worksheets(“LAST_NAME”))
na = Array(“old”, “new”)
a = Array(“I”, “J”, “K”, “F”)
For j = 0 To 1
For i = 0 To 2
With ws
.Range(a(i) & “1”).EntireColumn.Insert
If i > 1 Then
.Range(a(i) & “1”).Value = na(j) + ” ” + “Fullname”
For b = 2 To LastRow
ws.Cells(b, a(2)).Value = ws.Cells(b, a(3)).Value + ” ” + ws.Cells(b, a(0)).Value + ” ” + ws.Cells(b, a(1)).Value
Next b
Else
.Range(a(i) & “1”).Value = na(j) + ” ” + Sheets(3 + i).Name
.Range(a(i) & “2”, a(i) & LastRow) = Application.WorksheetFunction.VLookup(ws.Range(“B2:B” & LastRow), wrk(j).Range(“A:F”), (6 + i), False)
.Range(a(i) & “2”, a(i) & LastRow).Replace what:=”#N/A”, Replacement:=” “
End If
End With
Next i
a = Array(“M”, “N”, “O”, “L”)
Next j
End Sub
Sub santo()
Dim LastRow As Long
Set ws = Worksheets(“Customer”)
LastRow = Cells.Find(“*”, , xlValues, , xlRows, xlPrevious).Row
wrk = Array(Worksheets(“MIDDLE_INITIAL”), Worksheets(“LAST_NAME”))
na = Array(“old”, “new”)
a = Array(“I”, “J”, “K”, “F”)
For j = 0 To 1
For i = 0 To 2
With ws
.Range(a(i) & “1”).EntireColumn.Insert
If i > 1 Then
.Range(a(i) & “1”).Value = na(j) + ” ” + “Fullname”
For b = 2 To LastRow
ws.Cells(b, a(2)).Value = ws.Cells(b, a(3)).Value + ” ” + ws.Cells(b, a(0)).Value + ” ” + ws.Cells(b, a(1)).Value
Next b
Else
.Range(a(i) & “1”).Value = na(j) + ” ” + Sheets(3 + i).Name
.Range(a(i) & “2”, a(i) & LastRow) = Application.WorksheetFunction.VLookup(ws.Range(“B2:B” & LastRow), wrk(j).Range(“A:F”), (6 + i), False)
.Range(a(i) & “2”, a(i) & LastRow).Replace what:=”#N/A”, Replacement:=” “
End If
End With
Next i
a = Array(“M”, “N”, “O”, “L”)
Next j
End Sub Read More
Mail merge with excel
I have created a mail merge letter that is meant to merge in dates taken from my excel spreadsheet. I have in there a statement that says something like, The start date of this event is “Date” to “Date”. Another words, Begin Date and End Date. The problem I have is the end date will not display or print the end date as a date. It will only show or print as numbers representing the date. I have tried switches to no avail. I’m pulling my hair out here. Anyone know how to fix this. I have my dates in the decline formatted as date and switches attached to the mail merge fields. Just can’t get it to show the dates I so desperately need. HELP
CARL
I have created a mail merge letter that is meant to merge in dates taken from my excel spreadsheet. I have in there a statement that says something like, The start date of this event is “Date” to “Date”. Another words, Begin Date and End Date. The problem I have is the end date will not display or print the end date as a date. It will only show or print as numbers representing the date. I have tried switches to no avail. I’m pulling my hair out here. Anyone know how to fix this. I have my dates in the decline formatted as date and switches attached to the mail merge fields. Just can’t get it to show the dates I so desperately need. HELP CARL Read More
Why do agents trained by the reinforcement learning PPO algorithm get different results each time they load?
In the process of reinforcement learning, a problem will be encountered. During the training process, an effective agent will appear. At this time, the training will be finished in advance, but the result of the saved agent running out will be worseIn the process of reinforcement learning, a problem will be encountered. During the training process, an effective agent will appear. At this time, the training will be finished in advance, but the result of the saved agent running out will be worse In the process of reinforcement learning, a problem will be encountered. During the training process, an effective agent will appear. At this time, the training will be finished in advance, but the result of the saved agent running out will be worse problems in reinforcement learning training MATLAB Answers — New Questions
TRANSLATE() function not available in Excel
I would like to evaluate the new TRANSLATE function, but it is not available in my Excel.
My Specs:
Windows 11 ARM 64bit
Excel version 2409 Insider Beta Channel
OS and MS365 both fully updated.
I would like to evaluate the new TRANSLATE function, but it is not available in my Excel. My Specs:Windows 11 ARM 64bitExcel version 2409 Insider Beta ChannelOS and MS365 both fully updated. Read More
Help w. Word Template Formatting
i have a template and there is a final piece i am unable to move/work with in word
help!
i have a template and there is a final piece i am unable to move/work with in wordhelp! Read More
Visual Search Documentation
Looking at the Visual Search documentation I see there’s a filter for URL selection:
The KnowledgeRequest object includes the following fields:
filters — A Filter object that you use to filter the results.site — The site filter returns similar images and similar products results from the specified site only.
Is there a way to format this site filter key with multiple URLs? If I would like to search multiple sites for a visual search match, do I need to make multiple queries?
Looking at the Visual Search documentation I see there’s a filter for URL selection:The KnowledgeRequest object includes the following fields:filters — A Filter object that you use to filter the results.site — The site filter returns similar images and similar products results from the specified site only.documentation here Is there a way to format this site filter key with multiple URLs? If I would like to search multiple sites for a visual search match, do I need to make multiple queries? Read More
Closed loop with LSTM for time series
Dear All
I am in troubling trying to perform a multi-ahead (closed loop) forecasting for a time series. I use Matlab2024 and the "old" command predictAndUpdate does not work with dlnetwork objects. I saw all the possible documentation, theoretically I can manage the question but practically not!. I sum up the excercise. Single univariate time serie (stock price) in LSTM net. No problem with trainnet and predict using historical training and test data. Now I’d like to go out of test data. This is the code
X = (XTest);
T = YTest;
%net2 is a dlnetwork object
offset = length(X);
[Z,state] = predict(net2,X(1:offset)); %predict and update state using test data
net2.State = state;
% five-steps ahead
numPredictionTimeSteps = 5;
Y = (zeros(numPredictionTimeSteps));
Y(1,:) = Z(end); %use the last forecast as starting point for the loop
for t = 2:numPredictionTimeSteps
[Y(:,t),state] = predict(net2,Y(:,t-1));
net2.State = state;
end
%I got:
Error using extractState (line 41)
If the hidden state argument is a matrix, then its number of observations must match the number of observations of the
input data.
I found a similar question on the web for the GRU net. If I restart the net before the loop (as suggested) it works but the forecast is very poor, so I wonder whether the restart can affect such a result. Is there an alternative to reset? I attach the data and the net.
thanks in advanceDear All
I am in troubling trying to perform a multi-ahead (closed loop) forecasting for a time series. I use Matlab2024 and the "old" command predictAndUpdate does not work with dlnetwork objects. I saw all the possible documentation, theoretically I can manage the question but practically not!. I sum up the excercise. Single univariate time serie (stock price) in LSTM net. No problem with trainnet and predict using historical training and test data. Now I’d like to go out of test data. This is the code
X = (XTest);
T = YTest;
%net2 is a dlnetwork object
offset = length(X);
[Z,state] = predict(net2,X(1:offset)); %predict and update state using test data
net2.State = state;
% five-steps ahead
numPredictionTimeSteps = 5;
Y = (zeros(numPredictionTimeSteps));
Y(1,:) = Z(end); %use the last forecast as starting point for the loop
for t = 2:numPredictionTimeSteps
[Y(:,t),state] = predict(net2,Y(:,t-1));
net2.State = state;
end
%I got:
Error using extractState (line 41)
If the hidden state argument is a matrix, then its number of observations must match the number of observations of the
input data.
I found a similar question on the web for the GRU net. If I restart the net before the loop (as suggested) it works but the forecast is very poor, so I wonder whether the restart can affect such a result. Is there an alternative to reset? I attach the data and the net.
thanks in advance Dear All
I am in troubling trying to perform a multi-ahead (closed loop) forecasting for a time series. I use Matlab2024 and the "old" command predictAndUpdate does not work with dlnetwork objects. I saw all the possible documentation, theoretically I can manage the question but practically not!. I sum up the excercise. Single univariate time serie (stock price) in LSTM net. No problem with trainnet and predict using historical training and test data. Now I’d like to go out of test data. This is the code
X = (XTest);
T = YTest;
%net2 is a dlnetwork object
offset = length(X);
[Z,state] = predict(net2,X(1:offset)); %predict and update state using test data
net2.State = state;
% five-steps ahead
numPredictionTimeSteps = 5;
Y = (zeros(numPredictionTimeSteps));
Y(1,:) = Z(end); %use the last forecast as starting point for the loop
for t = 2:numPredictionTimeSteps
[Y(:,t),state] = predict(net2,Y(:,t-1));
net2.State = state;
end
%I got:
Error using extractState (line 41)
If the hidden state argument is a matrix, then its number of observations must match the number of observations of the
input data.
I found a similar question on the web for the GRU net. If I restart the net before the loop (as suggested) it works but the forecast is very poor, so I wonder whether the restart can affect such a result. Is there an alternative to reset? I attach the data and the net.
thanks in advance lstm closed loop MATLAB Answers — New Questions
3D mandelbrot fractal with nodes that give information
Hello,
I’m building a 3D mandelbrot set with nodes that give information.
For example, if this was the equation:
Tree = Sum(n=1 to infinity) n^3 Sum (n=1 to infinity n^3) [ Integral (t=0 to infinity) TreeSpace^4 dTreeSpace/dt [Integral (t=0 to infinity) Carbon^4 dCarbon/dt + Integral (t=0 to infinity) Oxygen^4 dO/dt + Integral (t=0 to infinity) Nitrogen^4 dN/dt + Integral (t=0 to infinity) P^3 dP/dt]]
Then the mandelbrot set would be
for (C1=1 to infinity)
for (C2=1 to infinity)
for (C3=1 to infiinity)
for (C4 = 1 to infinity)
for (C5=1 to infinity)
for (C6=1 to infinity)
for (C7= 1 to infinity)
zn+1(series)=[zn^3+C1, zn^3+C2]
zn+1(treespace) = [zn^4(Carbon)dC/dt + C4, zn^4(O)dO/dt + C5, zn^4(N)dN/dt + C6, zn^4(P)dP/dt + C7]
End All for
And if the resulted 3D set is a tree I would be able to tell when the leaves fall and turn colors by hovering over the leaves. I would be able to tell when the tree root dies by hovering over the root. it would be color coded by elements.
I’m probably going to use this set: https://github.com/thargor6/mb3d
This is just a mockup, as the original is a trade secret and not a tree. Please advise. Need lots of help. Please walk me through one step at a time in Matlab. I don’t know if I got the zn+1’s right or how to use the github set.
Note, the first and second dimension of the fractal is the two infinite series. The third is the treespace, wrapped up in the elements by mandelbrot sets. it all happens over time.
I have matlab installed, standard Matlab. I can get a github subscription if needed, it’s only $4 a month. Let me know.
Look at these examples: https://idatavisualizationlab.github.io/researchProjects.html
Thank you.Hello,
I’m building a 3D mandelbrot set with nodes that give information.
For example, if this was the equation:
Tree = Sum(n=1 to infinity) n^3 Sum (n=1 to infinity n^3) [ Integral (t=0 to infinity) TreeSpace^4 dTreeSpace/dt [Integral (t=0 to infinity) Carbon^4 dCarbon/dt + Integral (t=0 to infinity) Oxygen^4 dO/dt + Integral (t=0 to infinity) Nitrogen^4 dN/dt + Integral (t=0 to infinity) P^3 dP/dt]]
Then the mandelbrot set would be
for (C1=1 to infinity)
for (C2=1 to infinity)
for (C3=1 to infiinity)
for (C4 = 1 to infinity)
for (C5=1 to infinity)
for (C6=1 to infinity)
for (C7= 1 to infinity)
zn+1(series)=[zn^3+C1, zn^3+C2]
zn+1(treespace) = [zn^4(Carbon)dC/dt + C4, zn^4(O)dO/dt + C5, zn^4(N)dN/dt + C6, zn^4(P)dP/dt + C7]
End All for
And if the resulted 3D set is a tree I would be able to tell when the leaves fall and turn colors by hovering over the leaves. I would be able to tell when the tree root dies by hovering over the root. it would be color coded by elements.
I’m probably going to use this set: https://github.com/thargor6/mb3d
This is just a mockup, as the original is a trade secret and not a tree. Please advise. Need lots of help. Please walk me through one step at a time in Matlab. I don’t know if I got the zn+1’s right or how to use the github set.
Note, the first and second dimension of the fractal is the two infinite series. The third is the treespace, wrapped up in the elements by mandelbrot sets. it all happens over time.
I have matlab installed, standard Matlab. I can get a github subscription if needed, it’s only $4 a month. Let me know.
Look at these examples: https://idatavisualizationlab.github.io/researchProjects.html
Thank you. Hello,
I’m building a 3D mandelbrot set with nodes that give information.
For example, if this was the equation:
Tree = Sum(n=1 to infinity) n^3 Sum (n=1 to infinity n^3) [ Integral (t=0 to infinity) TreeSpace^4 dTreeSpace/dt [Integral (t=0 to infinity) Carbon^4 dCarbon/dt + Integral (t=0 to infinity) Oxygen^4 dO/dt + Integral (t=0 to infinity) Nitrogen^4 dN/dt + Integral (t=0 to infinity) P^3 dP/dt]]
Then the mandelbrot set would be
for (C1=1 to infinity)
for (C2=1 to infinity)
for (C3=1 to infiinity)
for (C4 = 1 to infinity)
for (C5=1 to infinity)
for (C6=1 to infinity)
for (C7= 1 to infinity)
zn+1(series)=[zn^3+C1, zn^3+C2]
zn+1(treespace) = [zn^4(Carbon)dC/dt + C4, zn^4(O)dO/dt + C5, zn^4(N)dN/dt + C6, zn^4(P)dP/dt + C7]
End All for
And if the resulted 3D set is a tree I would be able to tell when the leaves fall and turn colors by hovering over the leaves. I would be able to tell when the tree root dies by hovering over the root. it would be color coded by elements.
I’m probably going to use this set: https://github.com/thargor6/mb3d
This is just a mockup, as the original is a trade secret and not a tree. Please advise. Need lots of help. Please walk me through one step at a time in Matlab. I don’t know if I got the zn+1’s right or how to use the github set.
Note, the first and second dimension of the fractal is the two infinite series. The third is the treespace, wrapped up in the elements by mandelbrot sets. it all happens over time.
I have matlab installed, standard Matlab. I can get a github subscription if needed, it’s only $4 a month. Let me know.
Look at these examples: https://idatavisualizationlab.github.io/researchProjects.html
Thank you. 3d, for, matlab, matlab coder, matlab code MATLAB Answers — New Questions
BeagleBone Support Package Linux Costumization
When I try to connect my BeagleBone to Matlab/Simulink using Matlab’s instructions (https://de.mathworks.com/help/supportpkg/beaglebone/ug/install-target-for-beaglebone-black-hardware.html) I manage to get until step 6 (under "Complete Setup Tasks"). As soon as I hit start to update the firmware, the wait bar reacts for a second before stopping and showing "Retry" on the button.
Has anyone come across the same problem and was able to solve it?When I try to connect my BeagleBone to Matlab/Simulink using Matlab’s instructions (https://de.mathworks.com/help/supportpkg/beaglebone/ug/install-target-for-beaglebone-black-hardware.html) I manage to get until step 6 (under "Complete Setup Tasks"). As soon as I hit start to update the firmware, the wait bar reacts for a second before stopping and showing "Retry" on the button.
Has anyone come across the same problem and was able to solve it? When I try to connect my BeagleBone to Matlab/Simulink using Matlab’s instructions (https://de.mathworks.com/help/supportpkg/beaglebone/ug/install-target-for-beaglebone-black-hardware.html) I manage to get until step 6 (under "Complete Setup Tasks"). As soon as I hit start to update the firmware, the wait bar reacts for a second before stopping and showing "Retry" on the button.
Has anyone come across the same problem and was able to solve it? beaglebone, embedded coder, linux MATLAB Answers — New Questions
Baeglebone Black in Simulink can’t handle sample time of 0.001s.
Beeaglebone black with simulink can’t handle 1kHz. I am trying with just a Led blinking example. When I put 0.001s of sample time in the model configuration panel and StopTime simulation of 10s. Looks like the BBB is taking longer than 10s to finish the code. I am also deploying the code to the hardware, not seeing any signal in "real time".Beeaglebone black with simulink can’t handle 1kHz. I am trying with just a Led blinking example. When I put 0.001s of sample time in the model configuration panel and StopTime simulation of 10s. Looks like the BBB is taking longer than 10s to finish the code. I am also deploying the code to the hardware, not seeing any signal in "real time". Beeaglebone black with simulink can’t handle 1kHz. I am trying with just a Led blinking example. When I put 0.001s of sample time in the model configuration panel and StopTime simulation of 10s. Looks like the BBB is taking longer than 10s to finish the code. I am also deploying the code to the hardware, not seeing any signal in "real time". beaglebone black, simulink MATLAB Answers — New Questions
Narx network in real-time task
Good afternoon,
I understand that the topic of NARX networks has been discussed here for over 10 years, but I would like to revisit it.
I attempted to implement a solution for processing data from a sensor in real-time, but unfortunately, I could not find any examples demonstrating how to do this correctly. Most publications on this topic either conclude with a performance evaluation of the network or focus on discussions of the code generated by the application.
Let me share some code:
% targer timeseries
T = num2cell(lfarr(1:8000));
% input timeseries from sensor
X = num2cell(source(1:8000));
The signals are extremely simple – data from the sensor and its smoothed version.
Next, I followed the standard steps outlined in the documentation and various discussions on this forum:
%create narxnet
sh = 7
d1 = [1:sh];
d2 = [1:sh];
narx_net = narxnet(d1,d2,20);
narx_netnet.divideFcn = ‘divideblock’;
(If Greg suddenly comes, tell him that I remember about autocorrelation and am already carefully studying his code from user group :))
% standard data preparation
[Xs,Xi,Ai,Ts] = preparets(narx_net,X,{},T);
% training
rng( ‘default’ )
[narx_net, tr, Ys, Es, Xf, Af ] = train(narx_net,Xs,Ts,Xi,Ai);
% performance evaluation
[Y,Xf,Af] = narx_net(Xs,Xi,Ai);
perf = perform(narx_net,Ts,Y) % perf = 3.4381e-08. I think it’s not bad.
The regression diagram speaks for itself
Next I close the network and simulate signal processing on the remainder of the data that the network has not seen.
Here, I tried to base my approach on the last two paragraphs of the documentation – Following Closed-Loop Simulation with Open-Loop Simulation.
[narx_netc,Xic,Aic] = closeloop(narx_net, Xf, Af);
% number of prediction steps
k = 5;
% A loop that simulates a real-time data flow
for i = 8001:length(lf_arr)
% getting a new value from the sensor
newSensorValue = num2cell(source(i));
% local variable for indexing the prediction array
ii = 1;
% array of predictions
res = [];
% predictions for k steps
for j=i:i+k
[Yc, Xic, Aic] = narx_netc(newSensorValue, Xic, Aic);
% disp([‘Predicted meaning: ‘, num2str(cell2mat(Yc))]);
res(ii) = cell2mat(Yc);
ii = ii+1;
end
% saving results
res1(i-8000,:) = res’;
% form new input and target arrays with new input value and the predicted result
u = [X(2:end),newSensorValue];
y = [T(2:end), {res(1)}];
% repeating initialization cycle for next simulation step
[X1,Xi,Ai,T1] = preparets(narx_net,u,{},y);
[Y,Xio,Aio] = narx_net(X1,Xi,Ai);
[narx_netc,Xic,Aic] = closeloop(narx_net, Xio, Aio);
end
The network starts working, but after some steps its normal operation stops.
I would be immensely grateful for any insights into where my reasoning or actions might have gone astray.
ThanksGood afternoon,
I understand that the topic of NARX networks has been discussed here for over 10 years, but I would like to revisit it.
I attempted to implement a solution for processing data from a sensor in real-time, but unfortunately, I could not find any examples demonstrating how to do this correctly. Most publications on this topic either conclude with a performance evaluation of the network or focus on discussions of the code generated by the application.
Let me share some code:
% targer timeseries
T = num2cell(lfarr(1:8000));
% input timeseries from sensor
X = num2cell(source(1:8000));
The signals are extremely simple – data from the sensor and its smoothed version.
Next, I followed the standard steps outlined in the documentation and various discussions on this forum:
%create narxnet
sh = 7
d1 = [1:sh];
d2 = [1:sh];
narx_net = narxnet(d1,d2,20);
narx_netnet.divideFcn = ‘divideblock’;
(If Greg suddenly comes, tell him that I remember about autocorrelation and am already carefully studying his code from user group :))
% standard data preparation
[Xs,Xi,Ai,Ts] = preparets(narx_net,X,{},T);
% training
rng( ‘default’ )
[narx_net, tr, Ys, Es, Xf, Af ] = train(narx_net,Xs,Ts,Xi,Ai);
% performance evaluation
[Y,Xf,Af] = narx_net(Xs,Xi,Ai);
perf = perform(narx_net,Ts,Y) % perf = 3.4381e-08. I think it’s not bad.
The regression diagram speaks for itself
Next I close the network and simulate signal processing on the remainder of the data that the network has not seen.
Here, I tried to base my approach on the last two paragraphs of the documentation – Following Closed-Loop Simulation with Open-Loop Simulation.
[narx_netc,Xic,Aic] = closeloop(narx_net, Xf, Af);
% number of prediction steps
k = 5;
% A loop that simulates a real-time data flow
for i = 8001:length(lf_arr)
% getting a new value from the sensor
newSensorValue = num2cell(source(i));
% local variable for indexing the prediction array
ii = 1;
% array of predictions
res = [];
% predictions for k steps
for j=i:i+k
[Yc, Xic, Aic] = narx_netc(newSensorValue, Xic, Aic);
% disp([‘Predicted meaning: ‘, num2str(cell2mat(Yc))]);
res(ii) = cell2mat(Yc);
ii = ii+1;
end
% saving results
res1(i-8000,:) = res’;
% form new input and target arrays with new input value and the predicted result
u = [X(2:end),newSensorValue];
y = [T(2:end), {res(1)}];
% repeating initialization cycle for next simulation step
[X1,Xi,Ai,T1] = preparets(narx_net,u,{},y);
[Y,Xio,Aio] = narx_net(X1,Xi,Ai);
[narx_netc,Xic,Aic] = closeloop(narx_net, Xio, Aio);
end
The network starts working, but after some steps its normal operation stops.
I would be immensely grateful for any insights into where my reasoning or actions might have gone astray.
Thanks Good afternoon,
I understand that the topic of NARX networks has been discussed here for over 10 years, but I would like to revisit it.
I attempted to implement a solution for processing data from a sensor in real-time, but unfortunately, I could not find any examples demonstrating how to do this correctly. Most publications on this topic either conclude with a performance evaluation of the network or focus on discussions of the code generated by the application.
Let me share some code:
% targer timeseries
T = num2cell(lfarr(1:8000));
% input timeseries from sensor
X = num2cell(source(1:8000));
The signals are extremely simple – data from the sensor and its smoothed version.
Next, I followed the standard steps outlined in the documentation and various discussions on this forum:
%create narxnet
sh = 7
d1 = [1:sh];
d2 = [1:sh];
narx_net = narxnet(d1,d2,20);
narx_netnet.divideFcn = ‘divideblock’;
(If Greg suddenly comes, tell him that I remember about autocorrelation and am already carefully studying his code from user group :))
% standard data preparation
[Xs,Xi,Ai,Ts] = preparets(narx_net,X,{},T);
% training
rng( ‘default’ )
[narx_net, tr, Ys, Es, Xf, Af ] = train(narx_net,Xs,Ts,Xi,Ai);
% performance evaluation
[Y,Xf,Af] = narx_net(Xs,Xi,Ai);
perf = perform(narx_net,Ts,Y) % perf = 3.4381e-08. I think it’s not bad.
The regression diagram speaks for itself
Next I close the network and simulate signal processing on the remainder of the data that the network has not seen.
Here, I tried to base my approach on the last two paragraphs of the documentation – Following Closed-Loop Simulation with Open-Loop Simulation.
[narx_netc,Xic,Aic] = closeloop(narx_net, Xf, Af);
% number of prediction steps
k = 5;
% A loop that simulates a real-time data flow
for i = 8001:length(lf_arr)
% getting a new value from the sensor
newSensorValue = num2cell(source(i));
% local variable for indexing the prediction array
ii = 1;
% array of predictions
res = [];
% predictions for k steps
for j=i:i+k
[Yc, Xic, Aic] = narx_netc(newSensorValue, Xic, Aic);
% disp([‘Predicted meaning: ‘, num2str(cell2mat(Yc))]);
res(ii) = cell2mat(Yc);
ii = ii+1;
end
% saving results
res1(i-8000,:) = res’;
% form new input and target arrays with new input value and the predicted result
u = [X(2:end),newSensorValue];
y = [T(2:end), {res(1)}];
% repeating initialization cycle for next simulation step
[X1,Xi,Ai,T1] = preparets(narx_net,u,{},y);
[Y,Xio,Aio] = narx_net(X1,Xi,Ai);
[narx_netc,Xic,Aic] = closeloop(narx_net, Xio, Aio);
end
The network starts working, but after some steps its normal operation stops.
I would be immensely grateful for any insights into where my reasoning or actions might have gone astray.
Thanks narx network MATLAB Answers — New Questions
How to resolve EDO System
Hi,
I need to know how to resolve EDO System with MATLAB. The system has this structure:
A*x̄’ + B*x̄ + C = 0
A, B are square matrix with constant coefficients. Example: A = [a b; c d]; and B = [e f; g h];
C is the constant vector transposed. Example: C = [i j]’;
x̄ is the vector transposed of the variables/functions I need to find. Example: x̄ = [x1 x2]’;
x̄’ is the vector transposed of the derivative of the variables/functions I need to find. Example: x̄’ = [dx1/dt dx2/dt]’;
The example is made for a EDO System of 2 differential equations. But It would be interesting if MATLAB could resolve a n x n matrix.
Any suggestion?Hi,
I need to know how to resolve EDO System with MATLAB. The system has this structure:
A*x̄’ + B*x̄ + C = 0
A, B are square matrix with constant coefficients. Example: A = [a b; c d]; and B = [e f; g h];
C is the constant vector transposed. Example: C = [i j]’;
x̄ is the vector transposed of the variables/functions I need to find. Example: x̄ = [x1 x2]’;
x̄’ is the vector transposed of the derivative of the variables/functions I need to find. Example: x̄’ = [dx1/dt dx2/dt]’;
The example is made for a EDO System of 2 differential equations. But It would be interesting if MATLAB could resolve a n x n matrix.
Any suggestion? Hi,
I need to know how to resolve EDO System with MATLAB. The system has this structure:
A*x̄’ + B*x̄ + C = 0
A, B are square matrix with constant coefficients. Example: A = [a b; c d]; and B = [e f; g h];
C is the constant vector transposed. Example: C = [i j]’;
x̄ is the vector transposed of the variables/functions I need to find. Example: x̄ = [x1 x2]’;
x̄’ is the vector transposed of the derivative of the variables/functions I need to find. Example: x̄’ = [dx1/dt dx2/dt]’;
The example is made for a EDO System of 2 differential equations. But It would be interesting if MATLAB could resolve a n x n matrix.
Any suggestion? second order edo system MATLAB Answers — New Questions
Matlab creates netcdf file but can’t open it later(ERROR: The NetCDF library encountered an error during execution of ‘open’ function – ‘Unknown file format (NC_ENOTNC)’
Hello, I’ve encountered a problem with NetCDF library, I would be very grateful for any tips how to solve it.
I’m trying to create a netcdffile and write variables in it. But for some reason after creating a file I can’t reach it anyhow (nccreate, ncdisp are getting the same error):
ncid = netcdf.create(‘F:GLORYS_dayARCGLORYS_surf.nc’,’NETCDF4′);
nccreate(‘F:GLORYS_dayARCGLORYS_surf.nc’,’Lat’,’Dimensions’,{‘Lat’ 205});
Error using matlab.internal.imagesci.netcdflib
The NetCDF library encountered an error during execution of ‘open’ function – ‘Unknown file format (NC_ENOTNC)’.
Error in netcdf.open (line 77)
[varargout{:}] = matlab.internal.imagesci.netcdflib(‘open’, …
Error in internal.matlab.imagesci.nc/openToAppend (line 1250)
this.ncRootid = netcdf.open(this.Filename,’WRITE’);
Error in internal.matlab.imagesci.nc (line 126)
this.openToAppend();
Error in nccreate (line 159)
ncObj = internal.matlab.imagesci.nc(ncFile,’a’, formatStr);
Error in export_to_netcdf (line 10)
nccreate(‘F:GLORYS_dayARCGLORYS_surf.nc’,’Lat’,’Dimensions’,{‘Lat’ 205});Hello, I’ve encountered a problem with NetCDF library, I would be very grateful for any tips how to solve it.
I’m trying to create a netcdffile and write variables in it. But for some reason after creating a file I can’t reach it anyhow (nccreate, ncdisp are getting the same error):
ncid = netcdf.create(‘F:GLORYS_dayARCGLORYS_surf.nc’,’NETCDF4′);
nccreate(‘F:GLORYS_dayARCGLORYS_surf.nc’,’Lat’,’Dimensions’,{‘Lat’ 205});
Error using matlab.internal.imagesci.netcdflib
The NetCDF library encountered an error during execution of ‘open’ function – ‘Unknown file format (NC_ENOTNC)’.
Error in netcdf.open (line 77)
[varargout{:}] = matlab.internal.imagesci.netcdflib(‘open’, …
Error in internal.matlab.imagesci.nc/openToAppend (line 1250)
this.ncRootid = netcdf.open(this.Filename,’WRITE’);
Error in internal.matlab.imagesci.nc (line 126)
this.openToAppend();
Error in nccreate (line 159)
ncObj = internal.matlab.imagesci.nc(ncFile,’a’, formatStr);
Error in export_to_netcdf (line 10)
nccreate(‘F:GLORYS_dayARCGLORYS_surf.nc’,’Lat’,’Dimensions’,{‘Lat’ 205}); Hello, I’ve encountered a problem with NetCDF library, I would be very grateful for any tips how to solve it.
I’m trying to create a netcdffile and write variables in it. But for some reason after creating a file I can’t reach it anyhow (nccreate, ncdisp are getting the same error):
ncid = netcdf.create(‘F:GLORYS_dayARCGLORYS_surf.nc’,’NETCDF4′);
nccreate(‘F:GLORYS_dayARCGLORYS_surf.nc’,’Lat’,’Dimensions’,{‘Lat’ 205});
Error using matlab.internal.imagesci.netcdflib
The NetCDF library encountered an error during execution of ‘open’ function – ‘Unknown file format (NC_ENOTNC)’.
Error in netcdf.open (line 77)
[varargout{:}] = matlab.internal.imagesci.netcdflib(‘open’, …
Error in internal.matlab.imagesci.nc/openToAppend (line 1250)
this.ncRootid = netcdf.open(this.Filename,’WRITE’);
Error in internal.matlab.imagesci.nc (line 126)
this.openToAppend();
Error in nccreate (line 159)
ncObj = internal.matlab.imagesci.nc(ncFile,’a’, formatStr);
Error in export_to_netcdf (line 10)
nccreate(‘F:GLORYS_dayARCGLORYS_surf.nc’,’Lat’,’Dimensions’,{‘Lat’ 205}); netcdf MATLAB Answers — New Questions
Execution alias for hosted application
I am trying to create a hosted application (i.e. with a HostId attribute) with an execution alias. The hosted application in general works, i.e. I can launch it from the start menu link that is generated. The execution alias is being generated, but when I try to run it I get an error saying
PS> foobarasdf.exe
ResourceUnavailable: Program ‘foobarasdf.exe’ failed to run: An error occurred trying to start process ‘C:UsersdavidAppDataLocalMicrosoftWindowsAppsfoobarasdf.exe’ with working directory ‘C:Usersdavidsourcejuliaup’. The file cann
ot be accessed by the system.At line:1 char:1 + foobarasdf.exe
+ ~~~~~~~~~~~~~~.
The app manifest that I’m using is this
<?xml version=”1.0″ encoding=”utf-8″?>
<Package
xmlns=”http://schemas.microsoft.com/appx/manifest/foundation/windows10″
xmlns:desktop=”http://schemas.microsoft.com/appx/manifest/desktop/windows10″
xmlns:desktop4=”http://schemas.microsoft.com/appx/manifest/desktop/windows10/4″
xmlns:uap=”http://schemas.microsoft.com/appx/manifest/uap/windows10″
xmlns:uap5=”http://schemas.microsoft.com/appx/manifest/uap/windows10/5″
xmlns:uap10=”http://schemas.microsoft.com/appx/manifest/uap/windows10/10″
xmlns:rescap=”http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities”
IgnorableNamespaces=”uap uap10 rescap build”
xmlns:build=”http://schemas.microsoft.com/developer/appx/2015/build”>
<Identity Name=”StringBuildersManifest”
Publisher=”CN=Julialang, OID.2.25.311729368913984317654407730594956997722=1″
Version=”1.0.0.6″ />
<Properties>
<DisplayName>Number Guesser (Manifest)</DisplayName>
<PublisherDisplayName>AppModelSamples</PublisherDisplayName>
<Logo>ImagesStoreLogo.png</Logo>
</Properties>
<Dependencies>
<TargetDeviceFamily Name=”Windows.Desktop” MinVersion=”10.0.19041.0″ MaxVersionTested=”10.0.19041.0″ />
<uap10:HostRuntimeDependency Name=”JuliaHubInc.JuliaDev” Publisher=”CN="JuliaHub, Inc.", O="JuliaHub, Inc.", L=CAMBRIDGE, S=Massachusetts, C=US” MinVersion=”1.0.0.0″/>
</Dependencies>
<Applications>
<Application Id=”StringBuildersApp”
uap10:HostId=”JuliaHost”
uap10:Parameters=”–project=C:Usersdavid.juliadevStringBuildersapp”>
<uap:VisualElements
DisplayName=”Stringbuilders”
Description=”Stringbuilders is a high-level, high-performance, dynamic programming language”
BackgroundColor=”transparent”
Square150x150Logo=”ImagesSquare150x150Logo.png”
Square44x44Logo=”ImagesSquare44x44Logo.png”>
<uap:DefaultTile
Wide310x150Logo=”ImagesWide310x150Logo.png”
ShortName=”Julia”
Square71x71Logo=”ImagesSmallTile.png”
Square310x310Logo=”ImagesLargeTile.png”>
<uap:ShowNameOnTiles>
<uap:ShowOn Tile=”square150x150Logo”/>
<uap:ShowOn Tile=”wide310x150Logo”/>
<uap:ShowOn Tile=”square310x310Logo”/>
</uap:ShowNameOnTiles>
</uap:DefaultTile >
<uap:SplashScreen Image=”ImagesSplashScreen.png” />
</uap:VisualElements>
<Extensions>
<uap5:Extension Category=”windows.appExecutionAlias”>
<uap5:AppExecutionAlias>
<uap5:ExecutionAlias Alias=”foobarasdf.exe” />
</uap5:AppExecutionAlias>
</uap5:Extension>
</Extensions>
</Application>
</Applications>
<Capabilities>
<rescap:Capability Name=”runFullTrust” />
<rescap:Capability Name=”unvirtualizedResources”/>
</Capabilities>
</Package>
Should this kind of approach in general work? Any hints what I’m doing wrong would be greatly appreciated!
I am trying to create a hosted application (i.e. with a HostId attribute) with an execution alias. The hosted application in general works, i.e. I can launch it from the start menu link that is generated. The execution alias is being generated, but when I try to run it I get an error saying PS> foobarasdf.exe
ResourceUnavailable: Program ‘foobarasdf.exe’ failed to run: An error occurred trying to start process ‘C:UsersdavidAppDataLocalMicrosoftWindowsAppsfoobarasdf.exe’ with working directory ‘C:Usersdavidsourcejuliaup’. The file cann
ot be accessed by the system.At line:1 char:1 + foobarasdf.exe
+ ~~~~~~~~~~~~~~. The app manifest that I’m using is this <?xml version=”1.0″ encoding=”utf-8″?>
<Package
xmlns=”http://schemas.microsoft.com/appx/manifest/foundation/windows10″
xmlns:desktop=”http://schemas.microsoft.com/appx/manifest/desktop/windows10″
xmlns:desktop4=”http://schemas.microsoft.com/appx/manifest/desktop/windows10/4″
xmlns:uap=”http://schemas.microsoft.com/appx/manifest/uap/windows10″
xmlns:uap5=”http://schemas.microsoft.com/appx/manifest/uap/windows10/5″
xmlns:uap10=”http://schemas.microsoft.com/appx/manifest/uap/windows10/10″
xmlns:rescap=”http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities”
IgnorableNamespaces=”uap uap10 rescap build”
xmlns:build=”http://schemas.microsoft.com/developer/appx/2015/build”>
<Identity Name=”StringBuildersManifest”
Publisher=”CN=Julialang, OID.2.25.311729368913984317654407730594956997722=1″
Version=”1.0.0.6″ />
<Properties>
<DisplayName>Number Guesser (Manifest)</DisplayName>
<PublisherDisplayName>AppModelSamples</PublisherDisplayName>
<Logo>ImagesStoreLogo.png</Logo>
</Properties>
<Dependencies>
<TargetDeviceFamily Name=”Windows.Desktop” MinVersion=”10.0.19041.0″ MaxVersionTested=”10.0.19041.0″ />
<uap10:HostRuntimeDependency Name=”JuliaHubInc.JuliaDev” Publisher=”CN="JuliaHub, Inc.", O="JuliaHub, Inc.", L=CAMBRIDGE, S=Massachusetts, C=US” MinVersion=”1.0.0.0″/>
</Dependencies>
<Applications>
<Application Id=”StringBuildersApp”
uap10:HostId=”JuliaHost”
uap10:Parameters=”–project=C:Usersdavid.juliadevStringBuildersapp”>
<uap:VisualElements
DisplayName=”Stringbuilders”
Description=”Stringbuilders is a high-level, high-performance, dynamic programming language”
BackgroundColor=”transparent”
Square150x150Logo=”ImagesSquare150x150Logo.png”
Square44x44Logo=”ImagesSquare44x44Logo.png”>
<uap:DefaultTile
Wide310x150Logo=”ImagesWide310x150Logo.png”
ShortName=”Julia”
Square71x71Logo=”ImagesSmallTile.png”
Square310x310Logo=”ImagesLargeTile.png”>
<uap:ShowNameOnTiles>
<uap:ShowOn Tile=”square150x150Logo”/>
<uap:ShowOn Tile=”wide310x150Logo”/>
<uap:ShowOn Tile=”square310x310Logo”/>
</uap:ShowNameOnTiles>
</uap:DefaultTile >
<uap:SplashScreen Image=”ImagesSplashScreen.png” />
</uap:VisualElements>
<Extensions>
<uap5:Extension Category=”windows.appExecutionAlias”>
<uap5:AppExecutionAlias>
<uap5:ExecutionAlias Alias=”foobarasdf.exe” />
</uap5:AppExecutionAlias>
</uap5:Extension>
</Extensions>
</Application>
</Applications>
<Capabilities>
<rescap:Capability Name=”runFullTrust” />
<rescap:Capability Name=”unvirtualizedResources”/>
</Capabilities>
</Package> Should this kind of approach in general work? Any hints what I’m doing wrong would be greatly appreciated! Read More
Storage Spaces volume consume all memory and CPU when brought online
I have Windows Storage Spaces in Windows Server 2022 on a physical server set up for use in DPM using a similar procedure as here using parity for the HDDs and mirrors for the SSDs: Add Modern Backup Storage to DPM | Microsoft Learn
It has been running this way for a while without issue. A few days ago, I noticed the DPM server performance was horrible, and the memory consumption and processor use on the system were pegged at 100% and unresponsive. The system had to be hard rebooted to get the system back up. After a short time, the same issue occurred.
I then decided to perform a clean OS and DPM install believing the issue was related to DPM. After installing the OS and before installing anything else, I attempted to bring online the imported Storage Spaces volume in the server. Everything was good until that point. After that, the memory and CPU use both continued to climb until they were both pegged making the system unusable again. It even drops RDP connections because of lack of resources. I’ve tried this same process a few times each with the same behavior. I have disabled the AV software in Windows Security and the same problem still occurs. The tasks consuming the CPU time are OS processes including a small amount by Window Error Reporting. The system has no other software installed—only Windows.
Does anyone have any ideas what could be causing this? I do not believe it is hardware related as nothing is logged in the event viewer or other areas that would indicate hardware.
I have Windows Storage Spaces in Windows Server 2022 on a physical server set up for use in DPM using a similar procedure as here using parity for the HDDs and mirrors for the SSDs: Add Modern Backup Storage to DPM | Microsoft Learn It has been running this way for a while without issue. A few days ago, I noticed the DPM server performance was horrible, and the memory consumption and processor use on the system were pegged at 100% and unresponsive. The system had to be hard rebooted to get the system back up. After a short time, the same issue occurred. I then decided to perform a clean OS and DPM install believing the issue was related to DPM. After installing the OS and before installing anything else, I attempted to bring online the imported Storage Spaces volume in the server. Everything was good until that point. After that, the memory and CPU use both continued to climb until they were both pegged making the system unusable again. It even drops RDP connections because of lack of resources. I’ve tried this same process a few times each with the same behavior. I have disabled the AV software in Windows Security and the same problem still occurs. The tasks consuming the CPU time are OS processes including a small amount by Window Error Reporting. The system has no other software installed—only Windows.Does anyone have any ideas what could be causing this? I do not believe it is hardware related as nothing is logged in the event viewer or other areas that would indicate hardware. Read More
Problem with Fuzzy controller blocks in simulink
I’ve already developed a control model by using fuzzy controller in simulink. there are some problems that seems like bugs. If you just agree with me please let me know how can I report this bugs to _Mathworks_ respondents?
1. When I use a fuzzy controller block with rule viewer, the block output is zero all the time however rule viewer works properly and show true outputs. When I try to show block output signal by using the tool _show value label of the port_ I see that the value is _grounded_ all the time.
2. The aforementioned problem does not exist for the fuzzy controller block without rule viewer. But there is another problem. The fuzzy controller works properly since a point time and after that reports zero in the rest of the simulation. I’m sure that this problem does not come from my fuzzy structure file and rule base because I’ve checked it outside simulink in programming environment. it works properly.
Thanks in advance
PouyaI’ve already developed a control model by using fuzzy controller in simulink. there are some problems that seems like bugs. If you just agree with me please let me know how can I report this bugs to _Mathworks_ respondents?
1. When I use a fuzzy controller block with rule viewer, the block output is zero all the time however rule viewer works properly and show true outputs. When I try to show block output signal by using the tool _show value label of the port_ I see that the value is _grounded_ all the time.
2. The aforementioned problem does not exist for the fuzzy controller block without rule viewer. But there is another problem. The fuzzy controller works properly since a point time and after that reports zero in the rest of the simulation. I’m sure that this problem does not come from my fuzzy structure file and rule base because I’ve checked it outside simulink in programming environment. it works properly.
Thanks in advance
Pouya I’ve already developed a control model by using fuzzy controller in simulink. there are some problems that seems like bugs. If you just agree with me please let me know how can I report this bugs to _Mathworks_ respondents?
1. When I use a fuzzy controller block with rule viewer, the block output is zero all the time however rule viewer works properly and show true outputs. When I try to show block output signal by using the tool _show value label of the port_ I see that the value is _grounded_ all the time.
2. The aforementioned problem does not exist for the fuzzy controller block without rule viewer. But there is another problem. The fuzzy controller works properly since a point time and after that reports zero in the rest of the simulation. I’m sure that this problem does not come from my fuzzy structure file and rule base because I’ve checked it outside simulink in programming environment. it works properly.
Thanks in advance
Pouya bug, fuzzy block with rule viewer, fuzzy control systems MATLAB Answers — New Questions
Este Mês no Azure Static Web Apps | 07/2024
Sejam bem-vindos a primeira edição da Comunidade do Azure Static Web Apps! Todo mês, nós compartilharemos os conteúdos que a Comunidade Técnica criou, seja em formato de artigos, vídeos, podcasts que falam sobre o Azure Static Web Apps.
Quer ter o seu conteúdo compartilhado no TechCommunity no #ThisMonthInAzureStaticWebApps? Veja como!
1 – Crie um artigo, vídeo, podcast ou até mesmo algum projeto Open Source que fale ou tenha relação com o Azure Static Web Apps.
2 – Compartilhe o seu conteúdo no Twitter, LinkedIn ou Instagram com a hashtag #AzureStaticWebApps
3 – Compartilhe também no nosso repositório oficial do Azure Static Web Apps no GitHub, na aba Discussions. Lá você encontrar um tópico chamado: This Month In Azure Static Web Apps. Compartilhe o link do seu conteúdo lá de acordo com o mês que você deseja que ele seja compartilhado.
4 – Pronto! Nós iremos compartilhar o seu conteúdo no TechCommunity da Microsoft no mês seguinte!
Independente do idioma que você escreva, seja em português, inglês, espanhol, francês, alemão, entre outros, nós queremos compartilhar o seu conteúdo!
Também se você estiver o Azure Static Web Apps com algum outro serviço ou Tecnologia, fique à vontade para compartilhar o seu conteúdo. Difere também da linguagem de programação que você está utilizando. Seja JavaScript, TypeScript, Python, Java, C#, Go, Rust, entre outras, nós queremos compartilhar o seu conteúdo!
Outro detalhe: você não precisa ser um especialista no Azure Static Web Apps para compartilhar o seu conteúdo. Se você está aprendendo sobre o serviço e quer compartilhar a sua jornada, fique à vontade para compartilhar o seu conteúdo!
Agora, vamos para os conteúdos do mês de Julho!
Agradecimentos!
Antes de começar a compartilhar os conteúdos, gostaríamos de agradecer a todas as pessoas que compartilharam os seus conteúdos no mês de Julho! Vocês são incríveis!
Conteúdos Compartilhados | Julho 2024
Agora vamos para os conteúdos compartilhados no mês de Julho de 2024!
Adding an API to an Azure hosted React Static Web App
Autor: Janek Fellien
O artigo explica como adicionar uma API a um aplicativo React Static Web App hospedado no Azure, configurando um ambiente de desenvolvimento com SWA CLI e VS Code, criando uma função HTTP em C#, e integrando a API ao app React para exibir dados no site.
Quer aprender a conectar seu aplicativo React a uma API no Azure? Leia o artigo completo e descubra como adicionar funcionalidades dinâmicas ao seu projeto.
Link: Adding an API to an Azure hosted React Static Web App
Hosting Next.JS Static Websites on Azure Static Web App
Autor: Parveen Singh
O artigo explica como hospedar sites estáticos criados com Next.js usando Azure Static Web Apps, abordando desde a configuração do repositório GitHub até a implantação contínua na Azure. É uma solução ideal para desenvolvedores que buscam simplicidade, segurança e escalabilidade em seus sites.
Quer aprender como hospedar seu site Next.js de forma simples e eficiente na Azure? Leia o artigo completo e descubra como aproveitar os recursos do Azure Static Web Apps!
Link: Hosting Next.JS Static Websites on Azure Static Web App
How to Deploy a React PWA to Azure Static Web Apps
Autor: Petkir
Este artigo ensina como implementar e automatizar o processo de deploy de uma aplicação React PWA para o Azure Static Web Apps usando GitHub Actions e Azure DevOps, além de gerar os recursos necessários com Bicep.
Quer aprender a simplificar o deploy de suas aplicações React PWA? Leia o artigo completo e descubra como automatizar tudo usando GitHub Actions e Azure DevOps!
Link: How to Deploy a React PWA to Azure Static Web Apps
Azure Static Web App: Seamless Microsoft Entra (Azure AD) Integration with Angular
Autor: Sparrow Note YouTube Channel | Althaf Moideen Konnola
Este vídeo ensina como integrar Microsoft Entra (Azure AD) com uma Azure Static Web App usando Angular, incluindo configuração de SSO, registro de aplicação e exibição de informações do usuário.
Quer aprender a integrar autenticação com Microsoft Entra em suas aplicações Angular? Assista agora e domine essa integração essencial para uma experiência de login unificada!
Link: Azure Static Web App: Seamless Microsoft Entra (Azure AD) Integration with Angular
Trimble Connect Workspace API 007 – Deployment
Autor: LetsConstructIT YouTube Channel
O vídeo demonstra como implantar uma aplicação local na nuvem usando Azure Static Web Apps, tornando-a acessível na web e integrada ao Trimble Connect, incluindo a configuração de extensões personalizadas.
Quer aprender a implantar suas aplicações na nuvem de forma simples e integrada com Trimble Connect? Assista ao vídeo completo e descubra como!
Link: Trimble Connect Workspace API 007 – Deployment
Blazor WASM Publishing to Azure Static Web Apps
Autor: Abdul Rahman | Regina Sharon
O artigo ensina como publicar aplicações Blazor WebAssembly (WASM) no Azure Static Web Apps, cobrindo desde a configuração inicial do projeto até a resolução de problemas comuns, como o erro 404 em atualizações de página. Ele também explica como personalizar o processo de build e configurar domínios personalizados.
Quer aprender a publicar suas aplicações Blazor WASM no Azure de forma simples e eficaz? Leia o artigo completo e descubra como configurar tudo passo a passo, garantindo que sua aplicação funcione perfeitamente!
Link: Blazor WASM Publishing to Azure Static Web Apps
Azure Static Web Apps Community Standup: Create a RAG App with App Spaces
Autor: Skyler Hartle | Dheeraj Bandaru
O vídeo apresenta o App Spaces, uma nova ferramenta do Azure que simplifica a criação e o gerenciamento de aplicativos inteligentes, especialmente ao integrar Azure Static Web Apps e Azure Container Apps. Durante a sessão, é demonstrado como criar e implantar um aplicativo de Recuperação Aumentada por Geração (RAG), utilizando uma interface simples que conecta repositórios do GitHub e automatiza o processo de CI/CD.
Descubra como simplificar a criação de aplicativos inteligentes com o Azure App Spaces! Assista ao vídeo completo e aprenda a implantar rapidamente um aplicativo RAG em minutos. Não perca essa oportunidade de elevar suas habilidades de desenvolvimento na nuvem!
Link: Azure Static Web Apps Community Standup: Create a RAG App with App Spaces
Serverless Single Page Application (Vue.js) mit Azure Static Web Apps
Autor: Florian Lenz
Idioma: Alemão
Este artigo mostra como criar e implantar uma aplicação de página única (SPA) usando Vue.js e Azure Static Web Apps. Ele guia o leitor desde a criação do projeto até a adição de um backend serverless com Azure Functions, destacando a facilidade de uso e as vantagens do modelo serverless para aplicações full-stack.
Quer aprender a implantar sua aplicação Vue.js na nuvem com Azure Static Web Apps e aproveitar os benefícios do serverless? Leia o artigo completo e descubra como criar e gerenciar uma aplicação full-stack de forma simples e eficiente!
Link: Serverless Single Page Application (Vue.js) mit Azure Static Web Apps
Conclusão
Se você deseja ser destaque no próximo artigo do #ThisMonthInAzureStaticWebApps, compartilhe o seu conteúdo nas redes sociais com a hashtag #AzureStaticWebApps e também no nosso repositório oficial no GitHub. Estamos ansiosos para compartilhar o seu conteúdo no próximo mês!
Lembrando que você não precisa ser um especialista no Azure Static Web Apps para compartilhar o seu conteúdo. Se você está aprendendo sobre o serviço e quer compartilhar a sua jornada, fique à vontade para compartilhar o seu conteúdo!
Até a próxima edição!
Microsoft Tech Community – Latest Blogs –Read More