Month: July 2024
Microsoft Office 365 – Sorting data
I have a very large Excel spreadsheet, it has 16 columns and over 13,000 rows. I would like to know the easiest way to sort by column headers.
I have tried to format it as a table but Excel stops responding.
Thank you
I have a very large Excel spreadsheet, it has 16 columns and over 13,000 rows. I would like to know the easiest way to sort by column headers. I have tried to format it as a table but Excel stops responding. Thank you Read More
SUMIF function returning error message
I’m trying to use the function with the following formula:
=SUMIF(B2:B10,”Tanken”,C2:C10)
I keep getting the, “There’s a problem with this formula”, error message.
When I close the message, the formula is highlighted from B10 through C2.
I have no idea why. According to every tutorial I have watched, the format is correct.
Any help would be greatly appreciated.
I’m trying to use the function with the following formula:=SUMIF(B2:B10,”Tanken”,C2:C10)I keep getting the, “There’s a problem with this formula”, error message.When I close the message, the formula is highlighted from B10 through C2.I have no idea why. According to every tutorial I have watched, the format is correct.Any help would be greatly appreciated. Read More
Mac Legacy Outlook – Emails moves to Draft folder
Hi All,
Has anyone observed/faced an issue with the Legacy version of Outlook for MAC? When sending an email, it gets moved to the Draft folder with the Error “HTTP error. Access to the resource is forbidden. Mail could not be sent. The message has been moved to your Drafts folder.” But when you go to the Draft folder and resend it, it goes or even switches to a new outlook works perfectly fine.
Hi All, Has anyone observed/faced an issue with the Legacy version of Outlook for MAC? When sending an email, it gets moved to the Draft folder with the Error “HTTP error. Access to the resource is forbidden. Mail could not be sent. The message has been moved to your Drafts folder.” But when you go to the Draft folder and resend it, it goes or even switches to a new outlook works perfectly fine. Read More
Webcam with App Designer
Hi everyone!
I have an app that I have created in app designer in which I use the use of the web camera … when I want to do packaging it marks an error and loads me the following files:
Utility.p
webcam.m
webcaDataUtilityHelper.p
And the warning says : p-files cannot de analized for dependent filesHi everyone!
I have an app that I have created in app designer in which I use the use of the web camera … when I want to do packaging it marks an error and loads me the following files:
Utility.p
webcam.m
webcaDataUtilityHelper.p
And the warning says : p-files cannot de analized for dependent files Hi everyone!
I have an app that I have created in app designer in which I use the use of the web camera … when I want to do packaging it marks an error and loads me the following files:
Utility.p
webcam.m
webcaDataUtilityHelper.p
And the warning says : p-files cannot de analized for dependent files webcam appdesigner MATLAB Answers — New Questions
how to use GPU to run idNeuralStateSpace
Hi everyone,
I am trying to use Neural state space model to identify the state derivatives using only measurement data. The system that I use requires small sampling time which leads to the requirement of large training data. I want to use GPU while estimating nonlinear state-space model using the built-in function nlssest and idNeuralStateSpace. Do you mind letting me know how I can utilize the GPU while running the model?
Thank you.Hi everyone,
I am trying to use Neural state space model to identify the state derivatives using only measurement data. The system that I use requires small sampling time which leads to the requirement of large training data. I want to use GPU while estimating nonlinear state-space model using the built-in function nlssest and idNeuralStateSpace. Do you mind letting me know how I can utilize the GPU while running the model?
Thank you. Hi everyone,
I am trying to use Neural state space model to identify the state derivatives using only measurement data. The system that I use requires small sampling time which leads to the requirement of large training data. I want to use GPU while estimating nonlinear state-space model using the built-in function nlssest and idNeuralStateSpace. Do you mind letting me know how I can utilize the GPU while running the model?
Thank you. neural network, neural state space, idneuralstatespace, nlssest, deep learning MATLAB Answers — New Questions
agrupacion de datos de una tabla
Holas,
tengo una tabla ‘tData’ de tamano: 152709×14, que resume senal de varias variables de un instrumento de medicion (FTIR) y quisiera disminuir el ruido agrupando los valores de la senial en grupos de a 10 es decir obtener una nueva tabla ‘tDataReduced’ de un tamano 15270×14. la tabla tData cuenta con una columna de texto con el nombre de cada serie de medicion llamada ‘MeasID’, una columna de fecha y hora llamada ‘Time’ y 12 columnas con valores numericos.
Para este proposito, Estoy usando este codigo:
% (1) Crear un vector de índices para agrupar las filas en grupos de 10
indices = repelem(1:ceil(height(tData)/10), 10, 1);
indices = indices(1:height(tData));
% (2) Calcular el promedio de cada grupo de 10 filas
tDataReduced = grpstats(tData, indices, ‘mean’);
% (3) Eliminar la columna de índices generada por grpstats
tDataReduced(:, ‘GroupCount’) = [];
%%%%%%%%%%%%%%%%%%%5
Pero se tranca en el paso (2) indicando este error:
%*****************
Index exceeds the number of array elements. Index must not exceed 14.
Error in dsgrpstats (line 97)
[group,glabel,groupname] = mgrp2idx(a_data(groupvars),a_nobs);
Error in grpstats (line 144)
[varargout{1:nargout}] = dsgrpstats(x,group,whichstats,varargin{:});
%******************
Algunba idea que me pueda ayudar?Holas,
tengo una tabla ‘tData’ de tamano: 152709×14, que resume senal de varias variables de un instrumento de medicion (FTIR) y quisiera disminuir el ruido agrupando los valores de la senial en grupos de a 10 es decir obtener una nueva tabla ‘tDataReduced’ de un tamano 15270×14. la tabla tData cuenta con una columna de texto con el nombre de cada serie de medicion llamada ‘MeasID’, una columna de fecha y hora llamada ‘Time’ y 12 columnas con valores numericos.
Para este proposito, Estoy usando este codigo:
% (1) Crear un vector de índices para agrupar las filas en grupos de 10
indices = repelem(1:ceil(height(tData)/10), 10, 1);
indices = indices(1:height(tData));
% (2) Calcular el promedio de cada grupo de 10 filas
tDataReduced = grpstats(tData, indices, ‘mean’);
% (3) Eliminar la columna de índices generada por grpstats
tDataReduced(:, ‘GroupCount’) = [];
%%%%%%%%%%%%%%%%%%%5
Pero se tranca en el paso (2) indicando este error:
%*****************
Index exceeds the number of array elements. Index must not exceed 14.
Error in dsgrpstats (line 97)
[group,glabel,groupname] = mgrp2idx(a_data(groupvars),a_nobs);
Error in grpstats (line 144)
[varargout{1:nargout}] = dsgrpstats(x,group,whichstats,varargin{:});
%******************
Algunba idea que me pueda ayudar? Holas,
tengo una tabla ‘tData’ de tamano: 152709×14, que resume senal de varias variables de un instrumento de medicion (FTIR) y quisiera disminuir el ruido agrupando los valores de la senial en grupos de a 10 es decir obtener una nueva tabla ‘tDataReduced’ de un tamano 15270×14. la tabla tData cuenta con una columna de texto con el nombre de cada serie de medicion llamada ‘MeasID’, una columna de fecha y hora llamada ‘Time’ y 12 columnas con valores numericos.
Para este proposito, Estoy usando este codigo:
% (1) Crear un vector de índices para agrupar las filas en grupos de 10
indices = repelem(1:ceil(height(tData)/10), 10, 1);
indices = indices(1:height(tData));
% (2) Calcular el promedio de cada grupo de 10 filas
tDataReduced = grpstats(tData, indices, ‘mean’);
% (3) Eliminar la columna de índices generada por grpstats
tDataReduced(:, ‘GroupCount’) = [];
%%%%%%%%%%%%%%%%%%%5
Pero se tranca en el paso (2) indicando este error:
%*****************
Index exceeds the number of array elements. Index must not exceed 14.
Error in dsgrpstats (line 97)
[group,glabel,groupname] = mgrp2idx(a_data(groupvars),a_nobs);
Error in grpstats (line 144)
[varargout{1:nargout}] = dsgrpstats(x,group,whichstats,varargin{:});
%******************
Algunba idea que me pueda ayudar? statistics, table, grpstats, filter, signal processing MATLAB Answers — New Questions
ipados rd client hijacks keyboard shortcut
this issue is initially posted here: https://techcommunity.microsoft.com/t5/azure-virtual-desktop-feedback/ipados-rd-client-hijacks-keyboard-shortcut/idi-p/4187156
and somewhat expected it’s quickly marked as “close”. however, i need to emphasize again, this is a product design issue, not something can be “troubleshoot”ed.
No matter how much you love those macos/ios keyboard shortcuts, when you use the app to connect to a windows pc/vm, the user is expecting it to work as a windows pc, not having some shortcut hijacked to achieve the effect someone desired. it can be an option, but shouldn’t never be the default.
“as good as it supports hardware acceleration, the keyboard shortcut hijack is atrocious. all win key is hijacked to achieve some uninvited cmd-a c v x t thing in windows.
as a result almost all win key shortcuts now don’t work! to make it worse, even regular shortcut and single key doesn’t work like other app, it can be easily tested in blender, rendering the app completely useless.
also for who know what reason, even on keyboard that have pageup pagedown home end key, you need some very creative shortcut to achieve it, again, not an issue in other third party client.
the worst part is, after wreaking all the havoc, one would expect it hijack ios shortcut as well, but it doesn’t! if you press ctrl + space, that ios keyboard pops up revealing the now changed language.
can’t you just send the key as is?”
this issue is initially posted here: https://techcommunity.microsoft.com/t5/azure-virtual-desktop-feedback/ipados-rd-client-hijacks-keyboard-shortcut/idi-p/4187156 and somewhat expected it’s quickly marked as “close”. however, i need to emphasize again, this is a product design issue, not something can be “troubleshoot”ed. No matter how much you love those macos/ios keyboard shortcuts, when you use the app to connect to a windows pc/vm, the user is expecting it to work as a windows pc, not having some shortcut hijacked to achieve the effect someone desired. it can be an option, but shouldn’t never be the default. “as good as it supports hardware acceleration, the keyboard shortcut hijack is atrocious. all win key is hijacked to achieve some uninvited cmd-a c v x t thing in windows. as a result almost all win key shortcuts now don’t work! to make it worse, even regular shortcut and single key doesn’t work like other app, it can be easily tested in blender, rendering the app completely useless. also for who know what reason, even on keyboard that have pageup pagedown home end key, you need some very creative shortcut to achieve it, again, not an issue in other third party client. the worst part is, after wreaking all the havoc, one would expect it hijack ios shortcut as well, but it doesn’t! if you press ctrl + space, that ios keyboard pops up revealing the now changed language. can’t you just send the key as is?” Read More
How do i change my current domain
Hello
Please i need your help on this issue.
How do i change my current domain.
i want my current domain address to be change to Paul@inijobhxxx.com
Hello Please i need your help on this issue. How do i change my current domain. i want my current domain address to be change to Paul@inijobhxxx.com Read More
Physical keyboard not working
This issue is initially posted here: https://techcommunity.microsoft.com/t5/azure-virtual-desktop-feedback/physical-keyboard-not-working/idc-p/4194302#M3330
The origin post was closed and suggest to send it here
This issue is initially posted here: https://techcommunity.microsoft.com/t5/azure-virtual-desktop-feedback/physical-keyboard-not-working/idc-p/4194302#M3330 The origin post was closed and suggest to send it here Read More
stl to grid error
I tired to use above code to make grid [xgridvector,ygridvector,zheights] use for simscape grid surface.
when I use ‘terrain.stl’, it works well. But when I use ‘untitle.stl’ the resault shows like this. please help me T_T..
%%code starts here
[stlData, ~] = stlread(‘untitled.stl’);
vertices = stlData.vertices;
% %
[uniqueVertices, ~, ic] = unique(vertices(:, 1:2), ‘rows’);
averageZ = accumarray(ic, vertices(:, 3), [], @mean);
vertices = [uniqueVertices, averageZ];
xGridVector = linspace(min(vertices(:,1)), max(vertices(:,1)), 100);
yGridVector = linspace(min(vertices(:,2)), max(vertices(:,2)), 100);
[X, Y] = ndgrid(xGridVector, yGridVector);
F = scatteredInterpolant(vertices(:,1), vertices(:,2), vertices(:,3), ‘linear’, ‘none’);
ZHeights = F(X, Y);
ZHeights(isnan(ZHeights)) = min(vertices(:,3));
figure;
surf(X, Y, ZHeights);
title(‘Grid Surface from STL File’);
xlabel(‘X (meters)’);
ylabel(‘Y (meters)’);
zlabel(‘Z (meters)’);
grid on;
function [stlData, units] = stlread(filename)
fid = fopen(filename, ‘r’);
if fid == -1
error(‘File could not be opened, check name or path.’)
end
M = fread(fid, inf, ‘uint8=>uint8’);
fclose(fid);
[pathstr, name, ext] = fileparts(filename);
if strcmpi(ext, ‘.stl’) ~= 1
error(‘Filename must have a .stl extension’);
end
if isempty(M)
error(‘File is empty.’);
end
M = char(M’);
if (strncmp(M, ‘solid’, 5))
[stlData.vertices, stlData.faces, units] = stlReadAscii(filename);
else
[stlData.vertices, stlData.faces, units] = stlReadBinary(filename);
end
end
% ASCII 형식 STL 파일 읽기 (단순화된 예시)
function [vertices, faces, units] = stlReadAscii(filename)
fid = fopen(filename, ‘r’);
vertices = [];
while ~feof(fid)
line = fgetl(fid);
if startsWith(line, ‘vertex’)
vertex = sscanf(line, ‘vertex %f %f %f’);
vertices = [vertices; vertex’];
end
end
fclose(fid);
faces = reshape(1:size(vertices, 1), 3, [])’;
units = ‘mm’;
end
% Binary 형식 STL 파일 읽기 (단순화된 예시)
function [vertices, faces, units] = stlReadBinary(filename)
fid = fopen(filename, ‘rb’);
fseek(fid, 80, ‘bof’);
numFaces = fread(fid, 1, ‘uint32’);
faces = zeros(numFaces, 3);
vertices = zeros(numFaces*3, 3);
for i = 1:numFaces
fread(fid, 3, ‘float32’);
vertices((i-1)*3+1:i*3, 🙂 = fread(fid, [3, 3], ‘float32′)’;
fread(fid, 1, ‘uint16’);
faces(i, 🙂 = (i-1)*3+1:i*3;
end
fclose(fid);
units = ‘mm’;
endI tired to use above code to make grid [xgridvector,ygridvector,zheights] use for simscape grid surface.
when I use ‘terrain.stl’, it works well. But when I use ‘untitle.stl’ the resault shows like this. please help me T_T..
%%code starts here
[stlData, ~] = stlread(‘untitled.stl’);
vertices = stlData.vertices;
% %
[uniqueVertices, ~, ic] = unique(vertices(:, 1:2), ‘rows’);
averageZ = accumarray(ic, vertices(:, 3), [], @mean);
vertices = [uniqueVertices, averageZ];
xGridVector = linspace(min(vertices(:,1)), max(vertices(:,1)), 100);
yGridVector = linspace(min(vertices(:,2)), max(vertices(:,2)), 100);
[X, Y] = ndgrid(xGridVector, yGridVector);
F = scatteredInterpolant(vertices(:,1), vertices(:,2), vertices(:,3), ‘linear’, ‘none’);
ZHeights = F(X, Y);
ZHeights(isnan(ZHeights)) = min(vertices(:,3));
figure;
surf(X, Y, ZHeights);
title(‘Grid Surface from STL File’);
xlabel(‘X (meters)’);
ylabel(‘Y (meters)’);
zlabel(‘Z (meters)’);
grid on;
function [stlData, units] = stlread(filename)
fid = fopen(filename, ‘r’);
if fid == -1
error(‘File could not be opened, check name or path.’)
end
M = fread(fid, inf, ‘uint8=>uint8’);
fclose(fid);
[pathstr, name, ext] = fileparts(filename);
if strcmpi(ext, ‘.stl’) ~= 1
error(‘Filename must have a .stl extension’);
end
if isempty(M)
error(‘File is empty.’);
end
M = char(M’);
if (strncmp(M, ‘solid’, 5))
[stlData.vertices, stlData.faces, units] = stlReadAscii(filename);
else
[stlData.vertices, stlData.faces, units] = stlReadBinary(filename);
end
end
% ASCII 형식 STL 파일 읽기 (단순화된 예시)
function [vertices, faces, units] = stlReadAscii(filename)
fid = fopen(filename, ‘r’);
vertices = [];
while ~feof(fid)
line = fgetl(fid);
if startsWith(line, ‘vertex’)
vertex = sscanf(line, ‘vertex %f %f %f’);
vertices = [vertices; vertex’];
end
end
fclose(fid);
faces = reshape(1:size(vertices, 1), 3, [])’;
units = ‘mm’;
end
% Binary 형식 STL 파일 읽기 (단순화된 예시)
function [vertices, faces, units] = stlReadBinary(filename)
fid = fopen(filename, ‘rb’);
fseek(fid, 80, ‘bof’);
numFaces = fread(fid, 1, ‘uint32’);
faces = zeros(numFaces, 3);
vertices = zeros(numFaces*3, 3);
for i = 1:numFaces
fread(fid, 3, ‘float32’);
vertices((i-1)*3+1:i*3, 🙂 = fread(fid, [3, 3], ‘float32′)’;
fread(fid, 1, ‘uint16’);
faces(i, 🙂 = (i-1)*3+1:i*3;
end
fclose(fid);
units = ‘mm’;
end I tired to use above code to make grid [xgridvector,ygridvector,zheights] use for simscape grid surface.
when I use ‘terrain.stl’, it works well. But when I use ‘untitle.stl’ the resault shows like this. please help me T_T..
%%code starts here
[stlData, ~] = stlread(‘untitled.stl’);
vertices = stlData.vertices;
% %
[uniqueVertices, ~, ic] = unique(vertices(:, 1:2), ‘rows’);
averageZ = accumarray(ic, vertices(:, 3), [], @mean);
vertices = [uniqueVertices, averageZ];
xGridVector = linspace(min(vertices(:,1)), max(vertices(:,1)), 100);
yGridVector = linspace(min(vertices(:,2)), max(vertices(:,2)), 100);
[X, Y] = ndgrid(xGridVector, yGridVector);
F = scatteredInterpolant(vertices(:,1), vertices(:,2), vertices(:,3), ‘linear’, ‘none’);
ZHeights = F(X, Y);
ZHeights(isnan(ZHeights)) = min(vertices(:,3));
figure;
surf(X, Y, ZHeights);
title(‘Grid Surface from STL File’);
xlabel(‘X (meters)’);
ylabel(‘Y (meters)’);
zlabel(‘Z (meters)’);
grid on;
function [stlData, units] = stlread(filename)
fid = fopen(filename, ‘r’);
if fid == -1
error(‘File could not be opened, check name or path.’)
end
M = fread(fid, inf, ‘uint8=>uint8’);
fclose(fid);
[pathstr, name, ext] = fileparts(filename);
if strcmpi(ext, ‘.stl’) ~= 1
error(‘Filename must have a .stl extension’);
end
if isempty(M)
error(‘File is empty.’);
end
M = char(M’);
if (strncmp(M, ‘solid’, 5))
[stlData.vertices, stlData.faces, units] = stlReadAscii(filename);
else
[stlData.vertices, stlData.faces, units] = stlReadBinary(filename);
end
end
% ASCII 형식 STL 파일 읽기 (단순화된 예시)
function [vertices, faces, units] = stlReadAscii(filename)
fid = fopen(filename, ‘r’);
vertices = [];
while ~feof(fid)
line = fgetl(fid);
if startsWith(line, ‘vertex’)
vertex = sscanf(line, ‘vertex %f %f %f’);
vertices = [vertices; vertex’];
end
end
fclose(fid);
faces = reshape(1:size(vertices, 1), 3, [])’;
units = ‘mm’;
end
% Binary 형식 STL 파일 읽기 (단순화된 예시)
function [vertices, faces, units] = stlReadBinary(filename)
fid = fopen(filename, ‘rb’);
fseek(fid, 80, ‘bof’);
numFaces = fread(fid, 1, ‘uint32’);
faces = zeros(numFaces, 3);
vertices = zeros(numFaces*3, 3);
for i = 1:numFaces
fread(fid, 3, ‘float32’);
vertices((i-1)*3+1:i*3, 🙂 = fread(fid, [3, 3], ‘float32′)’;
fread(fid, 1, ‘uint16’);
faces(i, 🙂 = (i-1)*3+1:i*3;
end
fclose(fid);
units = ‘mm’;
end stl, grid, error, export MATLAB Answers — New Questions
Good evening, we have a point cloud and have applied an first rotation to align the point cloud along the y-axis. Now we have a problem with a second rotation
clear all
close all
clc
%%
movingReg=pcread(‘v65_ts40_repeatibility_four9.ply’);
figure, pcshow(movingReg), view([0 0 ]), axis on, xlabel(‘x [mm]’), ylabel(‘y [mm]’), zlabel(‘z [mm]’)
%% roi dove ci sono i quattro fori
roi = [360 540 -155 -130 40 115]; % DA CAD
indices = findPointsInROI(movingReg,roi);
ptCloudB = select(movingReg,indices);
figure, pcshow(ptCloudB)
%% punto medio della nuvola di punti
centro=[mean(ptCloudB.Location(:,1)) mean(ptCloudB.Location(:,2)) mean(ptCloudB.Location(:,3))];
%% codice dato da Paolo per l’allineamento della nuvola
XYZ=[ptCloudB.Location(:,1) ptCloudB.Location(:,2) ptCloudB.Location(:,3)];
xyz0=mean(XYZ,1);
A=XYZ-xyz0;
[~,~,V]=svd(A,0);
a=cross(V(:,3),[0;0;1]);
T=makehgtform(‘axisrotate’, a, -atan2(norm(a),V(3,3)));
R=T(1:3,1:3);
A_rot = A*R;
% A_rot_pt=pointCloud(A_rot);
A_rot_p(:,1)=A_rot(:,1);
A_rot_p(:,3)=A_rot(:,2);
A_rot_p(:,2)=A_rot(:,3);
A_rot_p=pointCloud(A_rot_p);
figure, pcshow(A_rot_p),axis on, xlabel(‘x [mm]’), ylabel(‘y [mm]’), zlabel(‘z [mm]’)
%% applico una seconda svd
XYZ2=[A_rot_p.Location(:,1) A_rot_p.Location(:,2) A_rot_p.Location(:,3)];
xyz0_2=mean(XYZ2,1);
A=XYZ2-xyz0_2;
[~,~,V]=svd(A,0);
a=cross(V(:,1),[0;1;0]);%cross(V(:,2),[0;1;0]);
% T=makehgtform(‘zrotate’, -atan2(norm(a),V(2,1)));
if (V(1,2))>0
T=makehgtform(‘axisrotate’, [0 1 0], -atan2(norm(a),V(1,2)));
else
T=makehgtform(‘axisrotate’, [0 1 0], -atan2(norm(a),-V(1,2)));
endclear all
close all
clc
%%
movingReg=pcread(‘v65_ts40_repeatibility_four9.ply’);
figure, pcshow(movingReg), view([0 0 ]), axis on, xlabel(‘x [mm]’), ylabel(‘y [mm]’), zlabel(‘z [mm]’)
%% roi dove ci sono i quattro fori
roi = [360 540 -155 -130 40 115]; % DA CAD
indices = findPointsInROI(movingReg,roi);
ptCloudB = select(movingReg,indices);
figure, pcshow(ptCloudB)
%% punto medio della nuvola di punti
centro=[mean(ptCloudB.Location(:,1)) mean(ptCloudB.Location(:,2)) mean(ptCloudB.Location(:,3))];
%% codice dato da Paolo per l’allineamento della nuvola
XYZ=[ptCloudB.Location(:,1) ptCloudB.Location(:,2) ptCloudB.Location(:,3)];
xyz0=mean(XYZ,1);
A=XYZ-xyz0;
[~,~,V]=svd(A,0);
a=cross(V(:,3),[0;0;1]);
T=makehgtform(‘axisrotate’, a, -atan2(norm(a),V(3,3)));
R=T(1:3,1:3);
A_rot = A*R;
% A_rot_pt=pointCloud(A_rot);
A_rot_p(:,1)=A_rot(:,1);
A_rot_p(:,3)=A_rot(:,2);
A_rot_p(:,2)=A_rot(:,3);
A_rot_p=pointCloud(A_rot_p);
figure, pcshow(A_rot_p),axis on, xlabel(‘x [mm]’), ylabel(‘y [mm]’), zlabel(‘z [mm]’)
%% applico una seconda svd
XYZ2=[A_rot_p.Location(:,1) A_rot_p.Location(:,2) A_rot_p.Location(:,3)];
xyz0_2=mean(XYZ2,1);
A=XYZ2-xyz0_2;
[~,~,V]=svd(A,0);
a=cross(V(:,1),[0;1;0]);%cross(V(:,2),[0;1;0]);
% T=makehgtform(‘zrotate’, -atan2(norm(a),V(2,1)));
if (V(1,2))>0
T=makehgtform(‘axisrotate’, [0 1 0], -atan2(norm(a),V(1,2)));
else
T=makehgtform(‘axisrotate’, [0 1 0], -atan2(norm(a),-V(1,2)));
end clear all
close all
clc
%%
movingReg=pcread(‘v65_ts40_repeatibility_four9.ply’);
figure, pcshow(movingReg), view([0 0 ]), axis on, xlabel(‘x [mm]’), ylabel(‘y [mm]’), zlabel(‘z [mm]’)
%% roi dove ci sono i quattro fori
roi = [360 540 -155 -130 40 115]; % DA CAD
indices = findPointsInROI(movingReg,roi);
ptCloudB = select(movingReg,indices);
figure, pcshow(ptCloudB)
%% punto medio della nuvola di punti
centro=[mean(ptCloudB.Location(:,1)) mean(ptCloudB.Location(:,2)) mean(ptCloudB.Location(:,3))];
%% codice dato da Paolo per l’allineamento della nuvola
XYZ=[ptCloudB.Location(:,1) ptCloudB.Location(:,2) ptCloudB.Location(:,3)];
xyz0=mean(XYZ,1);
A=XYZ-xyz0;
[~,~,V]=svd(A,0);
a=cross(V(:,3),[0;0;1]);
T=makehgtform(‘axisrotate’, a, -atan2(norm(a),V(3,3)));
R=T(1:3,1:3);
A_rot = A*R;
% A_rot_pt=pointCloud(A_rot);
A_rot_p(:,1)=A_rot(:,1);
A_rot_p(:,3)=A_rot(:,2);
A_rot_p(:,2)=A_rot(:,3);
A_rot_p=pointCloud(A_rot_p);
figure, pcshow(A_rot_p),axis on, xlabel(‘x [mm]’), ylabel(‘y [mm]’), zlabel(‘z [mm]’)
%% applico una seconda svd
XYZ2=[A_rot_p.Location(:,1) A_rot_p.Location(:,2) A_rot_p.Location(:,3)];
xyz0_2=mean(XYZ2,1);
A=XYZ2-xyz0_2;
[~,~,V]=svd(A,0);
a=cross(V(:,1),[0;1;0]);%cross(V(:,2),[0;1;0]);
% T=makehgtform(‘zrotate’, -atan2(norm(a),V(2,1)));
if (V(1,2))>0
T=makehgtform(‘axisrotate’, [0 1 0], -atan2(norm(a),V(1,2)));
else
T=makehgtform(‘axisrotate’, [0 1 0], -atan2(norm(a),-V(1,2)));
end point cloud, data rotation MATLAB Answers — New Questions
Reading ADC data from MSP430 to Matlab via serial port
My situation is
1. external ADC samples from one channel and transmit to Serial port Via Uart and then switches over to second channel to do same and then third.
2. I manage to view data in Hterm and it looked quite fine.
3. I want to plot it live in matlab- I know there are ways to do it but can someone here explain me a basic step by step to achieve my objective?
I have basic idea of what i should be doing
setup serial communication.
create array to store uart values
calculate voltage values
plot live values
It would be nice if someone points out me for where to look for point 2 and 4 specifically.My situation is
1. external ADC samples from one channel and transmit to Serial port Via Uart and then switches over to second channel to do same and then third.
2. I manage to view data in Hterm and it looked quite fine.
3. I want to plot it live in matlab- I know there are ways to do it but can someone here explain me a basic step by step to achieve my objective?
I have basic idea of what i should be doing
setup serial communication.
create array to store uart values
calculate voltage values
plot live values
It would be nice if someone points out me for where to look for point 2 and 4 specifically. My situation is
1. external ADC samples from one channel and transmit to Serial port Via Uart and then switches over to second channel to do same and then third.
2. I manage to view data in Hterm and it looked quite fine.
3. I want to plot it live in matlab- I know there are ways to do it but can someone here explain me a basic step by step to achieve my objective?
I have basic idea of what i should be doing
setup serial communication.
create array to store uart values
calculate voltage values
plot live values
It would be nice if someone points out me for where to look for point 2 and 4 specifically. msp430, adc, uart, serial MATLAB Answers — New Questions
Why am I unable to change the user on the Online Training Suite License?
Why am I unable to change the user on the Online Training Suite License?Why am I unable to change the user on the Online Training Suite License? Why am I unable to change the user on the Online Training Suite License? MATLAB Answers — New Questions
What happened to the monthly updates in the Public Sector Blog?
Haven’t seen a new “Microsoft 365 US Public Sector Roadmap Newsletter” in a while. It was a very valuable resource, compiling all the GCC updates in one centralized location.
Will it be continued?
Haven’t seen a new “Microsoft 365 US Public Sector Roadmap Newsletter” in a while. It was a very valuable resource, compiling all the GCC updates in one centralized location. Will it be continued? Read More
Handshake Failure in ASP.NET Core Web API on Ubuntu 22.04 LTS
I have an ASP.NET Core Web API that was working perfectly on my Windows machine. I needed to deploy it on an Ubuntu Linux 22.04 LTS server. I followed this guide.
The application runs and can be accessed through the browser using localhost:5169. in Linux However, when a client tries to fetch data using the Linux server’s IP address and port endpoint, it throws the following exception: I am using HTTP currently
Client Window app access then this exception shows in the terminal of Linux. If I use Client android app then it does not throw any exception it just says Time out.
fail: Microsoft.EntityFrameworkCore.Database.Connection[20004]
An error occurred using the connection to database ‘****’ on server ‘******’.
fail: Microsoft.EntityFrameworkCore.Query[10100]
An exception occurred while iterating over the results of a query for context type ‘****.ApiContext.apiContext’.
Microsoft.Data.SqlClient.SqlException (0x80131904): A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: SSL Provider, error: 31 – Encryption(ssl/tls) handshake failed)
—> System.IO.IOException: Received an unexpected EOF or 0 bytes from the transport stream……..
Microsoft.EntityFrameworkCore.SqlServer 8.0.2 (Installed)
Connection String
“ApiString”: “Data Source=DB***;Initial Catalog=***;User Id=user;Password=**********;Connect Timeout=30;Encrypt=false;TrustServerCertificate=true;Persist Security Info=false;Application Intent=ReadWrite;MultiSubnetFailover=false”
LaunchSettings.Json
“profiles”: {
“Image_catalogue”: {
“commandName”: “Project”,
“launchBrowser”: true,
“launchUrl”: “swagger”,
“environmentVariables”: {
“ASPNETCORE_ENVIRONMENT”: “Development”
},
“dotnetRunMessages”: true,
“applicationUrl”: “http://localhost:5169”,
“nativeDebugging”: false
},
Any assistance in resolving this issue would be greatly appreciated.
I have an ASP.NET Core Web API that was working perfectly on my Windows machine. I needed to deploy it on an Ubuntu Linux 22.04 LTS server. I followed this guide.The application runs and can be accessed through the browser using localhost:5169. in Linux However, when a client tries to fetch data using the Linux server’s IP address and port endpoint, it throws the following exception: I am using HTTP currentlyClient Window app access then this exception shows in the terminal of Linux. If I use Client android app then it does not throw any exception it just says Time out.fail: Microsoft.EntityFrameworkCore.Database.Connection[20004]
An error occurred using the connection to database ‘****’ on server ‘******’.
fail: Microsoft.EntityFrameworkCore.Query[10100]
An exception occurred while iterating over the results of a query for context type ‘****.ApiContext.apiContext’.
Microsoft.Data.SqlClient.SqlException (0x80131904): A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: SSL Provider, error: 31 – Encryption(ssl/tls) handshake failed)
—> System.IO.IOException: Received an unexpected EOF or 0 bytes from the transport stream……..Microsoft.EntityFrameworkCore.SqlServer 8.0.2 (Installed)Connection String”ApiString”: “Data Source=DB***;Initial Catalog=***;User Id=user;Password=**********;Connect Timeout=30;Encrypt=false;TrustServerCertificate=true;Persist Security Info=false;Application Intent=ReadWrite;MultiSubnetFailover=false”LaunchSettings.Json “profiles”: {
“Image_catalogue”: {
“commandName”: “Project”,
“launchBrowser”: true,
“launchUrl”: “swagger”,
“environmentVariables”: {
“ASPNETCORE_ENVIRONMENT”: “Development”
},
“dotnetRunMessages”: true,
“applicationUrl”: “http://localhost:5169”,
“nativeDebugging”: false
}, Any assistance in resolving this issue would be greatly appreciated. Read More
Shiftet values of omega in bode plot as result from generating idfrd() and tfest()
Hello,
i have a problem at the calculation / estimation of a transfer function when using frequency-domain data.
My task is to get the continious transfer function for further simulation from measured magnitude and phase response by an impedance analyser.
The quality of the estimated curve is ok, but the problem is that the curve is shifted in omega and i cannot observe the problem.
The frequency limits of the measured data are 20 Hz to 5000 Hz with the units (freq. [Hz], magn [-], phase [°]).
Figure 1 and Figrue 2 shows the magnitude and phase of the measured data.
In Figure 3 shows the bode plot with idfrd() / frd() and the estimated TF.
Here the values are shiftet.
What ist the problem in this case?
format short g
clear
matt = readmatrix(‘data.CSV’);
fre = matt(1:300,1);
frerad = fre.*(pi/180);
abso = matt(1:300,2);
absdb = 20*log10(abso);
phdeg = matt(1:300,3);
phrad = phdeg.*(pi/180);
% options = bodeoptions;
% options.FreqUnits = ‘Hz’;
figure(1)
semilogx(fre,absdb)
legend()
ylabel(‘magn. [dB]’)
xlabel(‘freq. [Hz]’)
grid()
figure(2)
semilogx(fre,phdeg)
ylabel(‘magn. [dB]’)
xlabel(‘freq. [Hz]’)
legend()
grid()
complexVector = abso.* exp(1j*phrad);
vect_mess = idfrd(complexVector,frerad,0);
% vect_mess = frd(complexVector,frerad);
tf_estimated = tfest(vect_mess,3)
figure(3)
bode(vect_mess,tf_estimated )
legend()
grid()Hello,
i have a problem at the calculation / estimation of a transfer function when using frequency-domain data.
My task is to get the continious transfer function for further simulation from measured magnitude and phase response by an impedance analyser.
The quality of the estimated curve is ok, but the problem is that the curve is shifted in omega and i cannot observe the problem.
The frequency limits of the measured data are 20 Hz to 5000 Hz with the units (freq. [Hz], magn [-], phase [°]).
Figure 1 and Figrue 2 shows the magnitude and phase of the measured data.
In Figure 3 shows the bode plot with idfrd() / frd() and the estimated TF.
Here the values are shiftet.
What ist the problem in this case?
format short g
clear
matt = readmatrix(‘data.CSV’);
fre = matt(1:300,1);
frerad = fre.*(pi/180);
abso = matt(1:300,2);
absdb = 20*log10(abso);
phdeg = matt(1:300,3);
phrad = phdeg.*(pi/180);
% options = bodeoptions;
% options.FreqUnits = ‘Hz’;
figure(1)
semilogx(fre,absdb)
legend()
ylabel(‘magn. [dB]’)
xlabel(‘freq. [Hz]’)
grid()
figure(2)
semilogx(fre,phdeg)
ylabel(‘magn. [dB]’)
xlabel(‘freq. [Hz]’)
legend()
grid()
complexVector = abso.* exp(1j*phrad);
vect_mess = idfrd(complexVector,frerad,0);
% vect_mess = frd(complexVector,frerad);
tf_estimated = tfest(vect_mess,3)
figure(3)
bode(vect_mess,tf_estimated )
legend()
grid() Hello,
i have a problem at the calculation / estimation of a transfer function when using frequency-domain data.
My task is to get the continious transfer function for further simulation from measured magnitude and phase response by an impedance analyser.
The quality of the estimated curve is ok, but the problem is that the curve is shifted in omega and i cannot observe the problem.
The frequency limits of the measured data are 20 Hz to 5000 Hz with the units (freq. [Hz], magn [-], phase [°]).
Figure 1 and Figrue 2 shows the magnitude and phase of the measured data.
In Figure 3 shows the bode plot with idfrd() / frd() and the estimated TF.
Here the values are shiftet.
What ist the problem in this case?
format short g
clear
matt = readmatrix(‘data.CSV’);
fre = matt(1:300,1);
frerad = fre.*(pi/180);
abso = matt(1:300,2);
absdb = 20*log10(abso);
phdeg = matt(1:300,3);
phrad = phdeg.*(pi/180);
% options = bodeoptions;
% options.FreqUnits = ‘Hz’;
figure(1)
semilogx(fre,absdb)
legend()
ylabel(‘magn. [dB]’)
xlabel(‘freq. [Hz]’)
grid()
figure(2)
semilogx(fre,phdeg)
ylabel(‘magn. [dB]’)
xlabel(‘freq. [Hz]’)
legend()
grid()
complexVector = abso.* exp(1j*phrad);
vect_mess = idfrd(complexVector,frerad,0);
% vect_mess = frd(complexVector,frerad);
tf_estimated = tfest(vect_mess,3)
figure(3)
bode(vect_mess,tf_estimated )
legend()
grid() transfer function, estimation tfest MATLAB Answers — New Questions
After completing Matlab onramp my progress bar keeps changing back to 87% with some modules saying they aren’t completed after recieving a certificate with 100% completion.
I have completed the Matlab onramp and recieved a certificate saying 100% complettion, despite issues with the website proccessing this it finally went through. After returning to the MathWorks site to link my certificate to linkedin my progress has gone back down to 87% saying that some modules are incomplete- with the effect of reducing the progress score on my certificate down to 87%.I have completed the Matlab onramp and recieved a certificate saying 100% complettion, despite issues with the website proccessing this it finally went through. After returning to the MathWorks site to link my certificate to linkedin my progress has gone back down to 87% saying that some modules are incomplete- with the effect of reducing the progress score on my certificate down to 87%. I have completed the Matlab onramp and recieved a certificate saying 100% complettion, despite issues with the website proccessing this it finally went through. After returning to the MathWorks site to link my certificate to linkedin my progress has gone back down to 87% saying that some modules are incomplete- with the effect of reducing the progress score on my certificate down to 87%. onramp MATLAB Answers — New Questions
Autopilot fresh start wifi issue
Hello,
I get sometime computer who are fresh start are not connecting automatically to the SSID. i dont know where to check to validate that. If you have any idea let me know.
Hello, I get sometime computer who are fresh start are not connecting automatically to the SSID. i dont know where to check to validate that. If you have any idea let me know. Read More
Need advance notice and staging site for Partner Center API partners
We had an outage earlier this week due to a Partner Center API change that caused our CSP marketplace to no longer work. Can we please ask that the PC API engineering team adopt professional devops processes and a) communicate in advance when a change is being made, and b) provide a staging site that partners can test their API integration applications before the API changes are pushed to production?
We had an outage earlier this week due to a Partner Center API change that caused our CSP marketplace to no longer work. Can we please ask that the PC API engineering team adopt professional devops processes and a) communicate in advance when a change is being made, and b) provide a staging site that partners can test their API integration applications before the API changes are pushed to production? Read More
Can not use Set-OrganizationConfig powershell command in Exchange Online
Hi there.
I am faced with a strange problem: When I try to use: “Set-OrganizationConfig” in Exchange Online, I can not use any parameteres (autocomplete for the parameteres does not work).
If I paste a complete command I get this Error:
“Unable to find type [uint].”
Confirmed on two tenants, multiple computers and PowerShell module is updated to latest version.
Can any one confirm this or know if there is a solution.
Hi there. I am faced with a strange problem: When I try to use: “Set-OrganizationConfig” in Exchange Online, I can not use any parameteres (autocomplete for the parameteres does not work). If I paste a complete command I get this Error: “Unable to find type [uint].”Confirmed on two tenants, multiple computers and PowerShell module is updated to latest version.Can any one confirm this or know if there is a solution. Read More