Month: January 2025
Microsoft Cloud Revenues Keep on Heaping Up
Microsoft Cloud Revenues Break the $40 Billion Mark for the First Time
On Wednesday, January 29, 2025, Microsoft released their FY25 Q2 earnings and discussed the results at an analyst meeting afterward (transcript available here). Given Microsoft’s recent focus on anything branded as Copilot, a lot of attention was paid to what’s happening around artificial intelligence, but the headline number released was the $40.9 billion revenue for the Microsoft Cloud (an annual run rate of $163.6 billion).
The Microsoft Cloud is an amorphous grouping of products that includes Microsoft 365, Azure, Dynamics 365, and LinkedIn. The growth in cloud revenues has been strong and steady
The free edition of GitHub Copilot in Visual Studio Code notched up over a million signups in the first week post-launch. As I’ve noted here, GitHub Copilot is a great help to any developer, including those working with PowerShell for Microsoft 365.
Progress with Microsoft 365 Copilot
Satya Nadella said that customers who bought Copilot (for Microsoft 365) had expanded the number of seats by ten times over the last 18 months. That sounds impressive, but we don’t know the real numbers and when you start from a low base any increase seems large. Nadella also said that the number of people who use Copilot (for Microsoft 365) daily more than doubled over the last quarter with “usage intensity” increasing 60%. Usage intensity is Microsoft’s way of measuring how often people use Copilot for Microsoft 365 and what they do.
According to the documentation the statistic is based on “the average number of Copilot actions taken per user per month.” Microsoft 365 message notification MC986522 (23 January 2025, reports the addition of usage intensity and retention metrics in the Microsoft Copilot dashboard to allow customers to see how active their users are. It’s also possible to use the Graph Copilot usage API to analyze Copilot interactions and decide if people are active enough to keep their expensive licenses.
Copilot agents also received attention, with the claim being advanced that Copilot Studio makes it “as simple to build an agent as it is to create an Excel spreadsheet.” This is an aspiration rather than reality because creating a Copilot agent today (Figure 1) requires substantially more effort and expertise than firing up Excel to calculate some numbers.

CFO Amy Hood noted that the annual run rate for AI surpassed $13 billion and is above Microsoft’s expectations. The gap between the capital spending of circa $20 billion/quarter for the last several quarters and current revenues is one that Microsoft wants to close, and that’s why customers see so much stress being placed on Copilot.
No Detail about Microsoft 365 Seats
Microsoft failed to update the user numbers for Office 365, Microsoft 365, or Teams. The only clue was the statement that Microsoft 365 commercial seats grew by 7% year-over-year with revenue growth of 15% in constant currency. The growth was attributed to people switching to Microsoft 365 licenses and Copilot, but no details were given. A year ago, Microsoft said that the number of paid Office 365 seats was over 400 million. Applying a growth rate of 7% puts that number at around 428 million, which is as close as we can guess.
I couldn’t find a single mention of Teams in the analyst meeting transcript, so the official number for Teams users remains at 320 million as stated in October 2023. If Teams maintained the same ratio of seats to Office 365, it would be at around 350 million, bit Microsoft is staying silent on the topic for some reason. It’s interesting that the poster child of Microsoft investment briefings from a couple of short years ago has been left in the dust by the gallop toward AI.
Tactics to Generate Microsoft Cloud Revenues Won’t Change
I don’t expect much to change for Q3 (the current quarter). Microsoft will continue to be ultra-focused on driving Copilot revenue. Along will selling Microsoft 365 Copilot licenses, they’ll continue trying to convince customers to upgrade to higher base products, like Microsoft 365 E5. Given an apparent slowdown in new user acquisition, it’s the only way to keep the Microsoft 365 portion of the Microsoft Cloud revenues to grow.
Support the work of the Office 365 for IT Pros team by subscribing to the Office 365 for IT Pros eBook. Your support pays for the time we need to track, analyze, and document the changing world of Microsoft 365 and Office 365.
How to export my workspace variables and bus structure to a csv file?
I would like to export / save the structure of my workspace busses in .csv or other delimited format (for spreadsheet manipulation). Essentially, I would like to save all of my busses, and their parameters, in something like the "Type Editor" view which appears when I double-click a bus in my workspace. (At this point, the parameter values aren’t as important as the bus structure itself).
What is the best way to approach this?I would like to export / save the structure of my workspace busses in .csv or other delimited format (for spreadsheet manipulation). Essentially, I would like to save all of my busses, and their parameters, in something like the "Type Editor" view which appears when I double-click a bus in my workspace. (At this point, the parameter values aren’t as important as the bus structure itself).
What is the best way to approach this? I would like to export / save the structure of my workspace busses in .csv or other delimited format (for spreadsheet manipulation). Essentially, I would like to save all of my busses, and their parameters, in something like the "Type Editor" view which appears when I double-click a bus in my workspace. (At this point, the parameter values aren’t as important as the bus structure itself).
What is the best way to approach this? bus structure, export type editor view, comma delimited, workspace MATLAB Answers — New Questions
Convert Set of (x,y) Coordinates Into Polygon
I converted the attached coordinates (x,y) into an alphashape. See image.
shp = alphaShape(coordinates(:,1),coordinates(:,2),’HoleThreshold’,50);
What I need are the coordinates at the polygon vertices (shown in red), and importantly, in the proper order shown with the numbers. I would like to be able to use the polyshape function next…
I have toyed with boundaryfacet, delauney but with no luck.
Any suggestions?
Thanks.I converted the attached coordinates (x,y) into an alphashape. See image.
shp = alphaShape(coordinates(:,1),coordinates(:,2),’HoleThreshold’,50);
What I need are the coordinates at the polygon vertices (shown in red), and importantly, in the proper order shown with the numbers. I would like to be able to use the polyshape function next…
I have toyed with boundaryfacet, delauney but with no luck.
Any suggestions?
Thanks. I converted the attached coordinates (x,y) into an alphashape. See image.
shp = alphaShape(coordinates(:,1),coordinates(:,2),’HoleThreshold’,50);
What I need are the coordinates at the polygon vertices (shown in red), and importantly, in the proper order shown with the numbers. I would like to be able to use the polyshape function next…
I have toyed with boundaryfacet, delauney but with no luck.
Any suggestions?
Thanks. alphashape, polyshape, boundary MATLAB Answers — New Questions
Using msiwrite with phased antenna objects
I’m able to plot the radiation pattern from a phased antenna array object; how do I write this to a file using the msiwrite function?
msiwrite seems to accept inputs from other antenna types (e.g. helix), but all the data should be available within the phased.ShortDipoleAntennaElement object to be able to be used by the msiwrite function. What am I missing?
fc = 500e6;
antenna = phased.ShortDipoleAntennaElement(…
‘FrequencyRange’,[50e6,1000e6],…
‘AxisDirection’,’Z’);
array = phased.UCA(‘NumElements’,11,’Radius’,1.5,’Element’,antenna);
msiwrite(antenna,fc,’UCA_File’);I’m able to plot the radiation pattern from a phased antenna array object; how do I write this to a file using the msiwrite function?
msiwrite seems to accept inputs from other antenna types (e.g. helix), but all the data should be available within the phased.ShortDipoleAntennaElement object to be able to be used by the msiwrite function. What am I missing?
fc = 500e6;
antenna = phased.ShortDipoleAntennaElement(…
‘FrequencyRange’,[50e6,1000e6],…
‘AxisDirection’,’Z’);
array = phased.UCA(‘NumElements’,11,’Radius’,1.5,’Element’,antenna);
msiwrite(antenna,fc,’UCA_File’); I’m able to plot the radiation pattern from a phased antenna array object; how do I write this to a file using the msiwrite function?
msiwrite seems to accept inputs from other antenna types (e.g. helix), but all the data should be available within the phased.ShortDipoleAntennaElement object to be able to be used by the msiwrite function. What am I missing?
fc = 500e6;
antenna = phased.ShortDipoleAntennaElement(…
‘FrequencyRange’,[50e6,1000e6],…
‘AxisDirection’,’Z’);
array = phased.UCA(‘NumElements’,11,’Radius’,1.5,’Element’,antenna);
msiwrite(antenna,fc,’UCA_File’); antenna MATLAB Answers — New Questions
Trying to obtain coefficient matrix of Bspline matrix then obtaining its quasi-diagonal matrix ?
I tried to obtain the coefficients of B-spline matrix using the following code :
function C_matrix = calculateBsplineCoefficientMatrix(s)
% Number of input samples
N = length(s);
% Construct Alpha Values (Used in the Recursive Calculation)
alpha_values = zeros(1, 10);
alpha_values(1) = -1/4;
for i = 2:10
alpha_values(i) = -1 / (4 + alpha_values(i – 1));
end
alpha = alpha_values(end);
b_i = -alpha / (1 – alpha^2);
% Construct Forward Recursion Matrix (C_plus)
C_plus = zeros(N, N); % Matrix to store forward recursion values
C_plus(:, 1) = 1; % Initialize first column as 1
for k = 2:N
C_plus(k, 🙂 = alpha * C_plus(k-1, :);
C_plus(k, k) = 1; % Set diagonal values to 1 for recursion steps
end
% Construct Backward Recursion Matrix (C_minus)
C_minus = zeros(N, N);
I_N = eye(N); % Identity matrix of size NxN
C_minus(N, 🙂 = b_i * (2 * C_plus(N, 🙂 – I_N(N, :));
for k = N-1:-1:1
C_minus(k, 🙂 = alpha * (C_minus(k+1, 🙂 – C_plus(k, :));
end
% Construct Final B-spline Coefficient Matrix
C_matrix = 6 * C_minus;
end
s here represents the signal or sequence basically this code is created from the paper FastO-line interpolation by Dooley in pdf document(1).
s = rand(1, 4);
C_spline_matrix = calculateBsplineCoefficientMatrix(s);
disp(‘B-Spline Coefficients Matrix Form:’);
disp(C_spline_matrix);
The Solution is B-Spline Coefficients Matrix Form:
B-Spline Coefficients Matrix Form:
1.7327 -0.4665 0.1333 -0.0333
-0.4665 1.7410 -0.4974 0.1244
0.1333 -0.4974 1.8564 -0.4641
-0.0666 0.2487 -0.9282 1.7321
Then I tried to calculate its quasi diagonal matrix using the following code :
M = length(s); % Polynomial order or interpolation order
% Compute Transformation Matrices
T_mu = compute_TD(M); % Transformation matrix T_mu
T_z = calculate_Tz(M); % Transformation matrix T_z
% Ensure numerical stability
T_mu_invT = inv(transpose(T_mu)); % Explicit inverse transpose of T_mu
T_z_inv = inv(T_z); % Explicit inverse of T_z
% Compute the quasi-diagonal matrix C_LCN
C_LCN = T_mu_invT .*C_spline_matrix .* T_z_inv;
% Display the final quasi-diagonal matrix
disp(‘Computed C_LCN Matrix:’);
disp(C_LCN);
The solution of quasi diagonal matrix
Computed C_LCN Matrix:
1.8384 0 0 0
-0.5937 -2.4397 0 0
0.1728 1.1772 0.8176 0
-0.0168 -0.2263 -0.3135 -0.0388
The relevant functions are given below:
function Td1 = compute_Td1(M)
% Create a matrix of binomial coefficients
[I, J] = ndgrid(1:M, 1:M);
binomials = zeros(M, M);
for ii = 1:M
for jj = 1:M
if jj <= ii
binomials(ii, jj) = nchoosek(ii-1, jj-1);
end
end
end
% Compute powers and combine with binomial coefficients
powers = ((- (M – 1) / 2) .^ (I – J)) .* (J <= I);
Td1 = binomials .* powers;
% Debugging: Display Td1 matrix
disp(‘Td1 Matrix:’);
disp(Td1);
end
function Td2 = compute_Td2(M)
% Compute the Td2 matrix
Td2 = eye(M+1);
for n = 2:M+1
for k = 2:n-1
Td2(n, k) = Td2(n-1, k-1) – (n-2) * Td2(n-1, k);
end
end
Td2 = Td2(2:M+1, 2:M+1);
% Debugging: Display Td2 matrix
disp(‘Td2 Matrix:’);
disp(Td2);
end
function TD = compute_TD(M)
Td1 = compute_Td1(M);
Td2 = compute_Td2(M);
% Compute TD
TD = Td1 * Td2;
% Force symmetry in TD
TD = (TD + TD’) / 2;
% Regularization for numerical stability
TD = TD + 1e-8 * eye(size(TD));
% Debugging: Display TD matrix
disp(‘Symmetrized TD Matrix:’);
disp(TD);
end
function Tz = calculate_Tz(M)
% Generate the Tz transformation matrix for Newton interpolation
Tz = zeros(M, M);
for i = 1:M
for j = 1:i
Tz(i, j) = nchoosek(i-1, j-1) * (-1)^(j+1);
end
end
% Regularization for numerical stability
Tz = Tz + 1e-8 * eye(size(Tz));
% Debugging: Display Tz matrix
disp(‘Tz Matrix:’);
disp(Tz);
end
The problem is the it does not match the values as solved in the paper Electronic letters…
The solutions provided are :
Please could any body help me correcting this code to obtain the solution ?I tried to obtain the coefficients of B-spline matrix using the following code :
function C_matrix = calculateBsplineCoefficientMatrix(s)
% Number of input samples
N = length(s);
% Construct Alpha Values (Used in the Recursive Calculation)
alpha_values = zeros(1, 10);
alpha_values(1) = -1/4;
for i = 2:10
alpha_values(i) = -1 / (4 + alpha_values(i – 1));
end
alpha = alpha_values(end);
b_i = -alpha / (1 – alpha^2);
% Construct Forward Recursion Matrix (C_plus)
C_plus = zeros(N, N); % Matrix to store forward recursion values
C_plus(:, 1) = 1; % Initialize first column as 1
for k = 2:N
C_plus(k, 🙂 = alpha * C_plus(k-1, :);
C_plus(k, k) = 1; % Set diagonal values to 1 for recursion steps
end
% Construct Backward Recursion Matrix (C_minus)
C_minus = zeros(N, N);
I_N = eye(N); % Identity matrix of size NxN
C_minus(N, 🙂 = b_i * (2 * C_plus(N, 🙂 – I_N(N, :));
for k = N-1:-1:1
C_minus(k, 🙂 = alpha * (C_minus(k+1, 🙂 – C_plus(k, :));
end
% Construct Final B-spline Coefficient Matrix
C_matrix = 6 * C_minus;
end
s here represents the signal or sequence basically this code is created from the paper FastO-line interpolation by Dooley in pdf document(1).
s = rand(1, 4);
C_spline_matrix = calculateBsplineCoefficientMatrix(s);
disp(‘B-Spline Coefficients Matrix Form:’);
disp(C_spline_matrix);
The Solution is B-Spline Coefficients Matrix Form:
B-Spline Coefficients Matrix Form:
1.7327 -0.4665 0.1333 -0.0333
-0.4665 1.7410 -0.4974 0.1244
0.1333 -0.4974 1.8564 -0.4641
-0.0666 0.2487 -0.9282 1.7321
Then I tried to calculate its quasi diagonal matrix using the following code :
M = length(s); % Polynomial order or interpolation order
% Compute Transformation Matrices
T_mu = compute_TD(M); % Transformation matrix T_mu
T_z = calculate_Tz(M); % Transformation matrix T_z
% Ensure numerical stability
T_mu_invT = inv(transpose(T_mu)); % Explicit inverse transpose of T_mu
T_z_inv = inv(T_z); % Explicit inverse of T_z
% Compute the quasi-diagonal matrix C_LCN
C_LCN = T_mu_invT .*C_spline_matrix .* T_z_inv;
% Display the final quasi-diagonal matrix
disp(‘Computed C_LCN Matrix:’);
disp(C_LCN);
The solution of quasi diagonal matrix
Computed C_LCN Matrix:
1.8384 0 0 0
-0.5937 -2.4397 0 0
0.1728 1.1772 0.8176 0
-0.0168 -0.2263 -0.3135 -0.0388
The relevant functions are given below:
function Td1 = compute_Td1(M)
% Create a matrix of binomial coefficients
[I, J] = ndgrid(1:M, 1:M);
binomials = zeros(M, M);
for ii = 1:M
for jj = 1:M
if jj <= ii
binomials(ii, jj) = nchoosek(ii-1, jj-1);
end
end
end
% Compute powers and combine with binomial coefficients
powers = ((- (M – 1) / 2) .^ (I – J)) .* (J <= I);
Td1 = binomials .* powers;
% Debugging: Display Td1 matrix
disp(‘Td1 Matrix:’);
disp(Td1);
end
function Td2 = compute_Td2(M)
% Compute the Td2 matrix
Td2 = eye(M+1);
for n = 2:M+1
for k = 2:n-1
Td2(n, k) = Td2(n-1, k-1) – (n-2) * Td2(n-1, k);
end
end
Td2 = Td2(2:M+1, 2:M+1);
% Debugging: Display Td2 matrix
disp(‘Td2 Matrix:’);
disp(Td2);
end
function TD = compute_TD(M)
Td1 = compute_Td1(M);
Td2 = compute_Td2(M);
% Compute TD
TD = Td1 * Td2;
% Force symmetry in TD
TD = (TD + TD’) / 2;
% Regularization for numerical stability
TD = TD + 1e-8 * eye(size(TD));
% Debugging: Display TD matrix
disp(‘Symmetrized TD Matrix:’);
disp(TD);
end
function Tz = calculate_Tz(M)
% Generate the Tz transformation matrix for Newton interpolation
Tz = zeros(M, M);
for i = 1:M
for j = 1:i
Tz(i, j) = nchoosek(i-1, j-1) * (-1)^(j+1);
end
end
% Regularization for numerical stability
Tz = Tz + 1e-8 * eye(size(Tz));
% Debugging: Display Tz matrix
disp(‘Tz Matrix:’);
disp(Tz);
end
The problem is the it does not match the values as solved in the paper Electronic letters…
The solutions provided are :
Please could any body help me correcting this code to obtain the solution ? I tried to obtain the coefficients of B-spline matrix using the following code :
function C_matrix = calculateBsplineCoefficientMatrix(s)
% Number of input samples
N = length(s);
% Construct Alpha Values (Used in the Recursive Calculation)
alpha_values = zeros(1, 10);
alpha_values(1) = -1/4;
for i = 2:10
alpha_values(i) = -1 / (4 + alpha_values(i – 1));
end
alpha = alpha_values(end);
b_i = -alpha / (1 – alpha^2);
% Construct Forward Recursion Matrix (C_plus)
C_plus = zeros(N, N); % Matrix to store forward recursion values
C_plus(:, 1) = 1; % Initialize first column as 1
for k = 2:N
C_plus(k, 🙂 = alpha * C_plus(k-1, :);
C_plus(k, k) = 1; % Set diagonal values to 1 for recursion steps
end
% Construct Backward Recursion Matrix (C_minus)
C_minus = zeros(N, N);
I_N = eye(N); % Identity matrix of size NxN
C_minus(N, 🙂 = b_i * (2 * C_plus(N, 🙂 – I_N(N, :));
for k = N-1:-1:1
C_minus(k, 🙂 = alpha * (C_minus(k+1, 🙂 – C_plus(k, :));
end
% Construct Final B-spline Coefficient Matrix
C_matrix = 6 * C_minus;
end
s here represents the signal or sequence basically this code is created from the paper FastO-line interpolation by Dooley in pdf document(1).
s = rand(1, 4);
C_spline_matrix = calculateBsplineCoefficientMatrix(s);
disp(‘B-Spline Coefficients Matrix Form:’);
disp(C_spline_matrix);
The Solution is B-Spline Coefficients Matrix Form:
B-Spline Coefficients Matrix Form:
1.7327 -0.4665 0.1333 -0.0333
-0.4665 1.7410 -0.4974 0.1244
0.1333 -0.4974 1.8564 -0.4641
-0.0666 0.2487 -0.9282 1.7321
Then I tried to calculate its quasi diagonal matrix using the following code :
M = length(s); % Polynomial order or interpolation order
% Compute Transformation Matrices
T_mu = compute_TD(M); % Transformation matrix T_mu
T_z = calculate_Tz(M); % Transformation matrix T_z
% Ensure numerical stability
T_mu_invT = inv(transpose(T_mu)); % Explicit inverse transpose of T_mu
T_z_inv = inv(T_z); % Explicit inverse of T_z
% Compute the quasi-diagonal matrix C_LCN
C_LCN = T_mu_invT .*C_spline_matrix .* T_z_inv;
% Display the final quasi-diagonal matrix
disp(‘Computed C_LCN Matrix:’);
disp(C_LCN);
The solution of quasi diagonal matrix
Computed C_LCN Matrix:
1.8384 0 0 0
-0.5937 -2.4397 0 0
0.1728 1.1772 0.8176 0
-0.0168 -0.2263 -0.3135 -0.0388
The relevant functions are given below:
function Td1 = compute_Td1(M)
% Create a matrix of binomial coefficients
[I, J] = ndgrid(1:M, 1:M);
binomials = zeros(M, M);
for ii = 1:M
for jj = 1:M
if jj <= ii
binomials(ii, jj) = nchoosek(ii-1, jj-1);
end
end
end
% Compute powers and combine with binomial coefficients
powers = ((- (M – 1) / 2) .^ (I – J)) .* (J <= I);
Td1 = binomials .* powers;
% Debugging: Display Td1 matrix
disp(‘Td1 Matrix:’);
disp(Td1);
end
function Td2 = compute_Td2(M)
% Compute the Td2 matrix
Td2 = eye(M+1);
for n = 2:M+1
for k = 2:n-1
Td2(n, k) = Td2(n-1, k-1) – (n-2) * Td2(n-1, k);
end
end
Td2 = Td2(2:M+1, 2:M+1);
% Debugging: Display Td2 matrix
disp(‘Td2 Matrix:’);
disp(Td2);
end
function TD = compute_TD(M)
Td1 = compute_Td1(M);
Td2 = compute_Td2(M);
% Compute TD
TD = Td1 * Td2;
% Force symmetry in TD
TD = (TD + TD’) / 2;
% Regularization for numerical stability
TD = TD + 1e-8 * eye(size(TD));
% Debugging: Display TD matrix
disp(‘Symmetrized TD Matrix:’);
disp(TD);
end
function Tz = calculate_Tz(M)
% Generate the Tz transformation matrix for Newton interpolation
Tz = zeros(M, M);
for i = 1:M
for j = 1:i
Tz(i, j) = nchoosek(i-1, j-1) * (-1)^(j+1);
end
end
% Regularization for numerical stability
Tz = Tz + 1e-8 * eye(size(Tz));
% Debugging: Display Tz matrix
disp(‘Tz Matrix:’);
disp(Tz);
end
The problem is the it does not match the values as solved in the paper Electronic letters…
The solutions provided are :
Please could any body help me correcting this code to obtain the solution ? mathematics, digital image processing, digital signal processing, linear algebra MATLAB Answers — New Questions
Output Port Mapping after FPGA-in-the-loop (with Xilinx Basys3 Board)
Good day,
I have deployed a subsystem on my Xilinx Basys3 board for FIL (FPGA-in-the-loop) testing. The bitstream generated successfully and the FIL output matched with the SIMULINK model’s output. (I will use a snippet of the subsystem below to aid in describing my problem)
My next objective is to map the output (PHYFrame_out) to an output port on the BASYS3 board to physically obtain the signal. At this point I started digging around in the Xilinx project generated by the FIL workflow to manually map the output to a pin. I realized though, that the top-level VHDL module generated by MATLAB (see below) does not create an output port for PHYFrame_out (it only accepts the sysclk and sysrst). As a result, I am unable to map the signal to a pin.
Is there a step that I am missing that will allow me to perform I/O mapping from the HDL Coder itself. If not, are there any suggestions on how to map the DUT (device under test) output to an output port (something that comes to mind is editing the top-level VHDL code to include an output of my own and try to extract the signal that way). Thank you for any suggestions.Good day,
I have deployed a subsystem on my Xilinx Basys3 board for FIL (FPGA-in-the-loop) testing. The bitstream generated successfully and the FIL output matched with the SIMULINK model’s output. (I will use a snippet of the subsystem below to aid in describing my problem)
My next objective is to map the output (PHYFrame_out) to an output port on the BASYS3 board to physically obtain the signal. At this point I started digging around in the Xilinx project generated by the FIL workflow to manually map the output to a pin. I realized though, that the top-level VHDL module generated by MATLAB (see below) does not create an output port for PHYFrame_out (it only accepts the sysclk and sysrst). As a result, I am unable to map the signal to a pin.
Is there a step that I am missing that will allow me to perform I/O mapping from the HDL Coder itself. If not, are there any suggestions on how to map the DUT (device under test) output to an output port (something that comes to mind is editing the top-level VHDL code to include an output of my own and try to extract the signal that way). Thank you for any suggestions. Good day,
I have deployed a subsystem on my Xilinx Basys3 board for FIL (FPGA-in-the-loop) testing. The bitstream generated successfully and the FIL output matched with the SIMULINK model’s output. (I will use a snippet of the subsystem below to aid in describing my problem)
My next objective is to map the output (PHYFrame_out) to an output port on the BASYS3 board to physically obtain the signal. At this point I started digging around in the Xilinx project generated by the FIL workflow to manually map the output to a pin. I realized though, that the top-level VHDL module generated by MATLAB (see below) does not create an output port for PHYFrame_out (it only accepts the sysclk and sysrst). As a result, I am unable to map the signal to a pin.
Is there a step that I am missing that will allow me to perform I/O mapping from the HDL Coder itself. If not, are there any suggestions on how to map the DUT (device under test) output to an output port (something that comes to mind is editing the top-level VHDL code to include an output of my own and try to extract the signal that way). Thank you for any suggestions. fpga-in-the-loop, vivado MATLAB Answers — New Questions
Compare two irregularly sampled, noisy sinusoidal signals
I am an engineer by discipline, so I have a basic understanding of sine waves, but I am unfamiliar with signal processing techniques. I have two sets of noisy, irregularly sampled sinusoids and I have been tasked quantify how similar they are. The code below generates arrays that are similar to the data I am looking at. My data, however, was measured, so I have no prior knowledge of the amplitudes/frequencies of the sinusoids, only 3 arrays: one containing the discrete time points, and the other two containig the discrete values for signal x and signal y.
t = sort(10*rand(10000,1)); % Generate uneven sample times
x = 2*sin(pi*t) + 3*cos(2*pi*t) + rand(size(t)); % Generate signal 1
y = 2.1*sin(pi*t+0.3) + 3.1*cos(2*pi*t+0.3) + rand(size(t)); % Generate signal 2
I’d greatly appreciate any guidance/references to how to accomplish the task. Thank you for your time.I am an engineer by discipline, so I have a basic understanding of sine waves, but I am unfamiliar with signal processing techniques. I have two sets of noisy, irregularly sampled sinusoids and I have been tasked quantify how similar they are. The code below generates arrays that are similar to the data I am looking at. My data, however, was measured, so I have no prior knowledge of the amplitudes/frequencies of the sinusoids, only 3 arrays: one containing the discrete time points, and the other two containig the discrete values for signal x and signal y.
t = sort(10*rand(10000,1)); % Generate uneven sample times
x = 2*sin(pi*t) + 3*cos(2*pi*t) + rand(size(t)); % Generate signal 1
y = 2.1*sin(pi*t+0.3) + 3.1*cos(2*pi*t+0.3) + rand(size(t)); % Generate signal 2
I’d greatly appreciate any guidance/references to how to accomplish the task. Thank you for your time. I am an engineer by discipline, so I have a basic understanding of sine waves, but I am unfamiliar with signal processing techniques. I have two sets of noisy, irregularly sampled sinusoids and I have been tasked quantify how similar they are. The code below generates arrays that are similar to the data I am looking at. My data, however, was measured, so I have no prior knowledge of the amplitudes/frequencies of the sinusoids, only 3 arrays: one containing the discrete time points, and the other two containig the discrete values for signal x and signal y.
t = sort(10*rand(10000,1)); % Generate uneven sample times
x = 2*sin(pi*t) + 3*cos(2*pi*t) + rand(size(t)); % Generate signal 1
y = 2.1*sin(pi*t+0.3) + 3.1*cos(2*pi*t+0.3) + rand(size(t)); % Generate signal 2
I’d greatly appreciate any guidance/references to how to accomplish the task. Thank you for your time. fft, plomb, lomb, scargle, signal processing, discrete, discrete signal processing, dsp, fourier, irregular, noisy, irregularly sampled, noisy data, noisy sinusoid MATLAB Answers — New Questions
Error using Matlab’s publish function to create a pdf
On 3 of my students’ laptops that have Matlab installed, regardless of whether I use the publish function in the Command Window, or the publish tab at the top, I cannot get Matlab to generate a pdf. It gives me the same error on all 3 laptops:
Error using mlreportgen.re.internal.xml.transform.CompiledStylesheet
All of my other students are not having this issue on their computers. I have tried seeing if this has been asked before or other people have had this error but I am not finding anything on the mathworks website. I have taught this class for years and have never seen this error using the publish function before.On 3 of my students’ laptops that have Matlab installed, regardless of whether I use the publish function in the Command Window, or the publish tab at the top, I cannot get Matlab to generate a pdf. It gives me the same error on all 3 laptops:
Error using mlreportgen.re.internal.xml.transform.CompiledStylesheet
All of my other students are not having this issue on their computers. I have tried seeing if this has been asked before or other people have had this error but I am not finding anything on the mathworks website. I have taught this class for years and have never seen this error using the publish function before. On 3 of my students’ laptops that have Matlab installed, regardless of whether I use the publish function in the Command Window, or the publish tab at the top, I cannot get Matlab to generate a pdf. It gives me the same error on all 3 laptops:
Error using mlreportgen.re.internal.xml.transform.CompiledStylesheet
All of my other students are not having this issue on their computers. I have tried seeing if this has been asked before or other people have had this error but I am not finding anything on the mathworks website. I have taught this class for years and have never seen this error using the publish function before. publish function MATLAB Answers — New Questions
Desorption reactor design in simulink
Hello, I want to model a desorption reactor with a fixed bed containing gold-laden carbon, through which a desorbing solution passes, which extracts extra gold. I am trying to solve it using a PDE system in which I create multiple nodes, assimilating it as if it were solved using the finite difference method. Using a forward difference for the initial node, a central difference for the intermediate nodes, and a backward difference for the final node. These are relative to a distance differential.The equations are as follows.
So i tried finite differences for dc/dz with forward difference for eactor entry , central along the reactor , and backward in the exit, and dc/dt and dq/dt use integrator blocks, I consider Co= 0 kg/m3 solution and q0=4.320 kg/m3 carbon. Just considering 5 nodes , shall be more but first i want to make the first five work fine .
And each node consist on the following layout , where can be seen a time integral block term for q(carbon loading) and c(solution loading , it shows also a length step and inputs from the forwarded and current node soluction concentration(in the case of the first node)
My problem is that I am getting the same values on each node, which I don’t know if it is right the layout approach, since they should be different with relation to time and besides when i increase or decrease the input stream speed , the values in carbon and solution loading not change at all. thanks in advance
The model file is attached next: Reactor processHello, I want to model a desorption reactor with a fixed bed containing gold-laden carbon, through which a desorbing solution passes, which extracts extra gold. I am trying to solve it using a PDE system in which I create multiple nodes, assimilating it as if it were solved using the finite difference method. Using a forward difference for the initial node, a central difference for the intermediate nodes, and a backward difference for the final node. These are relative to a distance differential.The equations are as follows.
So i tried finite differences for dc/dz with forward difference for eactor entry , central along the reactor , and backward in the exit, and dc/dt and dq/dt use integrator blocks, I consider Co= 0 kg/m3 solution and q0=4.320 kg/m3 carbon. Just considering 5 nodes , shall be more but first i want to make the first five work fine .
And each node consist on the following layout , where can be seen a time integral block term for q(carbon loading) and c(solution loading , it shows also a length step and inputs from the forwarded and current node soluction concentration(in the case of the first node)
My problem is that I am getting the same values on each node, which I don’t know if it is right the layout approach, since they should be different with relation to time and besides when i increase or decrease the input stream speed , the values in carbon and solution loading not change at all. thanks in advance
The model file is attached next: Reactor process Hello, I want to model a desorption reactor with a fixed bed containing gold-laden carbon, through which a desorbing solution passes, which extracts extra gold. I am trying to solve it using a PDE system in which I create multiple nodes, assimilating it as if it were solved using the finite difference method. Using a forward difference for the initial node, a central difference for the intermediate nodes, and a backward difference for the final node. These are relative to a distance differential.The equations are as follows.
So i tried finite differences for dc/dz with forward difference for eactor entry , central along the reactor , and backward in the exit, and dc/dt and dq/dt use integrator blocks, I consider Co= 0 kg/m3 solution and q0=4.320 kg/m3 carbon. Just considering 5 nodes , shall be more but first i want to make the first five work fine .
And each node consist on the following layout , where can be seen a time integral block term for q(carbon loading) and c(solution loading , it shows also a length step and inputs from the forwarded and current node soluction concentration(in the case of the first node)
My problem is that I am getting the same values on each node, which I don’t know if it is right the layout approach, since they should be different with relation to time and besides when i increase or decrease the input stream speed , the values in carbon and solution loading not change at all. thanks in advance
The model file is attached next: Reactor process simulink MATLAB Answers — New Questions
Variable number of inputs in inputdlg with pre-selected values when inputs equals 6
Sometimes I want to replace the column headings in a uitable. I have several uitables and each can have a variable number of columns so I have the following code which uses an inputdlg but with a variable number of inputs.
T=app.UITable;
data=T.Data;
[rows,cols]=size(data)
ReportMessage(app,[‘UITABLE cols: ‘,num2str(cols)]);
dlgtitle = ‘Modify Columns Headings….’;
prompts=compose(‘Col %d’,1:cols);
y=inputdlg(prompts,dlgtitle);
T.ColumnName=y;
When the number of columns is 6, I want to pre-select the input entries. Normally I would use this
definput = {‘100′,’1′,’31.72′,’0′,’123′,’78’};
But this doesn’t work
if cols==6
prompts=compose(‘Col %d’,1:cols);
definput = {‘100′,’1′,’31.72′,’0′,’123′,’78’};
y=inputdlg(prompts,dlgtitle,definput);
end
T.ColumnName=y;
But this doesn’t workSometimes I want to replace the column headings in a uitable. I have several uitables and each can have a variable number of columns so I have the following code which uses an inputdlg but with a variable number of inputs.
T=app.UITable;
data=T.Data;
[rows,cols]=size(data)
ReportMessage(app,[‘UITABLE cols: ‘,num2str(cols)]);
dlgtitle = ‘Modify Columns Headings….’;
prompts=compose(‘Col %d’,1:cols);
y=inputdlg(prompts,dlgtitle);
T.ColumnName=y;
When the number of columns is 6, I want to pre-select the input entries. Normally I would use this
definput = {‘100′,’1′,’31.72′,’0′,’123′,’78’};
But this doesn’t work
if cols==6
prompts=compose(‘Col %d’,1:cols);
definput = {‘100′,’1′,’31.72′,’0′,’123′,’78’};
y=inputdlg(prompts,dlgtitle,definput);
end
T.ColumnName=y;
But this doesn’t work Sometimes I want to replace the column headings in a uitable. I have several uitables and each can have a variable number of columns so I have the following code which uses an inputdlg but with a variable number of inputs.
T=app.UITable;
data=T.Data;
[rows,cols]=size(data)
ReportMessage(app,[‘UITABLE cols: ‘,num2str(cols)]);
dlgtitle = ‘Modify Columns Headings….’;
prompts=compose(‘Col %d’,1:cols);
y=inputdlg(prompts,dlgtitle);
T.ColumnName=y;
When the number of columns is 6, I want to pre-select the input entries. Normally I would use this
definput = {‘100′,’1′,’31.72′,’0′,’123′,’78’};
But this doesn’t work
if cols==6
prompts=compose(‘Col %d’,1:cols);
definput = {‘100′,’1′,’31.72′,’0′,’123′,’78’};
y=inputdlg(prompts,dlgtitle,definput);
end
T.ColumnName=y;
But this doesn’t work inputdlg MATLAB Answers — New Questions
Image Processing getting HSV components from colored image
I am trying to the the hue, saturation and value images from an image (originally colored). I converted the image using rgb2hsv() function but I am confused about how to get the 3 images from there.
Thanks in advance!I am trying to the the hue, saturation and value images from an image (originally colored). I converted the image using rgb2hsv() function but I am confused about how to get the 3 images from there.
Thanks in advance! I am trying to the the hue, saturation and value images from an image (originally colored). I converted the image using rgb2hsv() function but I am confused about how to get the 3 images from there.
Thanks in advance! image processing, hsv, image components MATLAB Answers — New Questions
Neglection of [outport]variable generated for bus assignment block
My intention is to generate th code as mentioned below
void computeArea() {
rectangle.area = rectangle.length * rectangle.width;
}My intention is to generate th code as mentioned below
void computeArea() {
rectangle.area = rectangle.length * rectangle.width;
} My intention is to generate th code as mentioned below
void computeArea() {
rectangle.area = rectangle.length * rectangle.width;
} bus assignment ouport |bus inp MATLAB Answers — New Questions
Close diary file on Error
Hi,
I am using the diary function to log my application output. Something like
diary(path_to_logfile)
% all my code with output to the console, matrices written to desk, etc
diary off
When the code fails, the diary is not closed. One option would be to wrap all the code on a try-catch statement and close it on the catch.
Is there another way to avoid the diary being "open" when the app fails?Hi,
I am using the diary function to log my application output. Something like
diary(path_to_logfile)
% all my code with output to the console, matrices written to desk, etc
diary off
When the code fails, the diary is not closed. One option would be to wrap all the code on a try-catch statement and close it on the catch.
Is there another way to avoid the diary being "open" when the app fails? Hi,
I am using the diary function to log my application output. Something like
diary(path_to_logfile)
% all my code with output to the console, matrices written to desk, etc
diary off
When the code fails, the diary is not closed. One option would be to wrap all the code on a try-catch statement and close it on the catch.
Is there another way to avoid the diary being "open" when the app fails? logging, diary, try-catch MATLAB Answers — New Questions
ChartContainer is broken?
Hi all,
Since R2020a, class properties, provided by the class constructor are assigned after the setup method runs, see https://www.mathworks.com/help/matlab/ref/matlab.graphics.chartcontainer.chartcontainer.setup.html#mw_892e1871-5986-41cf-b037-396fa9a9adbf
That means, I can’t create plots that rely somehow on external information, provided by the user via constructor. An easy example would be this:
The user provides a timetable. Each column should be plotted to its own subplot:
classdef BrokenChartClass < matlab.graphics.chartcontainer.ChartContainer
properties
Data timetable
end
properties (Access = private)
NumSubplots = 1
DataAxes
DataLines
end
methods
function obj = BrokenChartClass(T)
arguments
T timetable
end
obj@matlab.graphics.chartcontainer.ChartContainer();
obj.NumSubplots = length(T.Properties.VariableNames); % create as many subplots as columns in data table
obj.Data = T;
end
end
methods (Access = protected)
function setup(obj)
tcl = getLayout(obj);
obj.DataAxes = arrayfun(@(n)nexttile(tcl, n), 1:obj.NumSubplots);
obj.DataLines = arrayfun(@(hax)plot(hax, NaT, NaN), obj.DataAxes);
end
function update(obj)
% Extract the time data from the table.
tbl = obj.Data;
t = tbl.Properties.RowTimes;
for k = 1:length(obj.DataLines)
set(obj.DataLines(k), ‘XData’, t, ‘YData’, tbl{:,k})
end
end
end
end
%% test via
T = timetable((datetime():seconds(1):datetime+hours(1))’,randn(3601,1),10*randn(3601,1)); % 3601 rows, 2 data cols
head(T)
BrokenChartClass(T(:,1)); % -> one subplot, makes sense
BrokenChartClass(T(:,1:2)); % -> one subplot (uses default value of NumSubplots), not as expected but documented
Could you please help me understanding this concept? Calling setup before assigning the properties makes it impossible to use it. I always have to create another mySetup function to be called in update which requires some flag like bool IsInitialized or so.
I can’t believe that’s the purpose of this class. What am I missing?
Thanks!Hi all,
Since R2020a, class properties, provided by the class constructor are assigned after the setup method runs, see https://www.mathworks.com/help/matlab/ref/matlab.graphics.chartcontainer.chartcontainer.setup.html#mw_892e1871-5986-41cf-b037-396fa9a9adbf
That means, I can’t create plots that rely somehow on external information, provided by the user via constructor. An easy example would be this:
The user provides a timetable. Each column should be plotted to its own subplot:
classdef BrokenChartClass < matlab.graphics.chartcontainer.ChartContainer
properties
Data timetable
end
properties (Access = private)
NumSubplots = 1
DataAxes
DataLines
end
methods
function obj = BrokenChartClass(T)
arguments
T timetable
end
obj@matlab.graphics.chartcontainer.ChartContainer();
obj.NumSubplots = length(T.Properties.VariableNames); % create as many subplots as columns in data table
obj.Data = T;
end
end
methods (Access = protected)
function setup(obj)
tcl = getLayout(obj);
obj.DataAxes = arrayfun(@(n)nexttile(tcl, n), 1:obj.NumSubplots);
obj.DataLines = arrayfun(@(hax)plot(hax, NaT, NaN), obj.DataAxes);
end
function update(obj)
% Extract the time data from the table.
tbl = obj.Data;
t = tbl.Properties.RowTimes;
for k = 1:length(obj.DataLines)
set(obj.DataLines(k), ‘XData’, t, ‘YData’, tbl{:,k})
end
end
end
end
%% test via
T = timetable((datetime():seconds(1):datetime+hours(1))’,randn(3601,1),10*randn(3601,1)); % 3601 rows, 2 data cols
head(T)
BrokenChartClass(T(:,1)); % -> one subplot, makes sense
BrokenChartClass(T(:,1:2)); % -> one subplot (uses default value of NumSubplots), not as expected but documented
Could you please help me understanding this concept? Calling setup before assigning the properties makes it impossible to use it. I always have to create another mySetup function to be called in update which requires some flag like bool IsInitialized or so.
I can’t believe that’s the purpose of this class. What am I missing?
Thanks! Hi all,
Since R2020a, class properties, provided by the class constructor are assigned after the setup method runs, see https://www.mathworks.com/help/matlab/ref/matlab.graphics.chartcontainer.chartcontainer.setup.html#mw_892e1871-5986-41cf-b037-396fa9a9adbf
That means, I can’t create plots that rely somehow on external information, provided by the user via constructor. An easy example would be this:
The user provides a timetable. Each column should be plotted to its own subplot:
classdef BrokenChartClass < matlab.graphics.chartcontainer.ChartContainer
properties
Data timetable
end
properties (Access = private)
NumSubplots = 1
DataAxes
DataLines
end
methods
function obj = BrokenChartClass(T)
arguments
T timetable
end
obj@matlab.graphics.chartcontainer.ChartContainer();
obj.NumSubplots = length(T.Properties.VariableNames); % create as many subplots as columns in data table
obj.Data = T;
end
end
methods (Access = protected)
function setup(obj)
tcl = getLayout(obj);
obj.DataAxes = arrayfun(@(n)nexttile(tcl, n), 1:obj.NumSubplots);
obj.DataLines = arrayfun(@(hax)plot(hax, NaT, NaN), obj.DataAxes);
end
function update(obj)
% Extract the time data from the table.
tbl = obj.Data;
t = tbl.Properties.RowTimes;
for k = 1:length(obj.DataLines)
set(obj.DataLines(k), ‘XData’, t, ‘YData’, tbl{:,k})
end
end
end
end
%% test via
T = timetable((datetime():seconds(1):datetime+hours(1))’,randn(3601,1),10*randn(3601,1)); % 3601 rows, 2 data cols
head(T)
BrokenChartClass(T(:,1)); % -> one subplot, makes sense
BrokenChartClass(T(:,1:2)); % -> one subplot (uses default value of NumSubplots), not as expected but documented
Could you please help me understanding this concept? Calling setup before assigning the properties makes it impossible to use it. I always have to create another mySetup function to be called in update which requires some flag like bool IsInitialized or so.
I can’t believe that’s the purpose of this class. What am I missing?
Thanks! matlab, plot, chartcontainer, custom charts MATLAB Answers — New Questions
How to keep Matlab from stealing focus
I do a lot long running scripts that plot to multiple figure. While these scripts are running, I am unable to use my computer because Matlab steals focus so I can’t do anything else while the script is running. It there a way to keep the plot function from stealing focus?I do a lot long running scripts that plot to multiple figure. While these scripts are running, I am unable to use my computer because Matlab steals focus so I can’t do anything else while the script is running. It there a way to keep the plot function from stealing focus? I do a lot long running scripts that plot to multiple figure. While these scripts are running, I am unable to use my computer because Matlab steals focus so I can’t do anything else while the script is running. It there a way to keep the plot function from stealing focus? focus, stealing MATLAB Answers — New Questions
How do I print one value on one row and another on the next
So I have a matrix which I am trying to print into a file so that one row has one value the next row a different and so one. The first collum in each row should alternate between B and N, which it is doing, however the rest of the row values are the same. For example here is the first four rows of the printed file :
B 55.31897464 3.07237728 -1002.88631401
N 55.31897464 3.07237728 -1002.88631401
B 53.43739489 3.94977174 -1001.67387801
N 53.43739489 3.94977174 -1001.67387801
Instead of the N row being the same as the B row I would like the file to be printed as:
B 55.31897464 3.07237728 -1002.88631401
N 53.43739489 3.94977174 -1001.67387801
Attatched is my code :
for i = 1:2:size(unit,1)
fprintf(fid_1, ‘%s %10.8f %10.8f %10.8frn’,’B’,unit(i,1),unit(i,2),unit(i,3)); %print boron atoms
fprintf(fid_1, ‘%s %10.8f %10.8f %10.8frn’,’N’,unit(i,1),unit(i,2),unit(i,3)); %print nitrogen atoms
endSo I have a matrix which I am trying to print into a file so that one row has one value the next row a different and so one. The first collum in each row should alternate between B and N, which it is doing, however the rest of the row values are the same. For example here is the first four rows of the printed file :
B 55.31897464 3.07237728 -1002.88631401
N 55.31897464 3.07237728 -1002.88631401
B 53.43739489 3.94977174 -1001.67387801
N 53.43739489 3.94977174 -1001.67387801
Instead of the N row being the same as the B row I would like the file to be printed as:
B 55.31897464 3.07237728 -1002.88631401
N 53.43739489 3.94977174 -1001.67387801
Attatched is my code :
for i = 1:2:size(unit,1)
fprintf(fid_1, ‘%s %10.8f %10.8f %10.8frn’,’B’,unit(i,1),unit(i,2),unit(i,3)); %print boron atoms
fprintf(fid_1, ‘%s %10.8f %10.8f %10.8frn’,’N’,unit(i,1),unit(i,2),unit(i,3)); %print nitrogen atoms
end So I have a matrix which I am trying to print into a file so that one row has one value the next row a different and so one. The first collum in each row should alternate between B and N, which it is doing, however the rest of the row values are the same. For example here is the first four rows of the printed file :
B 55.31897464 3.07237728 -1002.88631401
N 55.31897464 3.07237728 -1002.88631401
B 53.43739489 3.94977174 -1001.67387801
N 53.43739489 3.94977174 -1001.67387801
Instead of the N row being the same as the B row I would like the file to be printed as:
B 55.31897464 3.07237728 -1002.88631401
N 53.43739489 3.94977174 -1001.67387801
Attatched is my code :
for i = 1:2:size(unit,1)
fprintf(fid_1, ‘%s %10.8f %10.8f %10.8frn’,’B’,unit(i,1),unit(i,2),unit(i,3)); %print boron atoms
fprintf(fid_1, ‘%s %10.8f %10.8f %10.8frn’,’N’,unit(i,1),unit(i,2),unit(i,3)); %print nitrogen atoms
end matrix manipulation, odd, even MATLAB Answers — New Questions
urlread – IP address could not be determined
Hi team
I am using EODHD.COM for stock data. I get the following error every now and then. example – if I am iterating over say 50 stocks data, the code sometimes throw an error for 1 stock, then I rerun the full script allover again and it will work. I used webread to start with but webread doesn’t even read the webpage and returns no data (urlread returns data instead).
Error using urlreadwrite_legacy (line 88)
The IP address of "eodhd.com" could not be determined.
Error in urlreadwrite (line 88)
[output,status] = urlreadwrite_legacy(fcn,catchErrors,varargin{:});
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in urlread (line 16)
[s,status] = urlreadwrite(mfilename,catchErrors,url,varargin{:});
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in NSE_all (line 78)
EOD_data = urlread(URL2); % json data
^^^^^^^^^^^^^
My codes are:
url2A = ‘https://eodhd.com/api/eod/’;
url2B = ‘?from=’;
url2C = ‘&period=d&api_token=’;
url2D = ‘&fmt=json’;
From = datetime("today") – (365 * 20);
dt_str = char(From);
URL2 = url2A + company + url2B + dt_str + url2C + token + url2D;
EOD_data = urlread(URL2);
*please note company is a name of the stock ticker I take from the list for the For loop so I iterate through multiple companies stocks.
Is it possible to tell urlread to wait longer and try more before throwing an error? or even keep trying for the specified time? I want urlread to not stop my script at any random time. I am new to Matlab so if anyone can help it would be great.Hi team
I am using EODHD.COM for stock data. I get the following error every now and then. example – if I am iterating over say 50 stocks data, the code sometimes throw an error for 1 stock, then I rerun the full script allover again and it will work. I used webread to start with but webread doesn’t even read the webpage and returns no data (urlread returns data instead).
Error using urlreadwrite_legacy (line 88)
The IP address of "eodhd.com" could not be determined.
Error in urlreadwrite (line 88)
[output,status] = urlreadwrite_legacy(fcn,catchErrors,varargin{:});
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in urlread (line 16)
[s,status] = urlreadwrite(mfilename,catchErrors,url,varargin{:});
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in NSE_all (line 78)
EOD_data = urlread(URL2); % json data
^^^^^^^^^^^^^
My codes are:
url2A = ‘https://eodhd.com/api/eod/’;
url2B = ‘?from=’;
url2C = ‘&period=d&api_token=’;
url2D = ‘&fmt=json’;
From = datetime("today") – (365 * 20);
dt_str = char(From);
URL2 = url2A + company + url2B + dt_str + url2C + token + url2D;
EOD_data = urlread(URL2);
*please note company is a name of the stock ticker I take from the list for the For loop so I iterate through multiple companies stocks.
Is it possible to tell urlread to wait longer and try more before throwing an error? or even keep trying for the specified time? I want urlread to not stop my script at any random time. I am new to Matlab so if anyone can help it would be great. Hi team
I am using EODHD.COM for stock data. I get the following error every now and then. example – if I am iterating over say 50 stocks data, the code sometimes throw an error for 1 stock, then I rerun the full script allover again and it will work. I used webread to start with but webread doesn’t even read the webpage and returns no data (urlread returns data instead).
Error using urlreadwrite_legacy (line 88)
The IP address of "eodhd.com" could not be determined.
Error in urlreadwrite (line 88)
[output,status] = urlreadwrite_legacy(fcn,catchErrors,varargin{:});
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in urlread (line 16)
[s,status] = urlreadwrite(mfilename,catchErrors,url,varargin{:});
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in NSE_all (line 78)
EOD_data = urlread(URL2); % json data
^^^^^^^^^^^^^
My codes are:
url2A = ‘https://eodhd.com/api/eod/’;
url2B = ‘?from=’;
url2C = ‘&period=d&api_token=’;
url2D = ‘&fmt=json’;
From = datetime("today") – (365 * 20);
dt_str = char(From);
URL2 = url2A + company + url2B + dt_str + url2C + token + url2D;
EOD_data = urlread(URL2);
*please note company is a name of the stock ticker I take from the list for the For loop so I iterate through multiple companies stocks.
Is it possible to tell urlread to wait longer and try more before throwing an error? or even keep trying for the specified time? I want urlread to not stop my script at any random time. I am new to Matlab so if anyone can help it would be great. urlread ip_address, webread MATLAB Answers — New Questions
how does trimr function work
my code is having a command as given below
xnew=trimr(mini,maxi,xnew)
how does this command work. while running the code there is no error, but when trimr function is separately run in the command window, it is displayed as an undfined functionmy code is having a command as given below
xnew=trimr(mini,maxi,xnew)
how does this command work. while running the code there is no error, but when trimr function is separately run in the command window, it is displayed as an undfined function my code is having a command as given below
xnew=trimr(mini,maxi,xnew)
how does this command work. while running the code there is no error, but when trimr function is separately run in the command window, it is displayed as an undfined function trimr MATLAB Answers — New Questions
How to train SVM on features matrix?
Hi,
I tried to train SVM on cell array which each element is 20×120 double, How to train SVM fitcecoc on cell which each cell element contains 20×120 array features?Hi,
I tried to train SVM on cell array which each element is 20×120 double, How to train SVM fitcecoc on cell which each cell element contains 20×120 array features? Hi,
I tried to train SVM on cell array which each element is 20×120 double, How to train SVM fitcecoc on cell which each cell element contains 20×120 array features? svm, machine learning MATLAB Answers — New Questions
Inquiry Regarding Minor Variations in MATLAB GPU Computation
I am running an algorithm in MATLAB utilizing my system’s GPU. For the same input, the results are generally identical. However, in some cases, I notice minor variations in the decimal values of the output. Can anyone please help me understand why this is happening?I am running an algorithm in MATLAB utilizing my system’s GPU. For the same input, the results are generally identical. However, in some cases, I notice minor variations in the decimal values of the output. Can anyone please help me understand why this is happening? I am running an algorithm in MATLAB utilizing my system’s GPU. For the same input, the results are generally identical. However, in some cases, I notice minor variations in the decimal values of the output. Can anyone please help me understand why this is happening? signal processing, electroencephalogram, artifact subspace reconstruction, gpu MATLAB Answers — New Questions