Tag Archives: matlab
Speeding up matrix expotentials by using GPU
Hey all:
I am trying to accelerate the speed of calculation of high dimisional matrix expotential by using GPU, but I find that the speed of calculating them on CPU is faster than GPU, and I can’t find where the problem is. The code is:
dev = gpuDevice();
CPU_time = 0;
GPU_time = 0;
for i = 1:10
CPU_matrix = rand(4096, 4096);
GPU_matrix = gpuArray(complex(CPU_matrix));
tic;
Exp_CPU = expm(-1i * CPU_matrix);
CPU_time = CPU_time + toc;
tic;
Exp_GPU = expm(-1i * GPU_matrix);
GPU_time = GPU_time + toc;
end
disp("CPU time:" + string(CPU_time));
disp("GPU time:" + string(GPU_time));
I tested this code using my computer, and its CPU configuration is: Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz 2.59 GHz, RAM 16 GB. Its GPU configuration is: NVIDIA GeForce GTX 1650. The final result is:
CPU time:452.1338
GPU time:915.5892
Why the speed of GPU is slower than CPU?
ThanksHey all:
I am trying to accelerate the speed of calculation of high dimisional matrix expotential by using GPU, but I find that the speed of calculating them on CPU is faster than GPU, and I can’t find where the problem is. The code is:
dev = gpuDevice();
CPU_time = 0;
GPU_time = 0;
for i = 1:10
CPU_matrix = rand(4096, 4096);
GPU_matrix = gpuArray(complex(CPU_matrix));
tic;
Exp_CPU = expm(-1i * CPU_matrix);
CPU_time = CPU_time + toc;
tic;
Exp_GPU = expm(-1i * GPU_matrix);
GPU_time = GPU_time + toc;
end
disp("CPU time:" + string(CPU_time));
disp("GPU time:" + string(GPU_time));
I tested this code using my computer, and its CPU configuration is: Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz 2.59 GHz, RAM 16 GB. Its GPU configuration is: NVIDIA GeForce GTX 1650. The final result is:
CPU time:452.1338
GPU time:915.5892
Why the speed of GPU is slower than CPU?
Thanks Hey all:
I am trying to accelerate the speed of calculation of high dimisional matrix expotential by using GPU, but I find that the speed of calculating them on CPU is faster than GPU, and I can’t find where the problem is. The code is:
dev = gpuDevice();
CPU_time = 0;
GPU_time = 0;
for i = 1:10
CPU_matrix = rand(4096, 4096);
GPU_matrix = gpuArray(complex(CPU_matrix));
tic;
Exp_CPU = expm(-1i * CPU_matrix);
CPU_time = CPU_time + toc;
tic;
Exp_GPU = expm(-1i * GPU_matrix);
GPU_time = GPU_time + toc;
end
disp("CPU time:" + string(CPU_time));
disp("GPU time:" + string(GPU_time));
I tested this code using my computer, and its CPU configuration is: Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz 2.59 GHz, RAM 16 GB. Its GPU configuration is: NVIDIA GeForce GTX 1650. The final result is:
CPU time:452.1338
GPU time:915.5892
Why the speed of GPU is slower than CPU?
Thanks gpu, matrix, matlab, time, expotential MATLAB Answers — New Questions
How to calculate HF/LF from ECG data
Hi, I am university student and doing reseach regarding relaxation methods by deep breathing.
So, I’d like to know HF/LF from subject’s ECG data. However I can’t come up with MATLAB code to calculate it.
if you have any idea, please help me.
file type is ‘.txt’ (attached file)Hi, I am university student and doing reseach regarding relaxation methods by deep breathing.
So, I’d like to know HF/LF from subject’s ECG data. However I can’t come up with MATLAB code to calculate it.
if you have any idea, please help me.
file type is ‘.txt’ (attached file) Hi, I am university student and doing reseach regarding relaxation methods by deep breathing.
So, I’d like to know HF/LF from subject’s ECG data. However I can’t come up with MATLAB code to calculate it.
if you have any idea, please help me.
file type is ‘.txt’ (attached file) #hf/lf, #hrv, frequency analysis MATLAB Answers — New Questions
How to use stacked bar charts to draw multiple confidence intervals
How to use stacked bar charts to draw multiple confidence intervals as follows
My sample data is as follows: the point estimated coefficient is
coef = [-0.0186
0.0057
-0.0067
-0.0007
0
-0.0295
-0.0517
-0.0651
-0.0689
-0.0862
-0.0866
];
The lower bounds for the point estimated coefficient at 1%, 5%, 10%, 15% and 20% levels are
Lower_Bound = [
-0.061944 -0.051528 -0.04632 -0.042792 -0.040104
-0.04203 -0.03056 -0.024825 -0.02094 -0.01798
-0.05314 -0.04198 -0.0364 -0.03262 -0.02974
-0.044302 -0.033824 -0.028585 -0.025036 -0.022332
0 0 0 0 0
-0.07723 -0.06576 -0.060025 -0.05614 -0.05318
-0.103042 -0.090704 -0.084535 -0.080356 -0.077172
-0.121602 -0.108024 -0.101235 -0.096636 -0.093132
-0.132368 -0.117116 -0.10949 -0.104324 -0.100388
-0.152506 -0.136572 -0.128605 -0.123208 -0.119096
-0.183092 -0.159904 -0.14831 -0.140456 -0.134472
];
The upper bounds for the point estimated coefficient at 1%, 5%, 10%, 15% and 20% levels are
Upper_Bound = [0.024744 0.014328 0.00912 0.005592 0.002904
0.05343 0.04196 0.036225 0.03234 0.02938
0.03974 0.02858 0.023 0.01922 0.01634
0.042902 0.032424 0.027185 0.023636 0.020932
0 0 0 0 0
0.01823 0.00676 0.001025 -0.00286 -0.00582
-0.000358 -0.012696 -0.018865 -0.023044 -0.026228
-0.008598 -0.022176 -0.028965 -0.033564 -0.037068
-0.005432 -0.020684 -0.02831 -0.033476 -0.037412
-0.019894 -0.035828 -0.043795 -0.049192 -0.053304
0.009892 -0.013296 -0.02489 -0.032744 -0.038728
];How to use stacked bar charts to draw multiple confidence intervals as follows
My sample data is as follows: the point estimated coefficient is
coef = [-0.0186
0.0057
-0.0067
-0.0007
0
-0.0295
-0.0517
-0.0651
-0.0689
-0.0862
-0.0866
];
The lower bounds for the point estimated coefficient at 1%, 5%, 10%, 15% and 20% levels are
Lower_Bound = [
-0.061944 -0.051528 -0.04632 -0.042792 -0.040104
-0.04203 -0.03056 -0.024825 -0.02094 -0.01798
-0.05314 -0.04198 -0.0364 -0.03262 -0.02974
-0.044302 -0.033824 -0.028585 -0.025036 -0.022332
0 0 0 0 0
-0.07723 -0.06576 -0.060025 -0.05614 -0.05318
-0.103042 -0.090704 -0.084535 -0.080356 -0.077172
-0.121602 -0.108024 -0.101235 -0.096636 -0.093132
-0.132368 -0.117116 -0.10949 -0.104324 -0.100388
-0.152506 -0.136572 -0.128605 -0.123208 -0.119096
-0.183092 -0.159904 -0.14831 -0.140456 -0.134472
];
The upper bounds for the point estimated coefficient at 1%, 5%, 10%, 15% and 20% levels are
Upper_Bound = [0.024744 0.014328 0.00912 0.005592 0.002904
0.05343 0.04196 0.036225 0.03234 0.02938
0.03974 0.02858 0.023 0.01922 0.01634
0.042902 0.032424 0.027185 0.023636 0.020932
0 0 0 0 0
0.01823 0.00676 0.001025 -0.00286 -0.00582
-0.000358 -0.012696 -0.018865 -0.023044 -0.026228
-0.008598 -0.022176 -0.028965 -0.033564 -0.037068
-0.005432 -0.020684 -0.02831 -0.033476 -0.037412
-0.019894 -0.035828 -0.043795 -0.049192 -0.053304
0.009892 -0.013296 -0.02489 -0.032744 -0.038728
]; How to use stacked bar charts to draw multiple confidence intervals as follows
My sample data is as follows: the point estimated coefficient is
coef = [-0.0186
0.0057
-0.0067
-0.0007
0
-0.0295
-0.0517
-0.0651
-0.0689
-0.0862
-0.0866
];
The lower bounds for the point estimated coefficient at 1%, 5%, 10%, 15% and 20% levels are
Lower_Bound = [
-0.061944 -0.051528 -0.04632 -0.042792 -0.040104
-0.04203 -0.03056 -0.024825 -0.02094 -0.01798
-0.05314 -0.04198 -0.0364 -0.03262 -0.02974
-0.044302 -0.033824 -0.028585 -0.025036 -0.022332
0 0 0 0 0
-0.07723 -0.06576 -0.060025 -0.05614 -0.05318
-0.103042 -0.090704 -0.084535 -0.080356 -0.077172
-0.121602 -0.108024 -0.101235 -0.096636 -0.093132
-0.132368 -0.117116 -0.10949 -0.104324 -0.100388
-0.152506 -0.136572 -0.128605 -0.123208 -0.119096
-0.183092 -0.159904 -0.14831 -0.140456 -0.134472
];
The upper bounds for the point estimated coefficient at 1%, 5%, 10%, 15% and 20% levels are
Upper_Bound = [0.024744 0.014328 0.00912 0.005592 0.002904
0.05343 0.04196 0.036225 0.03234 0.02938
0.03974 0.02858 0.023 0.01922 0.01634
0.042902 0.032424 0.027185 0.023636 0.020932
0 0 0 0 0
0.01823 0.00676 0.001025 -0.00286 -0.00582
-0.000358 -0.012696 -0.018865 -0.023044 -0.026228
-0.008598 -0.022176 -0.028965 -0.033564 -0.037068
-0.005432 -0.020684 -0.02831 -0.033476 -0.037412
-0.019894 -0.035828 -0.043795 -0.049192 -0.053304
0.009892 -0.013296 -0.02489 -0.032744 -0.038728
]; stack, bar, baseline MATLAB Answers — New Questions
How to connect ESP8266 modeule to app designer via serial communication and wifi
I want to connect the ESP8266 wifi node mcu module to the application i designed in app designer via serial communication and also by wifi.I want to connect the ESP8266 wifi node mcu module to the application i designed in app designer via serial communication and also by wifi. I want to connect the ESP8266 wifi node mcu module to the application i designed in app designer via serial communication and also by wifi. esp8266 module, matlab, app MATLAB Answers — New Questions
Masking Subsystems Task 5 in Simulink Fundamentals course
Hello,
I did what the task asked. The result of it is same as the answer. I cannot move on the new task since the question says you cannot meet the requirements although I did. Could you help me please?Hello,
I did what the task asked. The result of it is same as the answer. I cannot move on the new task since the question says you cannot meet the requirements although I did. Could you help me please? Hello,
I did what the task asked. The result of it is same as the answer. I cannot move on the new task since the question says you cannot meet the requirements although I did. Could you help me please? simulink fundamentals, online course, self-paced, masking subsystems, disp() MATLAB Answers — New Questions
How to change the colorbar max and min number and correspond a certain color to the colormap ticks
My data’s max and min are 0.09 and 0. I want to
set the colorbar max and min value to 1 and -1 and
have green and red corresponds to the max and min values.
The colorbar ticks can be an interpolation from green to red with black at the middle.
Clim does not work because the green color corresponds to the data’s maximum instead of the colorbar limit’s maximum.
Please help…My data’s max and min are 0.09 and 0. I want to
set the colorbar max and min value to 1 and -1 and
have green and red corresponds to the max and min values.
The colorbar ticks can be an interpolation from green to red with black at the middle.
Clim does not work because the green color corresponds to the data’s maximum instead of the colorbar limit’s maximum.
Please help… My data’s max and min are 0.09 and 0. I want to
set the colorbar max and min value to 1 and -1 and
have green and red corresponds to the max and min values.
The colorbar ticks can be an interpolation from green to red with black at the middle.
Clim does not work because the green color corresponds to the data’s maximum instead of the colorbar limit’s maximum.
Please help… colorbar, color MATLAB Answers — New Questions
Error converting from Simulink.SimulationInput to double
%% Speed Array
Speed = zeros(1,5001);
len = numel(Speed);
q=0;
for s = 1:len
Speed(1,s) = q;
q = q + (1/(len-1));
end
Trq_inst = zeros(1,401);
len_trq = numel(Trq_inst);
Trq_ref =1;
for t = 1:(len_trq)
% simIn = zeros(1,401);
% simOutputs = zeros(1,401);
Trq_inst(1,t)= Trq_ref;
for i = 1:len
simIn(i) = Simulink.SimulationInput(‘fl_name’);
simIn(i) = setBlockParameter(simIn(i),’fl_name/Speed_sweep’,’Spd’,Speed(i));
end
simOutputs = sim(simIn);
for i = 1: len
Res1 = simOutputs(1,i).sldemo_absbrake_output{1}.Values.Res1.Data;
Res2= simOutputs(1,i).sldemo_absbrake_output{1}.Values.Res2.Data;
Struc = struct("Res1",Res1,"Res2",Res2);
fname = sprintf(‘Trq%d_Spd%d.mat’, Trq_ins(1,t)*400,5000*Speed(1,i));
save(fname,"Struc")
%save("trq_400.mat","Struc")
end
I am getting an error for the Simulink.SimulationInput converting to double.%% Speed Array
Speed = zeros(1,5001);
len = numel(Speed);
q=0;
for s = 1:len
Speed(1,s) = q;
q = q + (1/(len-1));
end
Trq_inst = zeros(1,401);
len_trq = numel(Trq_inst);
Trq_ref =1;
for t = 1:(len_trq)
% simIn = zeros(1,401);
% simOutputs = zeros(1,401);
Trq_inst(1,t)= Trq_ref;
for i = 1:len
simIn(i) = Simulink.SimulationInput(‘fl_name’);
simIn(i) = setBlockParameter(simIn(i),’fl_name/Speed_sweep’,’Spd’,Speed(i));
end
simOutputs = sim(simIn);
for i = 1: len
Res1 = simOutputs(1,i).sldemo_absbrake_output{1}.Values.Res1.Data;
Res2= simOutputs(1,i).sldemo_absbrake_output{1}.Values.Res2.Data;
Struc = struct("Res1",Res1,"Res2",Res2);
fname = sprintf(‘Trq%d_Spd%d.mat’, Trq_ins(1,t)*400,5000*Speed(1,i));
save(fname,"Struc")
%save("trq_400.mat","Struc")
end
I am getting an error for the Simulink.SimulationInput converting to double. %% Speed Array
Speed = zeros(1,5001);
len = numel(Speed);
q=0;
for s = 1:len
Speed(1,s) = q;
q = q + (1/(len-1));
end
Trq_inst = zeros(1,401);
len_trq = numel(Trq_inst);
Trq_ref =1;
for t = 1:(len_trq)
% simIn = zeros(1,401);
% simOutputs = zeros(1,401);
Trq_inst(1,t)= Trq_ref;
for i = 1:len
simIn(i) = Simulink.SimulationInput(‘fl_name’);
simIn(i) = setBlockParameter(simIn(i),’fl_name/Speed_sweep’,’Spd’,Speed(i));
end
simOutputs = sim(simIn);
for i = 1: len
Res1 = simOutputs(1,i).sldemo_absbrake_output{1}.Values.Res1.Data;
Res2= simOutputs(1,i).sldemo_absbrake_output{1}.Values.Res2.Data;
Struc = struct("Res1",Res1,"Res2",Res2);
fname = sprintf(‘Trq%d_Spd%d.mat’, Trq_ins(1,t)*400,5000*Speed(1,i));
save(fname,"Struc")
%save("trq_400.mat","Struc")
end
I am getting an error for the Simulink.SimulationInput converting to double. simulink.simulationinput, double MATLAB Answers — New Questions
double labels on x axis on a tiledlayout plot
Hi,
I would like to have two series of label on a tile in a tileled layout plot.
One axis would indicate time and another would indicate position.
How can I achive that?Hi,
I would like to have two series of label on a tile in a tileled layout plot.
One axis would indicate time and another would indicate position.
How can I achive that? Hi,
I would like to have two series of label on a tile in a tileled layout plot.
One axis would indicate time and another would indicate position.
How can I achive that? tilledlayout, double lables MATLAB Answers — New Questions
WHY my matlab has encountered an internal problem and need to close when i open it??
These are Details:
————————————————————————
Assertion detected at Mon Oct 03 18:40:57 2016
————————————————————————
Configuration:
Crash Decoding : Disabled – No sandbox or build area path
Crash Mode : continue (default)
Current Graphics Driver: Unknown hardware
Default Encoding : GBK
Deployed : false
Graphics card 1 : Intel Corporation ( 0x8086 ) Intel(R) HD Graphics 520 Version 20.19.15.4444
Host Name : LAPTOP-VNORS65E
Java Crash Report : C:UsersFreiqAppDataLocalTemphs_error_pid8216.log
MATLAB Architecture : win64
MATLAB Entitlement ID: 1921891
MATLAB Root : C:Program FilesMATLABR2016b
MATLAB Version : 9.1.0.441655 (R2016b)
OpenGL : hardware
Operating System : Microsoft Windows 10
Processor ID : x86 Family 6 Model 78 Stepping 3, GenuineIntel
Virtual Machine : Java 1.7.0_60-b19 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
Window System : Version 10.0 (Build 14393)
Fault Count: 1
Assertion in void __cdecl `anonymous-namespace’::mwJavaAbort(void) at b:matlabsrcjmijmijavainit.cpp line 1418:
Fatal Java Exception. See Java Crash Report for details.
Register State (captured):
RAX = 000000001082f2e8 RBX = 000000001082f2e8
RCX = 000000014802bea0 RDX = 0000000000000000
RSP = 000000014802be20 RBP = 000000001dc893b0
RSI = 000000001082f2e8 RDI = 0000000000000000
R8 = 0000000000000000 R9 = 00007ffaafef0000
R10 = 000000001081f317 R11 = 000000001081f317
R12 = 000000001dc893b0 R13 = 000000014802c4e0
R14 = 000000001081f218 R15 = 000000001082f268
RIP = 000000001065971a EFL = 00000202
CS = 0033 FS = 0053 GS = 002b
Stack Trace (captured):
[ 0] 0x0000000010654153 C:Program FilesMATLABR2016bbinwin64libmwfl.dll+00082259
[ 1] 0x0000000010652a68 C:Program FilesMATLABR2016bbinwin64libmwfl.dll+00076392
[ 2] 0x0000000010655b2a C:Program FilesMATLABR2016bbinwin64libmwfl.dll+00088874
[ 3] 0x0000000010655377 C:Program FilesMATLABR2016bbinwin64libmwfl.dll+00086903
[ 4] 0x0000000010659168 C:Program FilesMATLABR2016bbinwin64libmwfl.dll+00102760
[ 5] 0x000000001dc28c27 C:Program FilesMATLABR2016bbinwin64jmi.dll+00691239
[ 6] 0x0000000067c77b6d C:Program FilesMATLABR2016bsysjavajrewin64jrebinserverjvm.dll+02390893
[ 7] 0x0000000067c60ad8 C:Program FilesMATLABR2016bsysjavajrewin64jrebinserverjvm.dll+02296536
[ 8] 0x0000000067c788e6 C:Program FilesMATLABR2016bsysjavajrewin64jrebinserverjvm.dll+02394342
[ 9] 0x0000000067c7c2d8 C:Program FilesMATLABR2016bsysjavajrewin64jrebinserverjvm.dll+02409176
[ 10] 0x0000000067d13a48 C:Program FilesMATLABR2016bsysjavajrewin64jrebinserverjvm.dll+03029576
[ 11] 0x00007ffadf92991d C:WINDOWSSYSTEM32ntdll.dll+00694557
[ 12] 0x00007ffadf8c86d3 C:WINDOWSSYSTEM32ntdll.dll+00296659
[ 13] 0x00007ffadf928a3a C:WINDOWSSYSTEM32ntdll.dll+00690746
[ 14] 0x00007ffad581025c C:WINDOWSSYSTEM32chtbrkg.dll+00131676
[ 15] 0x00007ffadd72bf21 C:WINDOWSSystem32WS2_32.dll+00048929
[ 16] 0x0000000067703bbe C:Program FilesMATLABR2016bsysjavajrewin64jrebinnio.dll+00015294
[ 17] 0x00000000436c3150 <unknown-module>+00000000These are Details:
————————————————————————
Assertion detected at Mon Oct 03 18:40:57 2016
————————————————————————
Configuration:
Crash Decoding : Disabled – No sandbox or build area path
Crash Mode : continue (default)
Current Graphics Driver: Unknown hardware
Default Encoding : GBK
Deployed : false
Graphics card 1 : Intel Corporation ( 0x8086 ) Intel(R) HD Graphics 520 Version 20.19.15.4444
Host Name : LAPTOP-VNORS65E
Java Crash Report : C:UsersFreiqAppDataLocalTemphs_error_pid8216.log
MATLAB Architecture : win64
MATLAB Entitlement ID: 1921891
MATLAB Root : C:Program FilesMATLABR2016b
MATLAB Version : 9.1.0.441655 (R2016b)
OpenGL : hardware
Operating System : Microsoft Windows 10
Processor ID : x86 Family 6 Model 78 Stepping 3, GenuineIntel
Virtual Machine : Java 1.7.0_60-b19 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
Window System : Version 10.0 (Build 14393)
Fault Count: 1
Assertion in void __cdecl `anonymous-namespace’::mwJavaAbort(void) at b:matlabsrcjmijmijavainit.cpp line 1418:
Fatal Java Exception. See Java Crash Report for details.
Register State (captured):
RAX = 000000001082f2e8 RBX = 000000001082f2e8
RCX = 000000014802bea0 RDX = 0000000000000000
RSP = 000000014802be20 RBP = 000000001dc893b0
RSI = 000000001082f2e8 RDI = 0000000000000000
R8 = 0000000000000000 R9 = 00007ffaafef0000
R10 = 000000001081f317 R11 = 000000001081f317
R12 = 000000001dc893b0 R13 = 000000014802c4e0
R14 = 000000001081f218 R15 = 000000001082f268
RIP = 000000001065971a EFL = 00000202
CS = 0033 FS = 0053 GS = 002b
Stack Trace (captured):
[ 0] 0x0000000010654153 C:Program FilesMATLABR2016bbinwin64libmwfl.dll+00082259
[ 1] 0x0000000010652a68 C:Program FilesMATLABR2016bbinwin64libmwfl.dll+00076392
[ 2] 0x0000000010655b2a C:Program FilesMATLABR2016bbinwin64libmwfl.dll+00088874
[ 3] 0x0000000010655377 C:Program FilesMATLABR2016bbinwin64libmwfl.dll+00086903
[ 4] 0x0000000010659168 C:Program FilesMATLABR2016bbinwin64libmwfl.dll+00102760
[ 5] 0x000000001dc28c27 C:Program FilesMATLABR2016bbinwin64jmi.dll+00691239
[ 6] 0x0000000067c77b6d C:Program FilesMATLABR2016bsysjavajrewin64jrebinserverjvm.dll+02390893
[ 7] 0x0000000067c60ad8 C:Program FilesMATLABR2016bsysjavajrewin64jrebinserverjvm.dll+02296536
[ 8] 0x0000000067c788e6 C:Program FilesMATLABR2016bsysjavajrewin64jrebinserverjvm.dll+02394342
[ 9] 0x0000000067c7c2d8 C:Program FilesMATLABR2016bsysjavajrewin64jrebinserverjvm.dll+02409176
[ 10] 0x0000000067d13a48 C:Program FilesMATLABR2016bsysjavajrewin64jrebinserverjvm.dll+03029576
[ 11] 0x00007ffadf92991d C:WINDOWSSYSTEM32ntdll.dll+00694557
[ 12] 0x00007ffadf8c86d3 C:WINDOWSSYSTEM32ntdll.dll+00296659
[ 13] 0x00007ffadf928a3a C:WINDOWSSYSTEM32ntdll.dll+00690746
[ 14] 0x00007ffad581025c C:WINDOWSSYSTEM32chtbrkg.dll+00131676
[ 15] 0x00007ffadd72bf21 C:WINDOWSSystem32WS2_32.dll+00048929
[ 16] 0x0000000067703bbe C:Program FilesMATLABR2016bsysjavajrewin64jrebinnio.dll+00015294
[ 17] 0x00000000436c3150 <unknown-module>+00000000 These are Details:
————————————————————————
Assertion detected at Mon Oct 03 18:40:57 2016
————————————————————————
Configuration:
Crash Decoding : Disabled – No sandbox or build area path
Crash Mode : continue (default)
Current Graphics Driver: Unknown hardware
Default Encoding : GBK
Deployed : false
Graphics card 1 : Intel Corporation ( 0x8086 ) Intel(R) HD Graphics 520 Version 20.19.15.4444
Host Name : LAPTOP-VNORS65E
Java Crash Report : C:UsersFreiqAppDataLocalTemphs_error_pid8216.log
MATLAB Architecture : win64
MATLAB Entitlement ID: 1921891
MATLAB Root : C:Program FilesMATLABR2016b
MATLAB Version : 9.1.0.441655 (R2016b)
OpenGL : hardware
Operating System : Microsoft Windows 10
Processor ID : x86 Family 6 Model 78 Stepping 3, GenuineIntel
Virtual Machine : Java 1.7.0_60-b19 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
Window System : Version 10.0 (Build 14393)
Fault Count: 1
Assertion in void __cdecl `anonymous-namespace’::mwJavaAbort(void) at b:matlabsrcjmijmijavainit.cpp line 1418:
Fatal Java Exception. See Java Crash Report for details.
Register State (captured):
RAX = 000000001082f2e8 RBX = 000000001082f2e8
RCX = 000000014802bea0 RDX = 0000000000000000
RSP = 000000014802be20 RBP = 000000001dc893b0
RSI = 000000001082f2e8 RDI = 0000000000000000
R8 = 0000000000000000 R9 = 00007ffaafef0000
R10 = 000000001081f317 R11 = 000000001081f317
R12 = 000000001dc893b0 R13 = 000000014802c4e0
R14 = 000000001081f218 R15 = 000000001082f268
RIP = 000000001065971a EFL = 00000202
CS = 0033 FS = 0053 GS = 002b
Stack Trace (captured):
[ 0] 0x0000000010654153 C:Program FilesMATLABR2016bbinwin64libmwfl.dll+00082259
[ 1] 0x0000000010652a68 C:Program FilesMATLABR2016bbinwin64libmwfl.dll+00076392
[ 2] 0x0000000010655b2a C:Program FilesMATLABR2016bbinwin64libmwfl.dll+00088874
[ 3] 0x0000000010655377 C:Program FilesMATLABR2016bbinwin64libmwfl.dll+00086903
[ 4] 0x0000000010659168 C:Program FilesMATLABR2016bbinwin64libmwfl.dll+00102760
[ 5] 0x000000001dc28c27 C:Program FilesMATLABR2016bbinwin64jmi.dll+00691239
[ 6] 0x0000000067c77b6d C:Program FilesMATLABR2016bsysjavajrewin64jrebinserverjvm.dll+02390893
[ 7] 0x0000000067c60ad8 C:Program FilesMATLABR2016bsysjavajrewin64jrebinserverjvm.dll+02296536
[ 8] 0x0000000067c788e6 C:Program FilesMATLABR2016bsysjavajrewin64jrebinserverjvm.dll+02394342
[ 9] 0x0000000067c7c2d8 C:Program FilesMATLABR2016bsysjavajrewin64jrebinserverjvm.dll+02409176
[ 10] 0x0000000067d13a48 C:Program FilesMATLABR2016bsysjavajrewin64jrebinserverjvm.dll+03029576
[ 11] 0x00007ffadf92991d C:WINDOWSSYSTEM32ntdll.dll+00694557
[ 12] 0x00007ffadf8c86d3 C:WINDOWSSYSTEM32ntdll.dll+00296659
[ 13] 0x00007ffadf928a3a C:WINDOWSSYSTEM32ntdll.dll+00690746
[ 14] 0x00007ffad581025c C:WINDOWSSYSTEM32chtbrkg.dll+00131676
[ 15] 0x00007ffadd72bf21 C:WINDOWSSystem32WS2_32.dll+00048929
[ 16] 0x0000000067703bbe C:Program FilesMATLABR2016bsysjavajrewin64jrebinnio.dll+00015294
[ 17] 0x00000000436c3150 <unknown-module>+00000000 encountering problems when opening MATLAB Answers — New Questions
How to compute response to single node impulse in structural model from modal eigenvectors directly
According to https://www.mathworks.com/matlabcentral/answers/1968759-scaled-mode-shapes-in-modal-analysis-of-a-simulated-system-and-a-wind-turbine-blade?s_tid=ta_ans_results , in a modal analysis, for each mode shape vector, the component with the largest absolute value is scaled to 1, and the rest of the components in the vector are scaled accordingly for ease of visual comparison of the shapes. I have a structural model (femodel(AnalysisType="structuralModal")with displacement vector results u=[u_x, u_y,u_z ] for various frequencies. I would like to compute the amplitudes of all of the frequencies (found in a limited range of course) for a unit impact vector n ( a delta function in time) at any node directly from the components of u and think it is something like just the inner product of n with u at that node were u not arbitrarily normalized, and by that I take the answer to mean there is one scale factor for the entire u for any node. I’d like to do that for two cases: 1) any node/mass element within the volume as if it were struck by a dark matter particle (assuming assumptons of elastic continuum mechanics remain valid) and 2) for any surface node as if it were struck by a BB or similar – I mean the impulse could have normal and traction components. Perhaps this is just what a transient analysis does . I don’t want to perform a transient analysis as found in examples like the tuning fork for every node and go some analysis of the resulting motions to derive what I’m after, just compute the amplitudes of the normal modes. ANy way to do this?According to https://www.mathworks.com/matlabcentral/answers/1968759-scaled-mode-shapes-in-modal-analysis-of-a-simulated-system-and-a-wind-turbine-blade?s_tid=ta_ans_results , in a modal analysis, for each mode shape vector, the component with the largest absolute value is scaled to 1, and the rest of the components in the vector are scaled accordingly for ease of visual comparison of the shapes. I have a structural model (femodel(AnalysisType="structuralModal")with displacement vector results u=[u_x, u_y,u_z ] for various frequencies. I would like to compute the amplitudes of all of the frequencies (found in a limited range of course) for a unit impact vector n ( a delta function in time) at any node directly from the components of u and think it is something like just the inner product of n with u at that node were u not arbitrarily normalized, and by that I take the answer to mean there is one scale factor for the entire u for any node. I’d like to do that for two cases: 1) any node/mass element within the volume as if it were struck by a dark matter particle (assuming assumptons of elastic continuum mechanics remain valid) and 2) for any surface node as if it were struck by a BB or similar – I mean the impulse could have normal and traction components. Perhaps this is just what a transient analysis does . I don’t want to perform a transient analysis as found in examples like the tuning fork for every node and go some analysis of the resulting motions to derive what I’m after, just compute the amplitudes of the normal modes. ANy way to do this? According to https://www.mathworks.com/matlabcentral/answers/1968759-scaled-mode-shapes-in-modal-analysis-of-a-simulated-system-and-a-wind-turbine-blade?s_tid=ta_ans_results , in a modal analysis, for each mode shape vector, the component with the largest absolute value is scaled to 1, and the rest of the components in the vector are scaled accordingly for ease of visual comparison of the shapes. I have a structural model (femodel(AnalysisType="structuralModal")with displacement vector results u=[u_x, u_y,u_z ] for various frequencies. I would like to compute the amplitudes of all of the frequencies (found in a limited range of course) for a unit impact vector n ( a delta function in time) at any node directly from the components of u and think it is something like just the inner product of n with u at that node were u not arbitrarily normalized, and by that I take the answer to mean there is one scale factor for the entire u for any node. I’d like to do that for two cases: 1) any node/mass element within the volume as if it were struck by a dark matter particle (assuming assumptons of elastic continuum mechanics remain valid) and 2) for any surface node as if it were struck by a BB or similar – I mean the impulse could have normal and traction components. Perhaps this is just what a transient analysis does . I don’t want to perform a transient analysis as found in examples like the tuning fork for every node and go some analysis of the resulting motions to derive what I’m after, just compute the amplitudes of the normal modes. ANy way to do this? modal, analysis, normalization, transient, structural analysis MATLAB Answers — New Questions
Appreciate help with satellite MarkSize and MarkerColor … seems ridiculous to have to ask but I can not waste another hour trying.
Hello. Ihave read the help and tried several variations of the below. MarkerSize and MarkerColor are both properties in the satellite funciton (witing the satelliteScenario). I have tries many variations.. ‘MarkerSize’, 10 // MarkerSize=10 // "MarkerColor", "m", etc… One exmaple is below. I keep getting errors that neither MarkerSize nor MarkerColor are recognized parameters. May be missing something dumb, but have spent an absurb amount of time trying to change colors. It does NOT seem like the help can be right (aside – really seems like the error messages and help could be smarted at this point… pretty obvious after 20 tries what I am trying to do). Apreciate any help.
OneWeb_Sats= satellite(OneWeb,"OneWeb_TLEs_20240817_242d.tle", ‘MarkerColor’,"magenta", ‘MarkerSize’, 10)
Error using parseParameterInputsML (line 118)
‘MarkerColor’ is not a recognized parameter. For a list of valid name-value pair arguments, see the documentation for this function.
Error in coder.internal.parseParameterInputs (line 91)
pstruct = parseParameterInputsML({},parms,options,varargin);
Error in satelliteScenario/satelliteHello. Ihave read the help and tried several variations of the below. MarkerSize and MarkerColor are both properties in the satellite funciton (witing the satelliteScenario). I have tries many variations.. ‘MarkerSize’, 10 // MarkerSize=10 // "MarkerColor", "m", etc… One exmaple is below. I keep getting errors that neither MarkerSize nor MarkerColor are recognized parameters. May be missing something dumb, but have spent an absurb amount of time trying to change colors. It does NOT seem like the help can be right (aside – really seems like the error messages and help could be smarted at this point… pretty obvious after 20 tries what I am trying to do). Apreciate any help.
OneWeb_Sats= satellite(OneWeb,"OneWeb_TLEs_20240817_242d.tle", ‘MarkerColor’,"magenta", ‘MarkerSize’, 10)
Error using parseParameterInputsML (line 118)
‘MarkerColor’ is not a recognized parameter. For a list of valid name-value pair arguments, see the documentation for this function.
Error in coder.internal.parseParameterInputs (line 91)
pstruct = parseParameterInputsML({},parms,options,varargin);
Error in satelliteScenario/satellite Hello. Ihave read the help and tried several variations of the below. MarkerSize and MarkerColor are both properties in the satellite funciton (witing the satelliteScenario). I have tries many variations.. ‘MarkerSize’, 10 // MarkerSize=10 // "MarkerColor", "m", etc… One exmaple is below. I keep getting errors that neither MarkerSize nor MarkerColor are recognized parameters. May be missing something dumb, but have spent an absurb amount of time trying to change colors. It does NOT seem like the help can be right (aside – really seems like the error messages and help could be smarted at this point… pretty obvious after 20 tries what I am trying to do). Apreciate any help.
OneWeb_Sats= satellite(OneWeb,"OneWeb_TLEs_20240817_242d.tle", ‘MarkerColor’,"magenta", ‘MarkerSize’, 10)
Error using parseParameterInputsML (line 118)
‘MarkerColor’ is not a recognized parameter. For a list of valid name-value pair arguments, see the documentation for this function.
Error in coder.internal.parseParameterInputs (line 91)
pstruct = parseParameterInputsML({},parms,options,varargin);
Error in satelliteScenario/satellite satellite properties, satellite MATLAB Answers — New Questions
Communication between MATLAB and Crazyflie
I want to send commands from MATLAB/Simulink to Crazyflieb 2.0. How can I do it?I want to send commands from MATLAB/Simulink to Crazyflieb 2.0. How can I do it? I want to send commands from MATLAB/Simulink to Crazyflieb 2.0. How can I do it? crazyflie, matlab, simulink, communication MATLAB Answers — New Questions
delaunay function on raspberry pi?
Hello all,
I am trying to convert my code so it can run on a raspberry pi. However, part of my code is a map generator which uses the delaunay function to create a triangulation as follows:
(…)
x = x(:);
y = y(:);
z = z(:);
faces = delaunay(x, y);
randomMap = triangulation(faces, x, y, z);
end
Matlab Coder says it cannot convert the delaunay function. Is there any other function I can use to port this? I have already tried using ‘delaunayTriangulation’ or ‘alphashape’ instead, and tried to directly call ‘qhull’, but neither of these work. And since the delaunay function is built-in, I cannot look at the source code to fix this issue either and I do not know enough about the implementation to implement it from scratch.
Any help is appreciated!Hello all,
I am trying to convert my code so it can run on a raspberry pi. However, part of my code is a map generator which uses the delaunay function to create a triangulation as follows:
(…)
x = x(:);
y = y(:);
z = z(:);
faces = delaunay(x, y);
randomMap = triangulation(faces, x, y, z);
end
Matlab Coder says it cannot convert the delaunay function. Is there any other function I can use to port this? I have already tried using ‘delaunayTriangulation’ or ‘alphashape’ instead, and tried to directly call ‘qhull’, but neither of these work. And since the delaunay function is built-in, I cannot look at the source code to fix this issue either and I do not know enough about the implementation to implement it from scratch.
Any help is appreciated! Hello all,
I am trying to convert my code so it can run on a raspberry pi. However, part of my code is a map generator which uses the delaunay function to create a triangulation as follows:
(…)
x = x(:);
y = y(:);
z = z(:);
faces = delaunay(x, y);
randomMap = triangulation(faces, x, y, z);
end
Matlab Coder says it cannot convert the delaunay function. Is there any other function I can use to port this? I have already tried using ‘delaunayTriangulation’ or ‘alphashape’ instead, and tried to directly call ‘qhull’, but neither of these work. And since the delaunay function is built-in, I cannot look at the source code to fix this issue either and I do not know enough about the implementation to implement it from scratch.
Any help is appreciated! matlab coder, raspberry pi, delaunay, mesh, triangulation MATLAB Answers — New Questions
Saving image with high resolution
Hi,
I use this line of code to save my figure as .png : print(name,’-dpng’,’-r0′),
but i get a bad resolution picture bespite that the figure in matlab is good. I tried print(name,’-dpng’,’-r500′), but nothing changed.
How can i save figure as .png but with the same quality as the matlab figure?
Thank youHi,
I use this line of code to save my figure as .png : print(name,’-dpng’,’-r0′),
but i get a bad resolution picture bespite that the figure in matlab is good. I tried print(name,’-dpng’,’-r500′), but nothing changed.
How can i save figure as .png but with the same quality as the matlab figure?
Thank you Hi,
I use this line of code to save my figure as .png : print(name,’-dpng’,’-r0′),
but i get a bad resolution picture bespite that the figure in matlab is good. I tried print(name,’-dpng’,’-r500′), but nothing changed.
How can i save figure as .png but with the same quality as the matlab figure?
Thank you save figure, resolution MATLAB Answers — New Questions
How to check color image linear or nonlinear?
I have 24 bit RGB image. I want to check whether it is linear or nonlinear. How to check it.I have 24 bit RGB image. I want to check whether it is linear or nonlinear. How to check it. I have 24 bit RGB image. I want to check whether it is linear or nonlinear. How to check it. linear, nonlinear, color image MATLAB Answers — New Questions
Troubleshooting ESP32-WROOM/ESP32WROVER Setup Error in Simulink Support Package for Arduino Hardware
When attempting to set up the ESP32-WROOM/ESP32-WROVER board in Simulink using the ‘Setup Hardware’ option, I encounter an error during the final verification step. Specifically, when clicking on ‘Test Connection,’ the download status fails. It is worth noting that the driver for the ESP32 is correctly installed. How can I resolve this issue?When attempting to set up the ESP32-WROOM/ESP32-WROVER board in Simulink using the ‘Setup Hardware’ option, I encounter an error during the final verification step. Specifically, when clicking on ‘Test Connection,’ the download status fails. It is worth noting that the driver for the ESP32 is correctly installed. How can I resolve this issue? When attempting to set up the ESP32-WROOM/ESP32-WROVER board in Simulink using the ‘Setup Hardware’ option, I encounter an error during the final verification step. Specifically, when clicking on ‘Test Connection,’ the download status fails. It is worth noting that the driver for the ESP32 is correctly installed. How can I resolve this issue? esp32, esp32wroom, esp32wrover, arduino, hardwaresetup, setup MATLAB Answers — New Questions
How i can add a car image to yellow boxes and at y coordinate 4,5,6 a road image? (Sorry i have low vocabulary of English).
close all;
clc;
loop = 200;
r = 9;
c = 20;
carOccuranceMidWay = 0.05; %0-1
carMoveMidWay = 0.4; %0-1
carMoveFastWay = 0.7; %0-1
carMoveSlowWay = 0.2; %0-1
% define grid
x = zeros(r, c);
figure;
% x(5,1) = 1;
%
for i = 1:loop
for j = 1:c – 1
if(rand <= carOccuranceMidWay && x(5,1) == 0)
x(5,1) = 1;
end
% car exit from highway
if(x(5,c – 1) == 1) %For centerline
x(5,c – 1) = 0;
end
if(x(4,c – 1) == 1) %For FastLane
x(4,c – 1) = 0;
end
if(x(6,c – 1) == 1) %For SlowLane
x(6,c – 1) = 0;
end
% car move
if(x(5, j) == 1 && x(5, j + 1) == 0) % transition rules #1 for centerlane movement
if(rand <= carMoveMidWay)
x(5, j ) = 0;
x(5, j + 1) = 1;
end
end
if(x(5, j) == 1 && x(5, j + 1) == 1 && x(4,j)== 0) % transition rules #2 for transition to FastLane
if(rand <= carMoveMidWay)
x(5, j ) = 0;
x(4, j ) = 1;
end
end
if(x(5, j) == 1 && x(5, j + 1) == 1 && x(6,j)== 0) % transition rules #3 for transition to SlowLane
if(rand <= carMoveMidWay)
x(5, j ) = 0;
x(6, j ) = 1;
end
end
if(x(6, j) == 1 && x(6, j + 1) == 0) % transition rules #4 for SlowLane movement
if(rand <= carMoveSlowWay)
x(6, j ) = 0;
x(6, j + 1) = 1;
end
end
if(x(4, j) == 1 && x(4, j + 1) == 0) % transition rules #5 for FastLane movement
if(rand <= carMoveFastWay)
x(4, j ) = 0;
x(4, j + 1) = 1;
end
end
% Animate
clf; % Clear figure
imagesc(x);
% Display grid
pause(0.01);
end % Pause for 0.01 s
endclose all;
clc;
loop = 200;
r = 9;
c = 20;
carOccuranceMidWay = 0.05; %0-1
carMoveMidWay = 0.4; %0-1
carMoveFastWay = 0.7; %0-1
carMoveSlowWay = 0.2; %0-1
% define grid
x = zeros(r, c);
figure;
% x(5,1) = 1;
%
for i = 1:loop
for j = 1:c – 1
if(rand <= carOccuranceMidWay && x(5,1) == 0)
x(5,1) = 1;
end
% car exit from highway
if(x(5,c – 1) == 1) %For centerline
x(5,c – 1) = 0;
end
if(x(4,c – 1) == 1) %For FastLane
x(4,c – 1) = 0;
end
if(x(6,c – 1) == 1) %For SlowLane
x(6,c – 1) = 0;
end
% car move
if(x(5, j) == 1 && x(5, j + 1) == 0) % transition rules #1 for centerlane movement
if(rand <= carMoveMidWay)
x(5, j ) = 0;
x(5, j + 1) = 1;
end
end
if(x(5, j) == 1 && x(5, j + 1) == 1 && x(4,j)== 0) % transition rules #2 for transition to FastLane
if(rand <= carMoveMidWay)
x(5, j ) = 0;
x(4, j ) = 1;
end
end
if(x(5, j) == 1 && x(5, j + 1) == 1 && x(6,j)== 0) % transition rules #3 for transition to SlowLane
if(rand <= carMoveMidWay)
x(5, j ) = 0;
x(6, j ) = 1;
end
end
if(x(6, j) == 1 && x(6, j + 1) == 0) % transition rules #4 for SlowLane movement
if(rand <= carMoveSlowWay)
x(6, j ) = 0;
x(6, j + 1) = 1;
end
end
if(x(4, j) == 1 && x(4, j + 1) == 0) % transition rules #5 for FastLane movement
if(rand <= carMoveFastWay)
x(4, j ) = 0;
x(4, j + 1) = 1;
end
end
% Animate
clf; % Clear figure
imagesc(x);
% Display grid
pause(0.01);
end % Pause for 0.01 s
end close all;
clc;
loop = 200;
r = 9;
c = 20;
carOccuranceMidWay = 0.05; %0-1
carMoveMidWay = 0.4; %0-1
carMoveFastWay = 0.7; %0-1
carMoveSlowWay = 0.2; %0-1
% define grid
x = zeros(r, c);
figure;
% x(5,1) = 1;
%
for i = 1:loop
for j = 1:c – 1
if(rand <= carOccuranceMidWay && x(5,1) == 0)
x(5,1) = 1;
end
% car exit from highway
if(x(5,c – 1) == 1) %For centerline
x(5,c – 1) = 0;
end
if(x(4,c – 1) == 1) %For FastLane
x(4,c – 1) = 0;
end
if(x(6,c – 1) == 1) %For SlowLane
x(6,c – 1) = 0;
end
% car move
if(x(5, j) == 1 && x(5, j + 1) == 0) % transition rules #1 for centerlane movement
if(rand <= carMoveMidWay)
x(5, j ) = 0;
x(5, j + 1) = 1;
end
end
if(x(5, j) == 1 && x(5, j + 1) == 1 && x(4,j)== 0) % transition rules #2 for transition to FastLane
if(rand <= carMoveMidWay)
x(5, j ) = 0;
x(4, j ) = 1;
end
end
if(x(5, j) == 1 && x(5, j + 1) == 1 && x(6,j)== 0) % transition rules #3 for transition to SlowLane
if(rand <= carMoveMidWay)
x(5, j ) = 0;
x(6, j ) = 1;
end
end
if(x(6, j) == 1 && x(6, j + 1) == 0) % transition rules #4 for SlowLane movement
if(rand <= carMoveSlowWay)
x(6, j ) = 0;
x(6, j + 1) = 1;
end
end
if(x(4, j) == 1 && x(4, j + 1) == 0) % transition rules #5 for FastLane movement
if(rand <= carMoveFastWay)
x(4, j ) = 0;
x(4, j + 1) = 1;
end
end
% Animate
clf; % Clear figure
imagesc(x);
% Display grid
pause(0.01);
end % Pause for 0.01 s
end highway simulation, how to add a car to a box, how to add a car image to a moving plot in matlab, matlab car code MATLAB Answers — New Questions
how to plot contour of 3D variable
HI
I have issue with my data
I have salinity data with dimension (time,Lat,Lon) and I want to plot a filled 3-D contour
I want to plot salinity at specific
timestep 1:13
for example the size of variable
Lat=24*25;
Lon=24*25;
Salinty=744*24*25;
I am getting error becouse the X ,Y and Salinity had different size
I try for loop but it didn’t worke
for i=1:12;
Sal(i,:,:)=Salinity(i,:,:);
figure
contourf(X,Y,Sal(i,:,:);
end
Can someone help?HI
I have issue with my data
I have salinity data with dimension (time,Lat,Lon) and I want to plot a filled 3-D contour
I want to plot salinity at specific
timestep 1:13
for example the size of variable
Lat=24*25;
Lon=24*25;
Salinty=744*24*25;
I am getting error becouse the X ,Y and Salinity had different size
I try for loop but it didn’t worke
for i=1:12;
Sal(i,:,:)=Salinity(i,:,:);
figure
contourf(X,Y,Sal(i,:,:);
end
Can someone help? HI
I have issue with my data
I have salinity data with dimension (time,Lat,Lon) and I want to plot a filled 3-D contour
I want to plot salinity at specific
timestep 1:13
for example the size of variable
Lat=24*25;
Lon=24*25;
Salinty=744*24*25;
I am getting error becouse the X ,Y and Salinity had different size
I try for loop but it didn’t worke
for i=1:12;
Sal(i,:,:)=Salinity(i,:,:);
figure
contourf(X,Y,Sal(i,:,:);
end
Can someone help? contour MATLAB Answers — New Questions
shape has NaN vertices when adding new shapes to the aggregate shape encloses a void; error assigning shape to antenna
I am creating a PCB antenna pattern adding together copper Polygons and rectangles to make the PCB trace pattern. The copper traces short back on themself forming a region with voids in it.
I have used shape.Rectangle() and shape.Polygon() to create the elements and added them together.
When I show the copper it looks right (needs a little cleanup, but OK).
When I show or mesh the antenna it throws a triangulation error.
Adding the last rectangle that closes the shape causes an NaN. This error was NOT happening in another pattern (make a shape, remove a notch from an edge, bridge the notch with a rectangle…).
…
copper = shape.Polygon(‘Vertices’, 0.001*[MinX MinY 0; MinX MaxY 0; MaxX MaxY 0; MaxX MinY 0]);
stem = shape.Rectangle ("Center", 0.001*[StemX MaxY+StemLen/2], ‘Length’, 0.001*StemWid, ‘Width’, 0.001*StemLen);
copper = copper + stem;
… add rectangles till a closed loop is formed. feed point in stem and loading reactance at far end…
…
show(copper); % looks OK other than jagged corners, see below
Ant = customAntenna (‘Shape’, copper, ‘Load’, Load);
show(Ant); % –> error. If commented, mesh(Ant, …) throws similar error (same error, different call back path)
createFeed (Ant, FeedPoint, 1);
meshconfig (Ant, ‘manual’);
mesh(Ant, ‘MaxEdgeLength’, .06,’MinEdgeLength’, 0.0005);
show(Ant) –> error
Error using triangulation
The coordinates of the input points must be finite values; Inf and NaN are not permitted.
Error in customAntenna/createGeometry (line 235)
tri = triangulation(tt.ConnectivityList,vert);
Error in em.MeshGeometry/protectedshow
Error in em.MeshGeometryAnalysis/show (line 31)
protectedshow(obj,varargin{:});
mesh(Ant, ‘MaxEdgeLength’, .06,’MinEdgeLength’, 0.0005); –> error
Error using triangulation
The coordinates of the input points must be finite values; Inf and NaN are not permitted.
Error in customAntenna/createGeometry (line 235)
tri = triangulation(tt.ConnectivityList,vert);
Error in customAntenna/meshGenerator (line 306)
createGeometry(obj);
Error in em.MeshGeometry/updateMesh
Error in em.MeshGeometry/protectedmesh
Error in em.MeshGeometryAnalysis/mesh (line 66)
protectedmesh(obj,varargin{:});
Error in patchNotch (line 89)
mesh(Ant, ‘MaxEdgeLength’, .06,’MinEdgeLength’, 0.0005);I am creating a PCB antenna pattern adding together copper Polygons and rectangles to make the PCB trace pattern. The copper traces short back on themself forming a region with voids in it.
I have used shape.Rectangle() and shape.Polygon() to create the elements and added them together.
When I show the copper it looks right (needs a little cleanup, but OK).
When I show or mesh the antenna it throws a triangulation error.
Adding the last rectangle that closes the shape causes an NaN. This error was NOT happening in another pattern (make a shape, remove a notch from an edge, bridge the notch with a rectangle…).
…
copper = shape.Polygon(‘Vertices’, 0.001*[MinX MinY 0; MinX MaxY 0; MaxX MaxY 0; MaxX MinY 0]);
stem = shape.Rectangle ("Center", 0.001*[StemX MaxY+StemLen/2], ‘Length’, 0.001*StemWid, ‘Width’, 0.001*StemLen);
copper = copper + stem;
… add rectangles till a closed loop is formed. feed point in stem and loading reactance at far end…
…
show(copper); % looks OK other than jagged corners, see below
Ant = customAntenna (‘Shape’, copper, ‘Load’, Load);
show(Ant); % –> error. If commented, mesh(Ant, …) throws similar error (same error, different call back path)
createFeed (Ant, FeedPoint, 1);
meshconfig (Ant, ‘manual’);
mesh(Ant, ‘MaxEdgeLength’, .06,’MinEdgeLength’, 0.0005);
show(Ant) –> error
Error using triangulation
The coordinates of the input points must be finite values; Inf and NaN are not permitted.
Error in customAntenna/createGeometry (line 235)
tri = triangulation(tt.ConnectivityList,vert);
Error in em.MeshGeometry/protectedshow
Error in em.MeshGeometryAnalysis/show (line 31)
protectedshow(obj,varargin{:});
mesh(Ant, ‘MaxEdgeLength’, .06,’MinEdgeLength’, 0.0005); –> error
Error using triangulation
The coordinates of the input points must be finite values; Inf and NaN are not permitted.
Error in customAntenna/createGeometry (line 235)
tri = triangulation(tt.ConnectivityList,vert);
Error in customAntenna/meshGenerator (line 306)
createGeometry(obj);
Error in em.MeshGeometry/updateMesh
Error in em.MeshGeometry/protectedmesh
Error in em.MeshGeometryAnalysis/mesh (line 66)
protectedmesh(obj,varargin{:});
Error in patchNotch (line 89)
mesh(Ant, ‘MaxEdgeLength’, .06,’MinEdgeLength’, 0.0005); I am creating a PCB antenna pattern adding together copper Polygons and rectangles to make the PCB trace pattern. The copper traces short back on themself forming a region with voids in it.
I have used shape.Rectangle() and shape.Polygon() to create the elements and added them together.
When I show the copper it looks right (needs a little cleanup, but OK).
When I show or mesh the antenna it throws a triangulation error.
Adding the last rectangle that closes the shape causes an NaN. This error was NOT happening in another pattern (make a shape, remove a notch from an edge, bridge the notch with a rectangle…).
…
copper = shape.Polygon(‘Vertices’, 0.001*[MinX MinY 0; MinX MaxY 0; MaxX MaxY 0; MaxX MinY 0]);
stem = shape.Rectangle ("Center", 0.001*[StemX MaxY+StemLen/2], ‘Length’, 0.001*StemWid, ‘Width’, 0.001*StemLen);
copper = copper + stem;
… add rectangles till a closed loop is formed. feed point in stem and loading reactance at far end…
…
show(copper); % looks OK other than jagged corners, see below
Ant = customAntenna (‘Shape’, copper, ‘Load’, Load);
show(Ant); % –> error. If commented, mesh(Ant, …) throws similar error (same error, different call back path)
createFeed (Ant, FeedPoint, 1);
meshconfig (Ant, ‘manual’);
mesh(Ant, ‘MaxEdgeLength’, .06,’MinEdgeLength’, 0.0005);
show(Ant) –> error
Error using triangulation
The coordinates of the input points must be finite values; Inf and NaN are not permitted.
Error in customAntenna/createGeometry (line 235)
tri = triangulation(tt.ConnectivityList,vert);
Error in em.MeshGeometry/protectedshow
Error in em.MeshGeometryAnalysis/show (line 31)
protectedshow(obj,varargin{:});
mesh(Ant, ‘MaxEdgeLength’, .06,’MinEdgeLength’, 0.0005); –> error
Error using triangulation
The coordinates of the input points must be finite values; Inf and NaN are not permitted.
Error in customAntenna/createGeometry (line 235)
tri = triangulation(tt.ConnectivityList,vert);
Error in customAntenna/meshGenerator (line 306)
createGeometry(obj);
Error in em.MeshGeometry/updateMesh
Error in em.MeshGeometry/protectedmesh
Error in em.MeshGeometryAnalysis/mesh (line 66)
protectedmesh(obj,varargin{:});
Error in patchNotch (line 89)
mesh(Ant, ‘MaxEdgeLength’, .06,’MinEdgeLength’, 0.0005); customantenna, shape, triangulation error, nan MATLAB Answers — New Questions
Why i am getting this error when trying to open a simulink test file?
Hi Mathworks Community, I am getting the below error when opening .mldatx simulink test file in matlab:
When opening the file in another account online it works fine, but in my primary account i get this error. Any idea how to resolve this error?Hi Mathworks Community, I am getting the below error when opening .mldatx simulink test file in matlab:
When opening the file in another account online it works fine, but in my primary account i get this error. Any idea how to resolve this error? Hi Mathworks Community, I am getting the below error when opening .mldatx simulink test file in matlab:
When opening the file in another account online it works fine, but in my primary account i get this error. Any idea how to resolve this error? simulink, simulink test, test manager MATLAB Answers — New Questions