Uploaded August 2023 | Updated September 2026, 2 hours ago
Sometime you have an image of an object and you you want to convert it into a workable geometry in COMOSL or you want to make a 3D print of that object. While COMSOL permits you to import .dxf files, but your image is most likely a .png or .jpg file. Obviously in a professional image editing software you can convert an image into a vector and create a .dxf file but you may not have such software available. In this case you can directly use COMSOL image to curve feature available under developer section to achieve this goal. In this video i show you several examples how to do it.
Finance: N=74
subs=3438
Available budget (N): 3438-100-74*(74+1)=-2212
Storage limit: 2^ln(3438)=282,60
Sometime you have an image of an object and you you want to convert it into a workable geometry in COMOSL or you want to make a 3D print of that object. While COMSOL permits you to import .dxf files, but your image is most likely a .png or .jpg file. Obviously in a professional image editing software you can convert an image into a vector and create a .dxf file but you may not have such software available. In this case you can directly use COMSOL image to curve feature available under developer section to achieve this goal. In this video i show you several examples how to do it.
Finance: N=74
subs=3438
Available budget (N): 3438-100-74*(74+1)=-2212
Storage limit: 2^ln(3438)=282,60


![How to code a stopwatch in MATLAB App designer
In this video a show you how to code as simple stopwatch in MATLAB App designer. Just shared the thought process i went through to make this. i have coded it a while back and today i just had to think a bit to remember what i did before.
The work load becomes so huge these days that basically nothing moves forward. So to laugh at the life pressure I decided to make a new video. Dear life, if you are going to challenge me with a lot of pressure, I am going to accept the challenge and add some more on to of what you have for me.
Finance:
N=8, subs=190
Available budget (N):
190-100-8*(8+1)=18
Storage limit:
2^ln(190)=37.97
The code:
You must place its part under right functions/properties
%%%%%%%%%%%%%%%%%
properties (Access = private)
a=1; % Description
end
%%%%%%%%%%%%%%%%%
function startupFcn(app)
app.EditField.Value=00:00:00
app.EditField.FontSize=40;
end
%%%%%%%%%%%%%%%%%
function STARTButtonPushed(app, event)
S_ini=0;
if strcmp(app.STARTButton.Text,CONTINUE)
st=app.EditField.Value;
h=0;m=0;s=0;
for i=1:size(st,2)
if strcmpi(st(i),:)
break
end
h=[h st(i)];
end
for i=i+1:size(st,2)
if strcmpi(st(i),:)
break
end
m=[m st(i)];
end
for i=i+1:size(st,2)
if strcmpi(st(i),:)
break
end
s=[s st(i)];
end
S_ini=str2num(h)*3600+str2num(m)*60+str2num(s);
app.STARTButton.Text=START;
app.STOPButton.Text=STOP;
end
c=clock;
m=0;
S_tot=0;
app.a=0;
while app.a 0
c1=clock;
if c1(5)~=c(5)
S_tot=c1(6)-c(6)+60;
m=m+1;
c(5)=c1(5);
else
S_tot=c1(6)-c(6)+60*m;
end
S_tot=S_tot+S_ini;
A(1)=floor(S_tot/3600);
A(2)=floor((S_tot-A(1)*3600)/60);
A(3)=S_tot-A(1)*3600-A(2)*60;
app.EditField.Value=sprintf(%02.0f:%02.0f:%02.2f,A(1),A(2),A(3));
% app.EditField.Value=[num2str(A(1)) : num2str(A(2)) : num2str(A(3))];
% app.EditField.Value=num2str(S_tot);
pause(0.01);
end
end
%%%%%%%%%%%%%%%%%
function STOPButtonPushed(app, event)
if strcmpi(app.STOPButton.Text,RESTART)
app.EditField.Value=00:00:00;
app.STARTButton.Text=START;
app.STOPButton.Text=STOP;
return
end
if app.a 0
app.a=1;
app.STARTButton.Text=CONTINUE;
app.STOPButton.Text=RESTART;
end
end How to code a stopwatch in MATLAB App designer](https://i.ytimg.com/vi/VwJsteRqBWE/mqdefault.jpg)







