Category: News
Pictures integrated in a list- not visible- error code #UNKNOWN!
Hi all,
I have a problem. I get a list from a company I am working with and they integrate pictures in the list.
I get an error message that the pictures are #UNKNOWN!
See attached screenshots.
I updated already to the newest version of Excel. I am using a MacBook Air- MAC OS Ventura 13.1.
And I am the only one having problems with this list.
Everybody else using it can see the pictures.
Appreciate your help.
Hi all, I have a problem. I get a list from a company I am working with and they integrate pictures in the list.I get an error message that the pictures are #UNKNOWN!See attached screenshots. I updated already to the newest version of Excel. I am using a MacBook Air- MAC OS Ventura 13.1. And I am the only one having problems with this list.Everybody else using it can see the pictures. Appreciate your help. Read More
Microsoft Cost Management updates—June 2024 (summary)
FinOps X 2024 was a hit. To learn about our announcements, see News and updates from FinOps X 2024.
Cost Management announced FOCUS 1.0 support in exports.
Review an estimate of your costs when you deploy virtual machines in the Azure portal.
Access Cost analysis from the Azure Kubernetes Service cluster menu.
Pricing updates on Azure.com including new regions, new services, and a slew of updates for services like Virtual machines, Azure SQL DB, Azure Data Factory, Azure Functions, and more.
New ways to save money with Microsoft cloud:
VM Hibernation is now Generally Available
Documentation updates spanning Cost Management, Azure Hybrid Benefit, reservations, Marketplace charges, and Billing experiences.
This is just a quick summary. For the full details, please see Microsoft Cost Management updates—June 2024.
Microsoft Tech Community – Latest Blogs –Read More
Save a stack of 16-bit images to one TIFF file
Hi,
I would like to save a stack (in this case 150) of uint16 grayscale images to a single TIFF-file. First I tried pass over the 3D-array (the third dimension are the individual images) to imwrite, but it complained "Writing TIFFs with 150 components is not supported with IMWRITE. Use Tiff instead. ". I tried this (imgdata is my 3D-array of images):
imgdata = uint16(imgdata);
tagstruct.ImageLength = size(imgdata,1);
tagstruct.ImageWidth = size(imgdata,2);
tagstruct.Photometric = Tiff.Photometric.MinIsBlack;
tagstruct.BitsPerSample = 16;
tagstruct.SamplesPerPixel = 1;
tagstruct.PlanarConfiguration = Tiff.PlanarConfiguration.Chunky;
tagstruct.Software = ‘MATLAB’;
tagstruct.Compression = 1;
t = Tiff(path,’w’);
setTag(t,tagstruct);
write(t,imgdata);
I got the error message "SamplesPerPixel is 1, but the number of image planes provided was 150.", so write() interprets the third dimension as the samples per pixel, which is not what I want. Samples per Pixel needs to be 1, as I have grayscale images.
After that, I also tried it with the "append" option and a loop over the images (with the same tagstruct as above)
t = Tiff(path,’a’);
setTag(t,tagstruct);
numberOfImages = size(imgdata,3);
for n=1:numberOfImages
currentImage = squeeze(imgdata(:,:,n));
write(t,currentImage);
end
close(t);
It runs without errors and the file size of the uncompressed file is exactly what I would expect, so I think the data is in the file. But I can’t open the file in any other software than matlab. Irfanview, imageJ, Windows image viewer all show just the first image of the stack.
Any ideas what’s wrong? Thanks.Hi,
I would like to save a stack (in this case 150) of uint16 grayscale images to a single TIFF-file. First I tried pass over the 3D-array (the third dimension are the individual images) to imwrite, but it complained "Writing TIFFs with 150 components is not supported with IMWRITE. Use Tiff instead. ". I tried this (imgdata is my 3D-array of images):
imgdata = uint16(imgdata);
tagstruct.ImageLength = size(imgdata,1);
tagstruct.ImageWidth = size(imgdata,2);
tagstruct.Photometric = Tiff.Photometric.MinIsBlack;
tagstruct.BitsPerSample = 16;
tagstruct.SamplesPerPixel = 1;
tagstruct.PlanarConfiguration = Tiff.PlanarConfiguration.Chunky;
tagstruct.Software = ‘MATLAB’;
tagstruct.Compression = 1;
t = Tiff(path,’w’);
setTag(t,tagstruct);
write(t,imgdata);
I got the error message "SamplesPerPixel is 1, but the number of image planes provided was 150.", so write() interprets the third dimension as the samples per pixel, which is not what I want. Samples per Pixel needs to be 1, as I have grayscale images.
After that, I also tried it with the "append" option and a loop over the images (with the same tagstruct as above)
t = Tiff(path,’a’);
setTag(t,tagstruct);
numberOfImages = size(imgdata,3);
for n=1:numberOfImages
currentImage = squeeze(imgdata(:,:,n));
write(t,currentImage);
end
close(t);
It runs without errors and the file size of the uncompressed file is exactly what I would expect, so I think the data is in the file. But I can’t open the file in any other software than matlab. Irfanview, imageJ, Windows image viewer all show just the first image of the stack.
Any ideas what’s wrong? Thanks. Hi,
I would like to save a stack (in this case 150) of uint16 grayscale images to a single TIFF-file. First I tried pass over the 3D-array (the third dimension are the individual images) to imwrite, but it complained "Writing TIFFs with 150 components is not supported with IMWRITE. Use Tiff instead. ". I tried this (imgdata is my 3D-array of images):
imgdata = uint16(imgdata);
tagstruct.ImageLength = size(imgdata,1);
tagstruct.ImageWidth = size(imgdata,2);
tagstruct.Photometric = Tiff.Photometric.MinIsBlack;
tagstruct.BitsPerSample = 16;
tagstruct.SamplesPerPixel = 1;
tagstruct.PlanarConfiguration = Tiff.PlanarConfiguration.Chunky;
tagstruct.Software = ‘MATLAB’;
tagstruct.Compression = 1;
t = Tiff(path,’w’);
setTag(t,tagstruct);
write(t,imgdata);
I got the error message "SamplesPerPixel is 1, but the number of image planes provided was 150.", so write() interprets the third dimension as the samples per pixel, which is not what I want. Samples per Pixel needs to be 1, as I have grayscale images.
After that, I also tried it with the "append" option and a loop over the images (with the same tagstruct as above)
t = Tiff(path,’a’);
setTag(t,tagstruct);
numberOfImages = size(imgdata,3);
for n=1:numberOfImages
currentImage = squeeze(imgdata(:,:,n));
write(t,currentImage);
end
close(t);
It runs without errors and the file size of the uncompressed file is exactly what I would expect, so I think the data is in the file. But I can’t open the file in any other software than matlab. Irfanview, imageJ, Windows image viewer all show just the first image of the stack.
Any ideas what’s wrong? Thanks. tif, tiff, multipage tiff, imwrite MATLAB Answers — New Questions
Error using readtable: An error occurred while trying to determine whether “readData” is a function name
I get the following error when I am calling
readtable(‘file.csv’)
Error using readtable (line 197)
An error occurred while trying to determine whether "readData" is a function name.
Note: readtable detected the following parameters:
‘Delimiter’, ‘,’, ‘HeaderLines’, , ‘Format’, ”
Can you please help me on this one (do not provide me links on the same topic, I have checked everything and nothing is working) ?I get the following error when I am calling
readtable(‘file.csv’)
Error using readtable (line 197)
An error occurred while trying to determine whether "readData" is a function name.
Note: readtable detected the following parameters:
‘Delimiter’, ‘,’, ‘HeaderLines’, , ‘Format’, ”
Can you please help me on this one (do not provide me links on the same topic, I have checked everything and nothing is working) ? I get the following error when I am calling
readtable(‘file.csv’)
Error using readtable (line 197)
An error occurred while trying to determine whether "readData" is a function name.
Note: readtable detected the following parameters:
‘Delimiter’, ‘,’, ‘HeaderLines’, , ‘Format’, ”
Can you please help me on this one (do not provide me links on the same topic, I have checked everything and nothing is working) ? readtable MATLAB Answers — New Questions
Which UHD version is compatible for MATLAB 2023a
I have a computer which is not connected to internet and I have NI USRP 2954R, and both are connected via LAN cable. The computer is not connected to the internet. So, I can’t download the communications toolbox directly through MATLAB software. So, can anyone tell me which UHD(Which is to be downloaded from ettus website) version is compatible with MATLAB 2023b?I have a computer which is not connected to internet and I have NI USRP 2954R, and both are connected via LAN cable. The computer is not connected to the internet. So, I can’t download the communications toolbox directly through MATLAB software. So, can anyone tell me which UHD(Which is to be downloaded from ettus website) version is compatible with MATLAB 2023b? I have a computer which is not connected to internet and I have NI USRP 2954R, and both are connected via LAN cable. The computer is not connected to the internet. So, I can’t download the communications toolbox directly through MATLAB software. So, can anyone tell me which UHD(Which is to be downloaded from ettus website) version is compatible with MATLAB 2023b? ettus, matlab2023b, national instruments, usrp, uhd MATLAB Answers — New Questions
Remove exponentials with positive argument in symbolic MATLAB
Hello!
I am using symbolic MATLAB to obtain an expression of the form:
Where are some complicated expresions of other variables. To avoid problems with numeric evaluation, I would like to express the expression in the form:
Is there a way to easily implement that on MATLAB?
Thanks!Hello!
I am using symbolic MATLAB to obtain an expression of the form:
Where are some complicated expresions of other variables. To avoid problems with numeric evaluation, I would like to express the expression in the form:
Is there a way to easily implement that on MATLAB?
Thanks! Hello!
I am using symbolic MATLAB to obtain an expression of the form:
Where are some complicated expresions of other variables. To avoid problems with numeric evaluation, I would like to express the expression in the form:
Is there a way to easily implement that on MATLAB?
Thanks! exponential, simplification MATLAB Answers — New Questions
Security Baselines
Hi, I’m having an issue after enabling the baseline securities. When we connect our laptop to the docking station via the Thunderbolt port, the peripherals (mouse, keyboard, and network connection) get blocked.
We suspected the policy “Disable new DMA devices when this computer is locked,” but disabling it didn’t help.
Does any body have any idea, which policy it might be blocking the peripherals ? this is a headache to find.
Hi, I’m having an issue after enabling the baseline securities. When we connect our laptop to the docking station via the Thunderbolt port, the peripherals (mouse, keyboard, and network connection) get blocked. We suspected the policy “Disable new DMA devices when this computer is locked,” but disabling it didn’t help. Does any body have any idea, which policy it might be blocking the peripherals ? this is a headache to find. Read More
Server 2022 – Hyper V
Good Morning All,
I hope someone can help me with this setup.
We were running 2012 R2, so had to upgrade to 2022 (via our support people) – One server running 4 Hyper V’s – and its running like a dog – we run one main program from the RDS which looks at the SQL server.
Dell Poweredge R450 – Xeon Silver 4314 16 Core – 128GB Ram ** Recommended by our Support people – About 20 Users.
The VM’s have been setup thus :-
DB – 32768 Ram / 10 VP
DC – 4096 Ram / 4 VP
RDS – 32768 Ram / 8 VP
FS – 16384 Ram / 6 VP
All have VMQ enabled / All have IPSEC Offloading Enabled / All have SR-IOV disabled.
Running an SQL query directly on the DB is faster than the 2016 (Which I would expect as Im the only user on the new server) But running the program we use through the RDP is painfully slow.
Has anyone got any ideas how I can improve our setup ?
Any help would be greatly appreciated, it really will !
Regards
BC
Good Morning All, I hope someone can help me with this setup. We were running 2012 R2, so had to upgrade to 2022 (via our support people) – One server running 4 Hyper V’s – and its running like a dog – we run one main program from the RDS which looks at the SQL server. Dell Poweredge R450 – Xeon Silver 4314 16 Core – 128GB Ram ** Recommended by our Support people – About 20 Users. The VM’s have been setup thus :- DB – 32768 Ram / 10 VPDC – 4096 Ram / 4 VPRDS – 32768 Ram / 8 VPFS – 16384 Ram / 6 VP All have VMQ enabled / All have IPSEC Offloading Enabled / All have SR-IOV disabled. Running an SQL query directly on the DB is faster than the 2016 (Which I would expect as Im the only user on the new server) But running the program we use through the RDP is painfully slow. Has anyone got any ideas how I can improve our setup ? Any help would be greatly appreciated, it really will ! RegardsBC Read More
Increase/Decrease font size in Outlook for Windows 11
When I create a new email, the font size is tiny and I have to use the Increase Font Size tool from the Basic Text ribbon menu to increase the size. The font size in “Options/Mail/Stationary and Font” is set correctly as Calibri/Regular/12.
How do I increase the font size by default in Outlook.
Thanks
When I create a new email, the font size is tiny and I have to use the Increase Font Size tool from the Basic Text ribbon menu to increase the size. The font size in “Options/Mail/Stationary and Font” is set correctly as Calibri/Regular/12. How do I increase the font size by default in Outlook. Thanks Read More
The best way to convert wma to mp3 on Windows 11?
Hi everyone,
I’ve recently copied hundreds of WMA music files from my backup CDs, but I just discovered that my car’s media player doesn’t support WMA format. I need to convert all these WMA files to MP3 so I can play them in my car. I’m using Windows 11 and I’m looking for the best way to do this.
Can anyone suggest a reliable method for batch converting WMA to MP3 on Windows 11? I’m looking for something that is user-friendly and maintains good audio quality. If there are any free tools available, that would be ideal, but I’m also open to paid solutions if they are highly recommended.
If you have any tips on preserving audio quality during the conversion process, that would be helpful as well.
Thanks in advance!
Hi everyone, I’ve recently copied hundreds of WMA music files from my backup CDs, but I just discovered that my car’s media player doesn’t support WMA format. I need to convert all these WMA files to MP3 so I can play them in my car. I’m using Windows 11 and I’m looking for the best way to do this. Can anyone suggest a reliable method for batch converting WMA to MP3 on Windows 11? I’m looking for something that is user-friendly and maintains good audio quality. If there are any free tools available, that would be ideal, but I’m also open to paid solutions if they are highly recommended. If you have any tips on preserving audio quality during the conversion process, that would be helpful as well. Thanks in advance! Read More
Help with availability
Hey everyone,
I didn’t know where to look for a solution for my problem so here goes.
We have a “service” in Bookings that “can be reserved if personnel is available”, as specified in “availability options”. However, we’ve noticed that if one of our colleagues specifies a leave of absense in the calendar of our Bookings, this date will automatically be unavailable for people to book, even though other members are available. This is weird especially since the service is assigned only to a “member” that is really just our general team. The option “Assign one of your selected employees to an appointment” is checked.
How do I make sure individuals are still able to book on dates where one colleague is unavailable?
Let me know if I should clarify anything. Our Bookings is in Dutch so the official English versions for options and settings might be different from my translations above.
Hey everyone, I didn’t know where to look for a solution for my problem so here goes.We have a “service” in Bookings that “can be reserved if personnel is available”, as specified in “availability options”. However, we’ve noticed that if one of our colleagues specifies a leave of absense in the calendar of our Bookings, this date will automatically be unavailable for people to book, even though other members are available. This is weird especially since the service is assigned only to a “member” that is really just our general team. The option “Assign one of your selected employees to an appointment” is checked.How do I make sure individuals are still able to book on dates where one colleague is unavailable? Let me know if I should clarify anything. Our Bookings is in Dutch so the official English versions for options and settings might be different from my translations above. Read More
Tailor your Reference Layers in Azure Maps Visual for Power BI
We’re excited to share the latest enhancements to the Azure Maps visual in Power BI, designed to make your data visualization even more powerful and user-friendly. This month, we’ve introduced three major improvements to reference layers that will transform how you use Azure Maps in Power BI.
Reference layers in Azure Maps allow you to overlay additional data on your maps, providing richer context and deeper insights. Whether you’re visualizing sales territories, delivery routes, or demographic data, reference layers help you see patterns and relationships more clearly. They can be used to highlight specific areas, show changes over time, or compare different datasets on the same map.
CSV File Support
Now you can use GeoJSON in CSV files as data sources for your reference layers, making it easier to integrate data from a variety of sources without needing to convert them to other formats.
If you have existing data in CSV format, you no longer need to spend time converting it to other spatial files. Simply upload your CSV file, and your reference layer is ready to go!
Enhanced Customization
Customize the appearance of points, lines, and polygons directly within Power BI’s formatting pane.
Previously, you had to define colors and widths within your reference layer files, adding complexity. Now, you can easily adjust these settings in Power BI, saving time and reducing errors. This means your maps can be tailored to fit your branding or specific visualization needs with just a few clicks.
Dynamic URL Sources
Use conditional formatting to provide dynamic URLs for your reference layers, allowing them to change based on data conditions.
This feature is perfect for scenarios where your reference layers need to be dynamic, such as visualizing different data sets based on user selections. For example, you can switch reference layers to show different product performance across regions depending on the selected category, providing more interactive and insightful visualizations.
These improvements make Azure Maps even more versatile and powerful, helping you create compelling and informative visualizations with ease. We’re continually working to enhance the Azure Maps visual in Power BI, and we’d love to hear your feedback on these new features. Stay tuned for more updates!
Microsoft Tech Community – Latest Blogs –Read More
Latitude and Longitude of Path from A to B
Hi all,
Is there a premade function in Matlab that can gives sets of latitude and longitude of the shortest possible routes (like GPS) from one place to another (represented also as latitude longtitude)
So the *input* is:
Latitude and Longitude of a place A
Latitude and Longitude of a place B
The *output* is:
set of latitudes and longitudes of route 1 from A to B in a matrix
set of latitudes and longitudes of route 2 from A to B in a matrix
set of latitudes and longitudes of route 3 from A to B in a matrix
etc…..
The number of points of latitudes and longitudes in the output would depend on another input that describe how details the output would be.
Might be very complex things to do.
Thanks a lot in advance for any suggestion.Hi all,
Is there a premade function in Matlab that can gives sets of latitude and longitude of the shortest possible routes (like GPS) from one place to another (represented also as latitude longtitude)
So the *input* is:
Latitude and Longitude of a place A
Latitude and Longitude of a place B
The *output* is:
set of latitudes and longitudes of route 1 from A to B in a matrix
set of latitudes and longitudes of route 2 from A to B in a matrix
set of latitudes and longitudes of route 3 from A to B in a matrix
etc…..
The number of points of latitudes and longitudes in the output would depend on another input that describe how details the output would be.
Might be very complex things to do.
Thanks a lot in advance for any suggestion. Hi all,
Is there a premade function in Matlab that can gives sets of latitude and longitude of the shortest possible routes (like GPS) from one place to another (represented also as latitude longtitude)
So the *input* is:
Latitude and Longitude of a place A
Latitude and Longitude of a place B
The *output* is:
set of latitudes and longitudes of route 1 from A to B in a matrix
set of latitudes and longitudes of route 2 from A to B in a matrix
set of latitudes and longitudes of route 3 from A to B in a matrix
etc…..
The number of points of latitudes and longitudes in the output would depend on another input that describe how details the output would be.
Might be very complex things to do.
Thanks a lot in advance for any suggestion. gps, latitude, longitude MATLAB Answers — New Questions
MATLAB Function for Evaluating Body Position in SolidWorks Stuck in Busy Mode
I’m working on a MATLAB function that interacts with SolidWorks to evaluate the position of a body within a SolidWorks part. The function performs the evaluation correctly, but I’m encountering an issue where it gets stuck in a busy mode and doesn’t exit. This results in MATLAB becoming unresponsive indefinitely.
function position = getposition(path, bodyname, N)
% Connect to SolidWorks
% Crea un’istanza dell’applicazione SolidWorks
swApp = actxserver(‘SldWorks.Application’);
% Imposta l’applicazione SolidWorks come visibile
set(swApp, ‘Visible’, true);
% Apri il documento specificato
% ‘path’ deve essere il percorso completo del documento da aprire
swModel = invoke(swApp, ‘OpenDoc’, path, 1); % 1 per parti, 2 per assiemi, ecc.
% Ottieni il gestore delle configurazioni del modello aperto
configMgr = invoke(swModel, ‘ConfigurationManager’);
% Ottieni la configurazione attiva
config = invoke(configMgr, ‘ActiveConfiguration’);
% Ottieni i corpi solidi nella part
bodies = invoke(swModel, ‘GetBodies2’, 0, true); % 0 per corpi solidi
% swModel = [];
numBodies = length(bodies);
if bodyname == "Grain"
if N > 1
if mod(N, 2) == 0
bodyname = ["Grain_rep["+num2str(N/2)+"]","Grain_rep["+num2str(N/2+1)+"]"];
else
bodyname = "Grain_rep["+num2str(round(N/2))+"]";
end
end
end
position = zeros(length(bodyname),3);
j = 1;
% Loop through each body and get its name
for i = 1:numBodies
body = bodies{i}; % SolidWorks uses 0-based indexing
if length(bodyname)>1
if contains(body.Name, bodyname)
boundingBox = invoke(body, ‘GetBodyBox’);
position(j,:) = [mean([boundingBox(1:3); boundingBox(4:6)])];
j = j+1;
end
else
if body.Name == bodyname
boundingBox = invoke(body, ‘GetBodyBox’);
position = mean([boundingBox(1:3); boundingBox(4:6)]);
break
end
end
bodies{i} = [];
end
position = position.*[-1 1 1];
release(swApp)
release(swModel)
end
Despite checking for any infinite loops or blocking calls, I haven’t been able to identify the cause of the issue.
Has anyone faced a similar problem or can suggest a potential solution?
Thank you in advance for your assistance!I’m working on a MATLAB function that interacts with SolidWorks to evaluate the position of a body within a SolidWorks part. The function performs the evaluation correctly, but I’m encountering an issue where it gets stuck in a busy mode and doesn’t exit. This results in MATLAB becoming unresponsive indefinitely.
function position = getposition(path, bodyname, N)
% Connect to SolidWorks
% Crea un’istanza dell’applicazione SolidWorks
swApp = actxserver(‘SldWorks.Application’);
% Imposta l’applicazione SolidWorks come visibile
set(swApp, ‘Visible’, true);
% Apri il documento specificato
% ‘path’ deve essere il percorso completo del documento da aprire
swModel = invoke(swApp, ‘OpenDoc’, path, 1); % 1 per parti, 2 per assiemi, ecc.
% Ottieni il gestore delle configurazioni del modello aperto
configMgr = invoke(swModel, ‘ConfigurationManager’);
% Ottieni la configurazione attiva
config = invoke(configMgr, ‘ActiveConfiguration’);
% Ottieni i corpi solidi nella part
bodies = invoke(swModel, ‘GetBodies2’, 0, true); % 0 per corpi solidi
% swModel = [];
numBodies = length(bodies);
if bodyname == "Grain"
if N > 1
if mod(N, 2) == 0
bodyname = ["Grain_rep["+num2str(N/2)+"]","Grain_rep["+num2str(N/2+1)+"]"];
else
bodyname = "Grain_rep["+num2str(round(N/2))+"]";
end
end
end
position = zeros(length(bodyname),3);
j = 1;
% Loop through each body and get its name
for i = 1:numBodies
body = bodies{i}; % SolidWorks uses 0-based indexing
if length(bodyname)>1
if contains(body.Name, bodyname)
boundingBox = invoke(body, ‘GetBodyBox’);
position(j,:) = [mean([boundingBox(1:3); boundingBox(4:6)])];
j = j+1;
end
else
if body.Name == bodyname
boundingBox = invoke(body, ‘GetBodyBox’);
position = mean([boundingBox(1:3); boundingBox(4:6)]);
break
end
end
bodies{i} = [];
end
position = position.*[-1 1 1];
release(swApp)
release(swModel)
end
Despite checking for any infinite loops or blocking calls, I haven’t been able to identify the cause of the issue.
Has anyone faced a similar problem or can suggest a potential solution?
Thank you in advance for your assistance! I’m working on a MATLAB function that interacts with SolidWorks to evaluate the position of a body within a SolidWorks part. The function performs the evaluation correctly, but I’m encountering an issue where it gets stuck in a busy mode and doesn’t exit. This results in MATLAB becoming unresponsive indefinitely.
function position = getposition(path, bodyname, N)
% Connect to SolidWorks
% Crea un’istanza dell’applicazione SolidWorks
swApp = actxserver(‘SldWorks.Application’);
% Imposta l’applicazione SolidWorks come visibile
set(swApp, ‘Visible’, true);
% Apri il documento specificato
% ‘path’ deve essere il percorso completo del documento da aprire
swModel = invoke(swApp, ‘OpenDoc’, path, 1); % 1 per parti, 2 per assiemi, ecc.
% Ottieni il gestore delle configurazioni del modello aperto
configMgr = invoke(swModel, ‘ConfigurationManager’);
% Ottieni la configurazione attiva
config = invoke(configMgr, ‘ActiveConfiguration’);
% Ottieni i corpi solidi nella part
bodies = invoke(swModel, ‘GetBodies2’, 0, true); % 0 per corpi solidi
% swModel = [];
numBodies = length(bodies);
if bodyname == "Grain"
if N > 1
if mod(N, 2) == 0
bodyname = ["Grain_rep["+num2str(N/2)+"]","Grain_rep["+num2str(N/2+1)+"]"];
else
bodyname = "Grain_rep["+num2str(round(N/2))+"]";
end
end
end
position = zeros(length(bodyname),3);
j = 1;
% Loop through each body and get its name
for i = 1:numBodies
body = bodies{i}; % SolidWorks uses 0-based indexing
if length(bodyname)>1
if contains(body.Name, bodyname)
boundingBox = invoke(body, ‘GetBodyBox’);
position(j,:) = [mean([boundingBox(1:3); boundingBox(4:6)])];
j = j+1;
end
else
if body.Name == bodyname
boundingBox = invoke(body, ‘GetBodyBox’);
position = mean([boundingBox(1:3); boundingBox(4:6)]);
break
end
end
bodies{i} = [];
end
position = position.*[-1 1 1];
release(swApp)
release(swModel)
end
Despite checking for any infinite loops or blocking calls, I haven’t been able to identify the cause of the issue.
Has anyone faced a similar problem or can suggest a potential solution?
Thank you in advance for your assistance! solidworks, stuck MATLAB Answers — New Questions
Standalone Executable starting C++ application
Hello, we are compiling a standalone matlab application with matlab 2022b which starts a C++ compiled application. The C++ executable is compiled with c++20 standard. However, starting the application crashes using a c++20 function. With the process explorer we see that the dlls from the Matlab folder are loaded which are not compatible to c++20. What can we do?Hello, we are compiling a standalone matlab application with matlab 2022b which starts a C++ compiled application. The C++ executable is compiled with c++20 standard. However, starting the application crashes using a c++20 function. With the process explorer we see that the dlls from the Matlab folder are loaded which are not compatible to c++20. What can we do? Hello, we are compiling a standalone matlab application with matlab 2022b which starts a C++ compiled application. The C++ executable is compiled with c++20 standard. However, starting the application crashes using a c++20 function. With the process explorer we see that the dlls from the Matlab folder are loaded which are not compatible to c++20. What can we do? c++ dlls wrongly loaded MATLAB Answers — New Questions
How to resolve “Out of Tolerance” in the Simulation Data Inspector?
Hello,
Im comparing results of same TestCase between 2 different Matlab versions(2019 and 2021). My script outputs the Data Inspector HTML report which shows if there are differences between 2 TestCases. I’ve verified the comparision of 2 testcases has zero difference but the Max Diff Column in the Data Inspector shows values of 0.9,4,9 etc. for different signals.
I’ve loaded the File A and File B mat files in the data inspector and changed the global tolerance value to 0.1, 0.01,1 but that did not make any difference in the Out of Tolerance.
Can anyone provide suggestions for this ?
Thank you !Hello,
Im comparing results of same TestCase between 2 different Matlab versions(2019 and 2021). My script outputs the Data Inspector HTML report which shows if there are differences between 2 TestCases. I’ve verified the comparision of 2 testcases has zero difference but the Max Diff Column in the Data Inspector shows values of 0.9,4,9 etc. for different signals.
I’ve loaded the File A and File B mat files in the data inspector and changed the global tolerance value to 0.1, 0.01,1 but that did not make any difference in the Out of Tolerance.
Can anyone provide suggestions for this ?
Thank you ! Hello,
Im comparing results of same TestCase between 2 different Matlab versions(2019 and 2021). My script outputs the Data Inspector HTML report which shows if there are differences between 2 TestCases. I’ve verified the comparision of 2 testcases has zero difference but the Max Diff Column in the Data Inspector shows values of 0.9,4,9 etc. for different signals.
I’ve loaded the File A and File B mat files in the data inspector and changed the global tolerance value to 0.1, 0.01,1 but that did not make any difference in the Out of Tolerance.
Can anyone provide suggestions for this ?
Thank you ! data inspector, simulink, simulink data inspector MATLAB Answers — New Questions
How to recover permanently deleted emails on Windows 10?
Hi,
I use the Outlook 365 app primarily for work emails. Unfortunately, I accidentally deleted a couple of important emails on Windows 10. The emails I deleted were from a couple of days ago and are quite crucial for an ongoing project. I’m not sure how to recover them. I checked my Deleted Items folder, but I couldn’t find the deleted emails there.
I’m hoping someone here can guide me through the process of recovering deleted emails on Windows 10. Are there any specific steps or tools within Outlook 365 or Windows 10 that I should be aware of? Is there a way to restore emails that are not in the Deleted Items folder?
Thank you
Hi,I use the Outlook 365 app primarily for work emails. Unfortunately, I accidentally deleted a couple of important emails on Windows 10. The emails I deleted were from a couple of days ago and are quite crucial for an ongoing project. I’m not sure how to recover them. I checked my Deleted Items folder, but I couldn’t find the deleted emails there. I’m hoping someone here can guide me through the process of recovering deleted emails on Windows 10. Are there any specific steps or tools within Outlook 365 or Windows 10 that I should be aware of? Is there a way to restore emails that are not in the Deleted Items folder? Thank you Read More
Trend Micro Anti Virus on Database Servers
Dears,
I need your help regarding the Trend Micro Anti Virus. If we install this Trend Micro in SQL Server Database servers will be any Impact on servers or is there any Exclusion List for scanning. Waiting for your Kind reply.
Dears, I need your help regarding the Trend Micro Anti Virus. If we install this Trend Micro in SQL Server Database servers will be any Impact on servers or is there any Exclusion List for scanning. Waiting for your Kind reply. Read More
After running Polyspace (Code Prover), in the “Reasons for Unchecked Code” section, if the progress of the “code operations” is not 100%, I would like to know how the percenta
After running Polyspace (Code Prover), in the "Reasons for Unchecked Code" section, if the progress of the "code operations" is not 100%, I would like to know how the percentage of "code operations" is calculated and what specifically "code operations" refer to.After running Polyspace (Code Prover), in the "Reasons for Unchecked Code" section, if the progress of the "code operations" is not 100%, I would like to know how the percentage of "code operations" is calculated and what specifically "code operations" refer to. After running Polyspace (Code Prover), in the "Reasons for Unchecked Code" section, if the progress of the "code operations" is not 100%, I would like to know how the percentage of "code operations" is calculated and what specifically "code operations" refer to. polyspace, matlab, code prover, reasons for unchecked code, code operations MATLAB Answers — New Questions
How can I deploy a standalone app for obtain data in real time from simulink
I create a simulink file for obtaining data from joystick, then I create an app in appdesigner to show data. In appdesigner I am using set_param() to set time simulation and get_param() to get data from output port in simulink when simulink is running that is the reason why I am using get_param() instead of sim function to run simulink. My app operates well . But afte I deploy a standalone desktop app for my project, when I test it comeout this error: Unsupported command in deployed mode: set_param.
I find that this function is not supported follow this link: https://www.mathworks.com/help/compiler/unsupported-functions.html
Have any another way to help me get data in real time from simulink and I can deploy a standalone app for using in another pc?
I am looking forward to hearing from you.
Thank youI create a simulink file for obtaining data from joystick, then I create an app in appdesigner to show data. In appdesigner I am using set_param() to set time simulation and get_param() to get data from output port in simulink when simulink is running that is the reason why I am using get_param() instead of sim function to run simulink. My app operates well . But afte I deploy a standalone desktop app for my project, when I test it comeout this error: Unsupported command in deployed mode: set_param.
I find that this function is not supported follow this link: https://www.mathworks.com/help/compiler/unsupported-functions.html
Have any another way to help me get data in real time from simulink and I can deploy a standalone app for using in another pc?
I am looking forward to hearing from you.
Thank you I create a simulink file for obtaining data from joystick, then I create an app in appdesigner to show data. In appdesigner I am using set_param() to set time simulation and get_param() to get data from output port in simulink when simulink is running that is the reason why I am using get_param() instead of sim function to run simulink. My app operates well . But afte I deploy a standalone desktop app for my project, when I test it comeout this error: Unsupported command in deployed mode: set_param.
I find that this function is not supported follow this link: https://www.mathworks.com/help/compiler/unsupported-functions.html
Have any another way to help me get data in real time from simulink and I can deploy a standalone app for using in another pc?
I am looking forward to hearing from you.
Thank you #standalone app #set_param, #simulink #get_param MATLAB Answers — New Questions