Author: PuTI
Print windows in matlab
Hi
I was making an application using GUIDE in matlab, my interface uses uicontrols, tables, and images, I’m trying how to print the whole information in the GUI application, i.e. the whole window but I cannot print it using the _print_ command. Is it possible to print or export as file the active window?Hi
I was making an application using GUIDE in matlab, my interface uses uicontrols, tables, and images, I’m trying how to print the whole information in the GUI application, i.e. the whole window but I cannot print it using the _print_ command. Is it possible to print or export as file the active window? Hi
I was making an application using GUIDE in matlab, my interface uses uicontrols, tables, and images, I’m trying how to print the whole information in the GUI application, i.e. the whole window but I cannot print it using the _print_ command. Is it possible to print or export as file the active window? guide, gui, print MATLAB Answers — New Questions
What does the sim(‘model’,[0 1]) do in the 2011a Matlab syntax
What does the array [0 1] do in the "sim(‘model’,[0 1]) command of an old simulink model, 2011-ish?What does the array [0 1] do in the "sim(‘model’,[0 1]) command of an old simulink model, 2011-ish? What does the array [0 1] do in the "sim(‘model’,[0 1]) command of an old simulink model, 2011-ish? array input to sim function MATLAB Answers — New Questions
3D radiation pattern / array factor of planar array in cylindrical coordinates
Dear MatLab Central Community,
I would like to plot the 3D array factor of a planar (2D) antenna array in cylindrical coordinates.
I have calculated the array factor in spherical coordinates AF(theta, phi) and I can easily plot it in spherical coordinates (using
[x,y,z] = sph2cart(THETA,PHI,R)
for coordinate conversion and then "surf(x,y,z)" or "mesh(x,y,z)" for 3D plotting), but I do not know how to do that in cylindrical coordinates.
In other words, I want the domain of the 2D function on the xy plane to be a grid in RHO, THETA and for each point plot the Z = AF value.
I tried to use other coordinate transformations but I did not manage to do that.
Thank you very much for any help.Dear MatLab Central Community,
I would like to plot the 3D array factor of a planar (2D) antenna array in cylindrical coordinates.
I have calculated the array factor in spherical coordinates AF(theta, phi) and I can easily plot it in spherical coordinates (using
[x,y,z] = sph2cart(THETA,PHI,R)
for coordinate conversion and then "surf(x,y,z)" or "mesh(x,y,z)" for 3D plotting), but I do not know how to do that in cylindrical coordinates.
In other words, I want the domain of the 2D function on the xy plane to be a grid in RHO, THETA and for each point plot the Z = AF value.
I tried to use other coordinate transformations but I did not manage to do that.
Thank you very much for any help. Dear MatLab Central Community,
I would like to plot the 3D array factor of a planar (2D) antenna array in cylindrical coordinates.
I have calculated the array factor in spherical coordinates AF(theta, phi) and I can easily plot it in spherical coordinates (using
[x,y,z] = sph2cart(THETA,PHI,R)
for coordinate conversion and then "surf(x,y,z)" or "mesh(x,y,z)" for 3D plotting), but I do not know how to do that in cylindrical coordinates.
In other words, I want the domain of the 2D function on the xy plane to be a grid in RHO, THETA and for each point plot the Z = AF value.
I tried to use other coordinate transformations but I did not manage to do that.
Thank you very much for any help. radiation pattern, 3d plots, array factor, cylindrical coordinates, cylindrical, antenna array, antenna pattern MATLAB Answers — New Questions
MacriumRescue.iso is not the only bootable .iso file that provides Wi-Fi access. There are other boo
It’s important to note that most bootable ISO programs are designed to run independently of the operating system installed on a computer, which means they may not support all hardware components, including Wi-Fi devices. However, some specialized bootable ISOs do include Wi-Fi drivers and tools that allow for internet connectivity.
Regarding anti-malware utilities that can go online to update their database or use the cloud for real-time protection, there are a few options available. One popular choice is Kaspersky Rescue Disk, which includes network capabilities and can be used to update its virus definitions online. Similarly, AVG Rescue CD and Bitdefender Rescue CD also offer internet connectivity for updating their databases.
As for MR’s ISO, if it has the ability to go online, it may be possible to run external programs or download additional tools, depending on the specific features included in the ISO. It’s recommended to review the documentation or guidelines provided by the creator of the ISO to understand its capabilities in more detail.
It’s important to note that most bootable ISO programs are designed to run independently of the operating system installed on a computer, which means they may not support all hardware components, including Wi-Fi devices. However, some specialized bootable ISOs do include Wi-Fi drivers and tools that allow for internet connectivity. Regarding anti-malware utilities that can go online to update their database or use the cloud for real-time protection, there are a few options available. One popular choice is Kaspersky Rescue Disk, which includes network capabilities and can be used to update its virus definitions online. Similarly, AVG Rescue CD and Bitdefender Rescue CD also offer internet connectivity for updating their databases. As for MR’s ISO, if it has the ability to go online, it may be possible to run external programs or download additional tools, depending on the specific features included in the ISO. It’s recommended to review the documentation or guidelines provided by the creator of the ISO to understand its capabilities in more detail. Read More
If the system tray is not auto-hiding as it should, you can try the following solutions:1. Check the
It seems like you’re experiencing an issue with the system tray or taskbar not auto-hiding on your HP Envy x360. This can be quite frustrating when you need all of the screen space. Here are some troubleshooting steps you can try to resolve this issue:
1. Restart your computer: Sometimes, a simple restart can fix temporary glitches or issues with the taskbar auto-hide feature.
2. Check the taskbar settings: Right-click on the taskbar, select “Taskbar settings”, and make sure that the “Automatically hide the taskbar in desktop mode” option is turned on.
3. Update your operating system: Make sure that your Windows operating system is up to date with the latest updates and patches. Sometimes, software updates can fix bugs or issues related to the taskbar.
4. Check for third-party applications: Certain third-party applications or software can interfere with the taskbar’s auto-hide feature. Try disabling any recently installed apps to see if the issue is resolved.
5. System maintenance: Perform system maintenance tasks such as disk cleanup, clearing cache files, and checking for malware or viruses that could be causing the issue.
If none of these steps resolve the problem, you may need to seek further assistance from HP support or a technical professional to diagnose and fix the issue on your HP Envy x360.
It seems like you’re experiencing an issue with the system tray or taskbar not auto-hiding on your HP Envy x360. This can be quite frustrating when you need all of the screen space. Here are some troubleshooting steps you can try to resolve this issue: 1. Restart your computer: Sometimes, a simple restart can fix temporary glitches or issues with the taskbar auto-hide feature. 2. Check the taskbar settings: Right-click on the taskbar, select “Taskbar settings”, and make sure that the “Automatically hide the taskbar in desktop mode” option is turned on. 3. Update your operating system: Make sure that your Windows operating system is up to date with the latest updates and patches. Sometimes, software updates can fix bugs or issues related to the taskbar. 4. Check for third-party applications: Certain third-party applications or software can interfere with the taskbar’s auto-hide feature. Try disabling any recently installed apps to see if the issue is resolved. 5. System maintenance: Perform system maintenance tasks such as disk cleanup, clearing cache files, and checking for malware or viruses that could be causing the issue. If none of these steps resolve the problem, you may need to seek further assistance from HP support or a technical professional to diagnose and fix the issue on your HP Envy x360. Read More
Using symbolic solver, I seem to not be able to get a system of equations that give me a desired answer. Does a solution not exist?
syms V1 V2 Vp Vn Vxp Vxn Vpx Vnx
syms Rp Rx Rn positive
Ison=((Vp/((Rp*68220)/(Rp+68220)))-(Vxp/((Rx*68220)/(Rx+68220))));
equ1=Vp==(V1+V2)-Ison*Rn;
Isop=((Vn/((Rn*68220)/(Rn+68220)))-(Vxn/((Rx*68220)/(Rx+68220))));
equ2=Vn==(V1+V2)-Isop*Rp;
Isox=((Vnx/((Rn*68220)/(Rn+68220)))-(Vpx/((Rp*68220)/(Rp+68220))));
equ3= Vpx==V1+Rx*Isox;
[Rn, Rp, Rx] = solve([equ1, equ2,equ3],[Rn , Rp, Rx]);
simplify(Rn)
simplify(Rp)
simplify(Rx)
Rn=vpa(subs(Rn,{V1,V2,Vp,Vn,Vxp,Vxn,Vpx,Vnx},{270,270,144.56868,147.38892,125.43132,122.61108,268.58987,271.41013}))
Rp=vpa(subs(Rp,{V1,V2,Vp,Vn,Vxp,Vxn,Vpx,Vnx},{270,270,144.56868,147.38892,125.43132,122.61108,268.58987,271.41013}))
Rx=vpa(subs(Rx,{V1,V2,Vp,Vn,Vxp,Vxn,Vpx,Vnx},{270,270,144.56868,147.38892,125.43132,122.61108,268.58987,271.41013}))
So I am trying to find values for Rn,Rx and Rp. I have three equations and three unknowns. When I use solve to find symbolic equation, I get equations for each variable. But when I sub real values in, I get an answer that is wrong or doesnt make sense. Adding assume doesnt seem to change anything and the return conditions is the same as the equations. The real values of Rn, Rp and Rx should be 2e6,1.5e6 and 700k. If you were to put these values in the original equations, you can verify that these values are correct. How do I get a system of equations that will give me the desired answer?syms V1 V2 Vp Vn Vxp Vxn Vpx Vnx
syms Rp Rx Rn positive
Ison=((Vp/((Rp*68220)/(Rp+68220)))-(Vxp/((Rx*68220)/(Rx+68220))));
equ1=Vp==(V1+V2)-Ison*Rn;
Isop=((Vn/((Rn*68220)/(Rn+68220)))-(Vxn/((Rx*68220)/(Rx+68220))));
equ2=Vn==(V1+V2)-Isop*Rp;
Isox=((Vnx/((Rn*68220)/(Rn+68220)))-(Vpx/((Rp*68220)/(Rp+68220))));
equ3= Vpx==V1+Rx*Isox;
[Rn, Rp, Rx] = solve([equ1, equ2,equ3],[Rn , Rp, Rx]);
simplify(Rn)
simplify(Rp)
simplify(Rx)
Rn=vpa(subs(Rn,{V1,V2,Vp,Vn,Vxp,Vxn,Vpx,Vnx},{270,270,144.56868,147.38892,125.43132,122.61108,268.58987,271.41013}))
Rp=vpa(subs(Rp,{V1,V2,Vp,Vn,Vxp,Vxn,Vpx,Vnx},{270,270,144.56868,147.38892,125.43132,122.61108,268.58987,271.41013}))
Rx=vpa(subs(Rx,{V1,V2,Vp,Vn,Vxp,Vxn,Vpx,Vnx},{270,270,144.56868,147.38892,125.43132,122.61108,268.58987,271.41013}))
So I am trying to find values for Rn,Rx and Rp. I have three equations and three unknowns. When I use solve to find symbolic equation, I get equations for each variable. But when I sub real values in, I get an answer that is wrong or doesnt make sense. Adding assume doesnt seem to change anything and the return conditions is the same as the equations. The real values of Rn, Rp and Rx should be 2e6,1.5e6 and 700k. If you were to put these values in the original equations, you can verify that these values are correct. How do I get a system of equations that will give me the desired answer? syms V1 V2 Vp Vn Vxp Vxn Vpx Vnx
syms Rp Rx Rn positive
Ison=((Vp/((Rp*68220)/(Rp+68220)))-(Vxp/((Rx*68220)/(Rx+68220))));
equ1=Vp==(V1+V2)-Ison*Rn;
Isop=((Vn/((Rn*68220)/(Rn+68220)))-(Vxn/((Rx*68220)/(Rx+68220))));
equ2=Vn==(V1+V2)-Isop*Rp;
Isox=((Vnx/((Rn*68220)/(Rn+68220)))-(Vpx/((Rp*68220)/(Rp+68220))));
equ3= Vpx==V1+Rx*Isox;
[Rn, Rp, Rx] = solve([equ1, equ2,equ3],[Rn , Rp, Rx]);
simplify(Rn)
simplify(Rp)
simplify(Rx)
Rn=vpa(subs(Rn,{V1,V2,Vp,Vn,Vxp,Vxn,Vpx,Vnx},{270,270,144.56868,147.38892,125.43132,122.61108,268.58987,271.41013}))
Rp=vpa(subs(Rp,{V1,V2,Vp,Vn,Vxp,Vxn,Vpx,Vnx},{270,270,144.56868,147.38892,125.43132,122.61108,268.58987,271.41013}))
Rx=vpa(subs(Rx,{V1,V2,Vp,Vn,Vxp,Vxn,Vpx,Vnx},{270,270,144.56868,147.38892,125.43132,122.61108,268.58987,271.41013}))
So I am trying to find values for Rn,Rx and Rp. I have three equations and three unknowns. When I use solve to find symbolic equation, I get equations for each variable. But when I sub real values in, I get an answer that is wrong or doesnt make sense. Adding assume doesnt seem to change anything and the return conditions is the same as the equations. The real values of Rn, Rp and Rx should be 2e6,1.5e6 and 700k. If you were to put these values in the original equations, you can verify that these values are correct. How do I get a system of equations that will give me the desired answer? solve, symbolic MATLAB Answers — New Questions
filtfilt provides excessive transient
I observed that ‘filtfilt’ suffers from an undesired behavior when I provide IIR bandpass filters having steep transition bands. Specifically, the output signal exhibits excessive transient response; nevertheless, this behaviour does not emerge if I use a ‘home-made’ version of zerophase filtering based on ‘filter’. I guess that it is not a numerical issue involving the filter coefficients or structure, nor the ‘filter’ function.
% design bandpass filter having transition bandwidth of 200 Hz (Fs = 8000)
bp = designfilt(‘bandpassiir’, ‘StopbandFrequency1’, 50, ‘PassbandFrequency1’, 250,…
‘PassbandFrequency2’, 3600, ‘StopbandFrequency2’, 3700, ‘StopbandAttenuation1’, 30,…
‘PassbandRipple’, 0.1, ‘StopbandAttenuation2’, 30, ‘SampleRate’, 8000, ‘DesignMethod’, ‘cheby2’);
% check stability
assert(isstable(bp),’Unstable filter’);
% apply filtfilt to a random (white) long input signal; output signal shows an undesirable transient
x = randn(2^20,1);
y = filtfilt(bp,x);
% apply ‘home-made’ filtfilt to the same input; output signal shows a more accptable transient
y2 = flipud(filter(bp,flipud(filter(bp,x))));
% compare effects
figure; semilogy(abs(y-y2));
As a rule of thumb, the effect grows as the transition bands get narrower, while it tends to vanish as they get broader.
Where is the problem? Have I missed some recommendations or hints in the function’s help?I observed that ‘filtfilt’ suffers from an undesired behavior when I provide IIR bandpass filters having steep transition bands. Specifically, the output signal exhibits excessive transient response; nevertheless, this behaviour does not emerge if I use a ‘home-made’ version of zerophase filtering based on ‘filter’. I guess that it is not a numerical issue involving the filter coefficients or structure, nor the ‘filter’ function.
% design bandpass filter having transition bandwidth of 200 Hz (Fs = 8000)
bp = designfilt(‘bandpassiir’, ‘StopbandFrequency1’, 50, ‘PassbandFrequency1’, 250,…
‘PassbandFrequency2’, 3600, ‘StopbandFrequency2’, 3700, ‘StopbandAttenuation1’, 30,…
‘PassbandRipple’, 0.1, ‘StopbandAttenuation2’, 30, ‘SampleRate’, 8000, ‘DesignMethod’, ‘cheby2’);
% check stability
assert(isstable(bp),’Unstable filter’);
% apply filtfilt to a random (white) long input signal; output signal shows an undesirable transient
x = randn(2^20,1);
y = filtfilt(bp,x);
% apply ‘home-made’ filtfilt to the same input; output signal shows a more accptable transient
y2 = flipud(filter(bp,flipud(filter(bp,x))));
% compare effects
figure; semilogy(abs(y-y2));
As a rule of thumb, the effect grows as the transition bands get narrower, while it tends to vanish as they get broader.
Where is the problem? Have I missed some recommendations or hints in the function’s help? I observed that ‘filtfilt’ suffers from an undesired behavior when I provide IIR bandpass filters having steep transition bands. Specifically, the output signal exhibits excessive transient response; nevertheless, this behaviour does not emerge if I use a ‘home-made’ version of zerophase filtering based on ‘filter’. I guess that it is not a numerical issue involving the filter coefficients or structure, nor the ‘filter’ function.
% design bandpass filter having transition bandwidth of 200 Hz (Fs = 8000)
bp = designfilt(‘bandpassiir’, ‘StopbandFrequency1’, 50, ‘PassbandFrequency1’, 250,…
‘PassbandFrequency2’, 3600, ‘StopbandFrequency2’, 3700, ‘StopbandAttenuation1’, 30,…
‘PassbandRipple’, 0.1, ‘StopbandAttenuation2’, 30, ‘SampleRate’, 8000, ‘DesignMethod’, ‘cheby2’);
% check stability
assert(isstable(bp),’Unstable filter’);
% apply filtfilt to a random (white) long input signal; output signal shows an undesirable transient
x = randn(2^20,1);
y = filtfilt(bp,x);
% apply ‘home-made’ filtfilt to the same input; output signal shows a more accptable transient
y2 = flipud(filter(bp,flipud(filter(bp,x))));
% compare effects
figure; semilogy(abs(y-y2));
As a rule of thumb, the effect grows as the transition bands get narrower, while it tends to vanish as they get broader.
Where is the problem? Have I missed some recommendations or hints in the function’s help? filtfilt, numerical stability, transient effects MATLAB Answers — New Questions
Reading Bytes from Arduino to MATLAB
I’ve been trying to read data from ESP32S-Dev module to MATLAB sending over the data in bytes to make the transmission quicker. As seen below, I convert float data into bytes and then write the data. MATLAB sees the data and then creates a 1×8 array for each float value instead of just 1 value for each float. I’ve tried other methods, shown in 2nd part of MATLAB code, and it creates 1 value for each float but their wildly off (7-34 orders of magnitude)
I’ve tried different baud rates and even asked for help from the almighty ChatGPT but have not been able to crack the code. Any thoughts.
Arduino IDE code:
#include <SPI.h>
const int CS_SiPM_pot = 34;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200); //Starting
delay(1000);
SPI.begin();
pinMode(CS_SiPM_pot, OUTPUT);
}
void loop() {
for (int d_pot2 = 55; d_pot2 <= 55; d_pot2 = d_pot2 + 1) //57
{
digitalWrite(CS_SiPM_pot, LOW); //LOW
delay(10); //10
SPI.transfer(d_pot2);
digitalWrite(CS_SiPM_pot, HIGH);
// put your main code here, to run repeatedly:
float newTmp[4] = { 01.00, 02.00, 03.00, 04.00 };
for (int i = 0; i < 4; i++) {
byte *byteData = (byte *)&newTmp[i];
Serial.write(byteData, sizeof(float)); // Send each float as 4 bytes
delay(10);
}
}
}
MATLAB code:
esp = serialport(‘COM5’,152000);
%%
flush(esp)
% Read 16 bytes of data (4 floats * 4 bytes per float)
numBytes = 16;
data = read(esp, numBytes, ‘uint8’);
% Convert each 4-byte sequence to a float
float1 = typecast(data(1:4)), ‘single’);
float2 = typecast(data(5:8), ‘single’);
float3 = typecast(data(9:12), ‘single’);
float4 = typecast(data(13:16), ‘single’);
disp([float1, float2, float3, float4]);
% Convert the bytes back to float values
floatValues = typecast(uint8(data), ‘single’);
% Display the result
disp(‘Float values:’);
disp(floatValues);
disp(‘Raw bytes received:’);
disp(data); % Print the raw bytes
Results from MATLAB:
Float1: 0 0 0 0 0 0 0 0
Float2: 0 3.7480 0 0 0 0 0 0
Float3: 0 2.1250 0 3.7480 0 0 0 0
Float4: 0 0 0 0 0 3.7480 0 0
data: 0 0 0 0 255 0 0 0 3 255 0 0 0 0 255 0I’ve been trying to read data from ESP32S-Dev module to MATLAB sending over the data in bytes to make the transmission quicker. As seen below, I convert float data into bytes and then write the data. MATLAB sees the data and then creates a 1×8 array for each float value instead of just 1 value for each float. I’ve tried other methods, shown in 2nd part of MATLAB code, and it creates 1 value for each float but their wildly off (7-34 orders of magnitude)
I’ve tried different baud rates and even asked for help from the almighty ChatGPT but have not been able to crack the code. Any thoughts.
Arduino IDE code:
#include <SPI.h>
const int CS_SiPM_pot = 34;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200); //Starting
delay(1000);
SPI.begin();
pinMode(CS_SiPM_pot, OUTPUT);
}
void loop() {
for (int d_pot2 = 55; d_pot2 <= 55; d_pot2 = d_pot2 + 1) //57
{
digitalWrite(CS_SiPM_pot, LOW); //LOW
delay(10); //10
SPI.transfer(d_pot2);
digitalWrite(CS_SiPM_pot, HIGH);
// put your main code here, to run repeatedly:
float newTmp[4] = { 01.00, 02.00, 03.00, 04.00 };
for (int i = 0; i < 4; i++) {
byte *byteData = (byte *)&newTmp[i];
Serial.write(byteData, sizeof(float)); // Send each float as 4 bytes
delay(10);
}
}
}
MATLAB code:
esp = serialport(‘COM5’,152000);
%%
flush(esp)
% Read 16 bytes of data (4 floats * 4 bytes per float)
numBytes = 16;
data = read(esp, numBytes, ‘uint8’);
% Convert each 4-byte sequence to a float
float1 = typecast(data(1:4)), ‘single’);
float2 = typecast(data(5:8), ‘single’);
float3 = typecast(data(9:12), ‘single’);
float4 = typecast(data(13:16), ‘single’);
disp([float1, float2, float3, float4]);
% Convert the bytes back to float values
floatValues = typecast(uint8(data), ‘single’);
% Display the result
disp(‘Float values:’);
disp(floatValues);
disp(‘Raw bytes received:’);
disp(data); % Print the raw bytes
Results from MATLAB:
Float1: 0 0 0 0 0 0 0 0
Float2: 0 3.7480 0 0 0 0 0 0
Float3: 0 2.1250 0 3.7480 0 0 0 0
Float4: 0 0 0 0 0 3.7480 0 0
data: 0 0 0 0 255 0 0 0 3 255 0 0 0 0 255 0 I’ve been trying to read data from ESP32S-Dev module to MATLAB sending over the data in bytes to make the transmission quicker. As seen below, I convert float data into bytes and then write the data. MATLAB sees the data and then creates a 1×8 array for each float value instead of just 1 value for each float. I’ve tried other methods, shown in 2nd part of MATLAB code, and it creates 1 value for each float but their wildly off (7-34 orders of magnitude)
I’ve tried different baud rates and even asked for help from the almighty ChatGPT but have not been able to crack the code. Any thoughts.
Arduino IDE code:
#include <SPI.h>
const int CS_SiPM_pot = 34;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200); //Starting
delay(1000);
SPI.begin();
pinMode(CS_SiPM_pot, OUTPUT);
}
void loop() {
for (int d_pot2 = 55; d_pot2 <= 55; d_pot2 = d_pot2 + 1) //57
{
digitalWrite(CS_SiPM_pot, LOW); //LOW
delay(10); //10
SPI.transfer(d_pot2);
digitalWrite(CS_SiPM_pot, HIGH);
// put your main code here, to run repeatedly:
float newTmp[4] = { 01.00, 02.00, 03.00, 04.00 };
for (int i = 0; i < 4; i++) {
byte *byteData = (byte *)&newTmp[i];
Serial.write(byteData, sizeof(float)); // Send each float as 4 bytes
delay(10);
}
}
}
MATLAB code:
esp = serialport(‘COM5’,152000);
%%
flush(esp)
% Read 16 bytes of data (4 floats * 4 bytes per float)
numBytes = 16;
data = read(esp, numBytes, ‘uint8’);
% Convert each 4-byte sequence to a float
float1 = typecast(data(1:4)), ‘single’);
float2 = typecast(data(5:8), ‘single’);
float3 = typecast(data(9:12), ‘single’);
float4 = typecast(data(13:16), ‘single’);
disp([float1, float2, float3, float4]);
% Convert the bytes back to float values
floatValues = typecast(uint8(data), ‘single’);
% Display the result
disp(‘Float values:’);
disp(floatValues);
disp(‘Raw bytes received:’);
disp(data); % Print the raw bytes
Results from MATLAB:
Float1: 0 0 0 0 0 0 0 0
Float2: 0 3.7480 0 0 0 0 0 0
Float3: 0 2.1250 0 3.7480 0 0 0 0
Float4: 0 0 0 0 0 3.7480 0 0
data: 0 0 0 0 255 0 0 0 3 255 0 0 0 0 255 0 arduino, esp32, matlab, serialport, float-to-bytes MATLAB Answers — New Questions
When the orientation of the object changed, how to measure the force on each support point?
Thank you for your interest in my question.
If we assume that there is a box with x, y, z-axis lengths of [1, 0.5, 0.2] (m) , weight is m=100kg,
and set the center point as the origin frame. At this time, if we support the force of m*g/4 at each of the four points [0.5, 0.25, -0.1], [0.5, -0.25, -0.1], [-0.5, -0.25, -0.1], [-0.5, 0.25, -0.1], the object will stay statically.
Then, if the box rotates 30 degrees about the x-axis, I can’t measure the force applied at the four corners of the box.
As the box rotates, the coordinate frame of the corner also rotates.
If the box rotates 45 degrees for y-axis after rotating 30 degree for the x-axis,
how should we apply force to each point so that the box stays still?Thank you for your interest in my question.
If we assume that there is a box with x, y, z-axis lengths of [1, 0.5, 0.2] (m) , weight is m=100kg,
and set the center point as the origin frame. At this time, if we support the force of m*g/4 at each of the four points [0.5, 0.25, -0.1], [0.5, -0.25, -0.1], [-0.5, -0.25, -0.1], [-0.5, 0.25, -0.1], the object will stay statically.
Then, if the box rotates 30 degrees about the x-axis, I can’t measure the force applied at the four corners of the box.
As the box rotates, the coordinate frame of the corner also rotates.
If the box rotates 45 degrees for y-axis after rotating 30 degree for the x-axis,
how should we apply force to each point so that the box stays still? Thank you for your interest in my question.
If we assume that there is a box with x, y, z-axis lengths of [1, 0.5, 0.2] (m) , weight is m=100kg,
and set the center point as the origin frame. At this time, if we support the force of m*g/4 at each of the four points [0.5, 0.25, -0.1], [0.5, -0.25, -0.1], [-0.5, -0.25, -0.1], [-0.5, 0.25, -0.1], the object will stay statically.
Then, if the box rotates 30 degrees about the x-axis, I can’t measure the force applied at the four corners of the box.
As the box rotates, the coordinate frame of the corner also rotates.
If the box rotates 45 degrees for y-axis after rotating 30 degree for the x-axis,
how should we apply force to each point so that the box stays still? force, gravity compensation MATLAB Answers — New Questions
Hi! I created a bad script a long time ago (months) and it has essentially destroyed my Matlab Online. I cannot run any other script without that old error occurring
The Summery is essentially it. I created a script four months ago and accidentially used the wrong syntax (&&) and it has corrupted my Matlab Online. I can run scripts with only comments, but as soon as I add anything else I get the errors back.
Help? I am so confused
Script I am running:
%% Problem 1
k1 = 10;
k2 = 5;
k3 = 8;
k4 = 10;
k5 = 20;
L1 = [1 0 0 0;
0 1 0 0]
Error Message:
Operands to the logical AND (&&) and OR (||) operators must be convertible to logical scalar values. Use the ANY or ALL functions to
reduce operands to logical scalar values.
Error in internal.matlab.variableeditor.Actions.struct.EditActionBase/UpdateActionState (line 33)
editable = height(sRows) == 1 && (sRows(2)-sRows(1)+1 == 1);
Error in internal.matlab.variableeditor.VEActionDataService/updateActionStates (line 138)
action.UpdateActionState();
Error in internal.matlab.variableeditor.VEActionDataService/enableListenersAndUpdateActionStates (line 84)
this.updateActionStates();
Error in internal.matlab.variableeditor.VEActionDataService/initActionStates (line 54)
this.enableListenersAndUpdateActionStates();
Error in internal.matlab.datatoolsservices.actiondataservice.ActionManager/initActions (line 55)
this.ActionDataService.initActionStates();
Error in internal.matlab.variableeditor.peer.RemoteManager/callInitActionOnIdle (line 376)
ActionManager.initActions(startPath, classType);
Error in internal.matlab.variableeditor.peer.RemoteManager>@()this.callInitActionOnIdle(actionNamespace,startPath,classType,ActionManager) (line 121)
builtin(‘_dtcallback’, @() this.callInitActionOnIdle(actionNamespace, startPath, classType, ActionManager), …The Summery is essentially it. I created a script four months ago and accidentially used the wrong syntax (&&) and it has corrupted my Matlab Online. I can run scripts with only comments, but as soon as I add anything else I get the errors back.
Help? I am so confused
Script I am running:
%% Problem 1
k1 = 10;
k2 = 5;
k3 = 8;
k4 = 10;
k5 = 20;
L1 = [1 0 0 0;
0 1 0 0]
Error Message:
Operands to the logical AND (&&) and OR (||) operators must be convertible to logical scalar values. Use the ANY or ALL functions to
reduce operands to logical scalar values.
Error in internal.matlab.variableeditor.Actions.struct.EditActionBase/UpdateActionState (line 33)
editable = height(sRows) == 1 && (sRows(2)-sRows(1)+1 == 1);
Error in internal.matlab.variableeditor.VEActionDataService/updateActionStates (line 138)
action.UpdateActionState();
Error in internal.matlab.variableeditor.VEActionDataService/enableListenersAndUpdateActionStates (line 84)
this.updateActionStates();
Error in internal.matlab.variableeditor.VEActionDataService/initActionStates (line 54)
this.enableListenersAndUpdateActionStates();
Error in internal.matlab.datatoolsservices.actiondataservice.ActionManager/initActions (line 55)
this.ActionDataService.initActionStates();
Error in internal.matlab.variableeditor.peer.RemoteManager/callInitActionOnIdle (line 376)
ActionManager.initActions(startPath, classType);
Error in internal.matlab.variableeditor.peer.RemoteManager>@()this.callInitActionOnIdle(actionNamespace,startPath,classType,ActionManager) (line 121)
builtin(‘_dtcallback’, @() this.callInitActionOnIdle(actionNamespace, startPath, classType, ActionManager), … The Summery is essentially it. I created a script four months ago and accidentially used the wrong syntax (&&) and it has corrupted my Matlab Online. I can run scripts with only comments, but as soon as I add anything else I get the errors back.
Help? I am so confused
Script I am running:
%% Problem 1
k1 = 10;
k2 = 5;
k3 = 8;
k4 = 10;
k5 = 20;
L1 = [1 0 0 0;
0 1 0 0]
Error Message:
Operands to the logical AND (&&) and OR (||) operators must be convertible to logical scalar values. Use the ANY or ALL functions to
reduce operands to logical scalar values.
Error in internal.matlab.variableeditor.Actions.struct.EditActionBase/UpdateActionState (line 33)
editable = height(sRows) == 1 && (sRows(2)-sRows(1)+1 == 1);
Error in internal.matlab.variableeditor.VEActionDataService/updateActionStates (line 138)
action.UpdateActionState();
Error in internal.matlab.variableeditor.VEActionDataService/enableListenersAndUpdateActionStates (line 84)
this.updateActionStates();
Error in internal.matlab.variableeditor.VEActionDataService/initActionStates (line 54)
this.enableListenersAndUpdateActionStates();
Error in internal.matlab.datatoolsservices.actiondataservice.ActionManager/initActions (line 55)
this.ActionDataService.initActionStates();
Error in internal.matlab.variableeditor.peer.RemoteManager/callInitActionOnIdle (line 376)
ActionManager.initActions(startPath, classType);
Error in internal.matlab.variableeditor.peer.RemoteManager>@()this.callInitActionOnIdle(actionNamespace,startPath,classType,ActionManager) (line 121)
builtin(‘_dtcallback’, @() this.callInitActionOnIdle(actionNamespace, startPath, classType, ActionManager), … help, persistent error, have i broken matlab? MATLAB Answers — New Questions
Inconsistent Results Referencing Nested Subreport Property
I have placed several subreports in an unbound report’s Report Header. Each subreport has two subreports. I’m trying to get the value of the Top property of the first of these sub-subreports, but I’m getting inconsistent results. The reference I’m (currently) using in the OnLoad event of the main report is:
intSubSubTop = Me.Controls(strSub1).Report.Controls(strSubSub1).Top
This works perfectly when I switch from Design View to Print View, but I get a runtime error (2455: the expression “has an invalid reference to the property Form/Report”) when I open the report from the navigation pane. What’s the difference between these two actions?
I’ve tried different variations to no avail. What do I need to do to make it work consistently?
I’m using Access 2010 on Windows 10 Pro
I have placed several subreports in an unbound report’s Report Header. Each subreport has two subreports. I’m trying to get the value of the Top property of the first of these sub-subreports, but I’m getting inconsistent results. The reference I’m (currently) using in the OnLoad event of the main report is:intSubSubTop = Me.Controls(strSub1).Report.Controls(strSubSub1).Top This works perfectly when I switch from Design View to Print View, but I get a runtime error (2455: the expression “has an invalid reference to the property Form/Report”) when I open the report from the navigation pane. What’s the difference between these two actions? I’ve tried different variations to no avail. What do I need to do to make it work consistently? I’m using Access 2010 on Windows 10 Pro Read More
HTML file to PDF file, deal with base64,svg picture problem solution.
HTML file to PDF file, error when processing base64,svg imagesHTML file to PDF file, error when processing base64,svg images HTML file to PDF file, error when processing base64,svg images html, simulink, pdf MATLAB Answers — New Questions
Include rows containing specific value
I have a 1400*9 table (1400 rows and 9 columns) in MATLAB workspace. Each column has a different name. I want to select rows containing specific value. For example, how can I create a new table containig all rows with value of 0.456 in the column named "Biology"? I tried to use following code, but it gave error.
newData=[Data(find(Data.Biology == 0.456, :))]I have a 1400*9 table (1400 rows and 9 columns) in MATLAB workspace. Each column has a different name. I want to select rows containing specific value. For example, how can I create a new table containig all rows with value of 0.456 in the column named "Biology"? I tried to use following code, but it gave error.
newData=[Data(find(Data.Biology == 0.456, :))] I have a 1400*9 table (1400 rows and 9 columns) in MATLAB workspace. Each column has a different name. I want to select rows containing specific value. For example, how can I create a new table containig all rows with value of 0.456 in the column named "Biology"? I tried to use following code, but it gave error.
newData=[Data(find(Data.Biology == 0.456, :))] table, find MATLAB Answers — New Questions
Force saved figure to use a specific number of pixels
I am saving different maps, I need to compare some specific pixels, but Matlab somehow adds a line at the bottom (3 pixels) for example when I save my image, which kills everything I try to do later. Is there any method to force exportgraphics to use X pixels horizontally and Y vertically (I mean height and width)? Or when I call my figure to be X and Y dimensions? Force it not to add this line. I tried exportgraphics/export_fig they both fail at it.
It is not random, as only some specific files get the line added and always even if I try to replot, I still did not figure out why this happens, my data have the same resolution/grid.I am saving different maps, I need to compare some specific pixels, but Matlab somehow adds a line at the bottom (3 pixels) for example when I save my image, which kills everything I try to do later. Is there any method to force exportgraphics to use X pixels horizontally and Y vertically (I mean height and width)? Or when I call my figure to be X and Y dimensions? Force it not to add this line. I tried exportgraphics/export_fig they both fail at it.
It is not random, as only some specific files get the line added and always even if I try to replot, I still did not figure out why this happens, my data have the same resolution/grid. I am saving different maps, I need to compare some specific pixels, but Matlab somehow adds a line at the bottom (3 pixels) for example when I save my image, which kills everything I try to do later. Is there any method to force exportgraphics to use X pixels horizontally and Y vertically (I mean height and width)? Or when I call my figure to be X and Y dimensions? Force it not to add this line. I tried exportgraphics/export_fig they both fail at it.
It is not random, as only some specific files get the line added and always even if I try to replot, I still did not figure out why this happens, my data have the same resolution/grid. image-processing, exportgraphics MATLAB Answers — New Questions
Working in Excel with live on MATLAB
On matlab, I am going to import an Excel file and work on it live in real time.
If I change the value in Excel, I want to reflect it in real time in MATLAB.
However, as far as I know, if you modify it without saving the Excel, it cannot be applied in MATLAB right away.
Is there a way to solve this?On matlab, I am going to import an Excel file and work on it live in real time.
If I change the value in Excel, I want to reflect it in real time in MATLAB.
However, as far as I know, if you modify it without saving the Excel, it cannot be applied in MATLAB right away.
Is there a way to solve this? On matlab, I am going to import an Excel file and work on it live in real time.
If I change the value in Excel, I want to reflect it in real time in MATLAB.
However, as far as I know, if you modify it without saving the Excel, it cannot be applied in MATLAB right away.
Is there a way to solve this? excel, live MATLAB Answers — New Questions
SSMS 19 and 20 connection delay or timeout
I connect to one Azure SQL database hosted on “site”.database.windows.net. Ever since installing SSMS 19 and continuing with 20 I have a problem where the database connection seems to timeout or drop. When this happens SSMS hangs for 5 minutes. It happens after I open an Edit connection and let it idle View connections don’t cause the problem. I can go back to 18 and the problem doesn’t happen. It seems like the connection drops and then takes 300 seconds to timeout and retry. Then it works again until it idles again. It is super frustrating.
I connect to one Azure SQL database hosted on “site”.database.windows.net. Ever since installing SSMS 19 and continuing with 20 I have a problem where the database connection seems to timeout or drop. When this happens SSMS hangs for 5 minutes. It happens after I open an Edit connection and let it idle View connections don’t cause the problem. I can go back to 18 and the problem doesn’t happen. It seems like the connection drops and then takes 300 seconds to timeout and retry. Then it works again until it idles again. It is super frustrating. Read More
Planner – My tasks page
The My tasks page in Planner is lacking basic features such as the ability to group by Tag or group by bucket – could a ‘grouping’ function by added to the My Tasks screen please?
The My tasks page in Planner is lacking basic features such as the ability to group by Tag or group by bucket – could a ‘grouping’ function by added to the My Tasks screen please? Read More
Maximize Efficiency with AI: Join “Meet Copilot in Loop” – Part 4
Hello Copilot Community,
You’re invited to join us for Part 4 of the Microsoft Loop | 5-Part Learning Series, titled “Meet Copilot in Loop” with Jenna Hong and Oby Omu. This session is tailor-made for those looking to supercharge their productivity through innovative AI integration.
Event Details:
Date: Wednesday, September 4th, 2024
Time: 10:00 AM to 10:30 AM PDT
What You’ll Gain:
Automated Content Creation: Learn how AI can kickstart your projects by generating initial content, freeing up your time for strategic endeavors.
Team Synchronization: Experience how a Loop-powered assistant can keep your projects on track and your team aligned, reducing miscommunications and improving project flow.
Meeting Optimization: Discover tools that transform your Microsoft Teams meetings, making them more efficient through automated summaries and quick information retrieval.
Why This Matters: Your engagement in this series not only enhances your skill set but also contributes to the development of Copilot in Loop. The insights you provide help shape the tool to better meet your needs.
Your Input Matters: We encourage you to engage actively by asking questions and sharing comments on the event page now. Your insights are invaluable and will be addressed during our live discussion, helping shape the evolution of Copilot in Loop.
RSVP here to join us and start the conversation!
Looking forward to your participation and insights as we explore these groundbreaking tools together!
Until we meet again! Stay curious and connected.
Sarah Gilbert, Your Copilot Community Navigator
Hello Copilot Community,
You’re invited to join us for Part 4 of the Microsoft Loop | 5-Part Learning Series, titled “Meet Copilot in Loop” with Jenna Hong and Oby Omu. This session is tailor-made for those looking to supercharge their productivity through innovative AI integration.
Event Details:
Date: Wednesday, September 4th, 2024
Time: 10:00 AM to 10:30 AM PDT
What You’ll Gain:
Automated Content Creation: Learn how AI can kickstart your projects by generating initial content, freeing up your time for strategic endeavors.
Team Synchronization: Experience how a Loop-powered assistant can keep your projects on track and your team aligned, reducing miscommunications and improving project flow.
Meeting Optimization: Discover tools that transform your Microsoft Teams meetings, making them more efficient through automated summaries and quick information retrieval.
Why This Matters: Your engagement in this series not only enhances your skill set but also contributes to the development of Copilot in Loop. The insights you provide help shape the tool to better meet your needs.
Your Input Matters: We encourage you to engage actively by asking questions and sharing comments on the event page now. Your insights are invaluable and will be addressed during our live discussion, helping shape the evolution of Copilot in Loop.
RSVP here to join us and start the conversation!
Looking forward to your participation and insights as we explore these groundbreaking tools together!
Until we meet again! Stay curious and connected.
Sarah Gilbert, Your Copilot Community Navigator Read More
How to Filter Empty Text and Image Columns in SharePoint List?
Hi Everyone,
I’m working with a SharePoint list and trying to filter out items where certain columns, specifically a Text column and an Image column, haven’t been filled in (i.e., they are empty or null).
However, I’m running into some challenges:
I don’t want to make these fields required.I know that Power Automate could be used to address this, but I’m looking for a solution directly within SharePoint.I tried creating a custom view, but the filter options for Text and Image columns are limited to “contains” or “begins with.” Using “starts with” or “contains” with a blank or zero value didn’t work.I also attempted creating a calculated column to check if the Text column is filled, but calculated columns don’t seem to work with Text or Image columns.
Does anyone have any suggestions or workarounds that might help?
Thanks in advance!
Hi Everyone,I’m working with a SharePoint list and trying to filter out items where certain columns, specifically a Text column and an Image column, haven’t been filled in (i.e., they are empty or null).However, I’m running into some challenges:I don’t want to make these fields required.I know that Power Automate could be used to address this, but I’m looking for a solution directly within SharePoint.I tried creating a custom view, but the filter options for Text and Image columns are limited to “contains” or “begins with.” Using “starts with” or “contains” with a blank or zero value didn’t work.I also attempted creating a calculated column to check if the Text column is filled, but calculated columns don’t seem to work with Text or Image columns.Does anyone have any suggestions or workarounds that might help?Thanks in advance! Read More
Managing Multiple M365 Administrator Accounts with Microsoft Authenticator Backup
Hello Tech Community,
I am looking for some advice on how to efficiently manage and back up multiple M365 Administrator accounts using the Microsoft Authenticator app. As an IT Support professional working with multiple clients, I have a dedicated Global Administrator account for each client, and all accounts are secured with Multi-Factor Authentication (MFA) using Microsoft Authenticator.
Setting up each Global Admin account with the Authenticator app is fairly straightforward, but I’ve run into an issue when trying to transfer these accounts to a new smartphone. While the Microsoft Authenticator app does transfer accounts to the new device, it seems that MFA will no longer work unless you scan a new QR code for each account. However, logging into these Global Admin accounts to obtain the new QR code is not feasible since MFA is required, creating a bit of a catch-22.
I’d prefer not to resort to other authentication methods (SMS, email, etc.) for these Global Admin accounts, as it adds unnecessary complexity and potential vulnerabilities. Has anyone found a reliable solution for seamlessly backing up and transferring these MFA-enabled Global Admin accounts to a new phone without needing to re-authenticate via QR code? Any insights or best practices would be greatly appreciated!
Hello Tech Community, I am looking for some advice on how to efficiently manage and back up multiple M365 Administrator accounts using the Microsoft Authenticator app. As an IT Support professional working with multiple clients, I have a dedicated Global Administrator account for each client, and all accounts are secured with Multi-Factor Authentication (MFA) using Microsoft Authenticator. Setting up each Global Admin account with the Authenticator app is fairly straightforward, but I’ve run into an issue when trying to transfer these accounts to a new smartphone. While the Microsoft Authenticator app does transfer accounts to the new device, it seems that MFA will no longer work unless you scan a new QR code for each account. However, logging into these Global Admin accounts to obtain the new QR code is not feasible since MFA is required, creating a bit of a catch-22. I’d prefer not to resort to other authentication methods (SMS, email, etc.) for these Global Admin accounts, as it adds unnecessary complexity and potential vulnerabilities. Has anyone found a reliable solution for seamlessly backing up and transferring these MFA-enabled Global Admin accounts to a new phone without needing to re-authenticate via QR code? Any insights or best practices would be greatly appreciated! Read More