Category: Matlab
Category Archives: Matlab
PLOTING DATA INTO GRAPHICS
EXECUTE THE RESULTS OF NUMBER, MATRIX, VECTOR OPERATIONS AND CONVERT THEM INTO GRAPHICS?
form book: Menke, W., 2024, Geophysical Data Analysis and Inverse Theory, Academic Press.EXECUTE THE RESULTS OF NUMBER, MATRIX, VECTOR OPERATIONS AND CONVERT THEM INTO GRAPHICS?
form book: Menke, W., 2024, Geophysical Data Analysis and Inverse Theory, Academic Press. EXECUTE THE RESULTS OF NUMBER, MATRIX, VECTOR OPERATIONS AND CONVERT THEM INTO GRAPHICS?
form book: Menke, W., 2024, Geophysical Data Analysis and Inverse Theory, Academic Press. #homework #help MATLAB Answers — New Questions
Local functions are not working in MatLab R2022a
I’m trying to write local functions in the way instructed in this video: https://www.youtube.com/watch?v=f0zKcuP3Wc0&list=PLlvaivyRxHmdTvpNBe4gKWrOBrcuxhpsl&index=48, beginning at 5:50. When running the code below, my MatLab R2022a says Unrecognized function or variable ‘mymean’. What am I missing here?
x = 1:10;
n = length(x);
avg = mymean(x,n)
function a = mymean(v,n)
a = sum(v)/n;
endI’m trying to write local functions in the way instructed in this video: https://www.youtube.com/watch?v=f0zKcuP3Wc0&list=PLlvaivyRxHmdTvpNBe4gKWrOBrcuxhpsl&index=48, beginning at 5:50. When running the code below, my MatLab R2022a says Unrecognized function or variable ‘mymean’. What am I missing here?
x = 1:10;
n = length(x);
avg = mymean(x,n)
function a = mymean(v,n)
a = sum(v)/n;
end I’m trying to write local functions in the way instructed in this video: https://www.youtube.com/watch?v=f0zKcuP3Wc0&list=PLlvaivyRxHmdTvpNBe4gKWrOBrcuxhpsl&index=48, beginning at 5:50. When running the code below, my MatLab R2022a says Unrecognized function or variable ‘mymean’. What am I missing here?
x = 1:10;
n = length(x);
avg = mymean(x,n)
function a = mymean(v,n)
a = sum(v)/n;
end function MATLAB Answers — New Questions
I am not able to load in my files when using the lidar labeler app
I have .las/laz, .ply files downloaded that I have successfully imported and worked with in the lidar viewer app however, I am not able to import them in the lidar labeler app. They do not show up when it is time to load the files in.
What could be the issue?
Thank you.I have .las/laz, .ply files downloaded that I have successfully imported and worked with in the lidar viewer app however, I am not able to import them in the lidar labeler app. They do not show up when it is time to load the files in.
What could be the issue?
Thank you. I have .las/laz, .ply files downloaded that I have successfully imported and worked with in the lidar viewer app however, I am not able to import them in the lidar labeler app. They do not show up when it is time to load the files in.
What could be the issue?
Thank you. lidar toolbox MATLAB Answers — New Questions
How to call matlab functions from a C/C++ project..???
I have a project written in C/C++ and I want to access some functions from the MATLAB. Is this possible and how.??/I have a project written in C/C++ and I want to access some functions from the MATLAB. Is this possible and how.??/ I have a project written in C/C++ and I want to access some functions from the MATLAB. Is this possible and how.??/ call matlab functions from a c/c++ project. MATLAB Answers — New Questions
How to integrate MATLAB .m file in Python script to run it in OPAL-RT Platform?
I am trying to run a simulink model which has two PVs connected with grid. The simulation will tun multiple times, the PV irradiance, temperature will be fed to each simulation through running a matlab file which will randomly select the irradiance, temparature and load values. The data will be saved after eaxh simulation. As I am relatively new using Python Script in Opal RT,can anyone suggest me how can I write the MATLAB file in the script and what would be the best way to write the code?
And ,if there is any example available like this , can you share it to me?I am trying to run a simulink model which has two PVs connected with grid. The simulation will tun multiple times, the PV irradiance, temperature will be fed to each simulation through running a matlab file which will randomly select the irradiance, temparature and load values. The data will be saved after eaxh simulation. As I am relatively new using Python Script in Opal RT,can anyone suggest me how can I write the MATLAB file in the script and what would be the best way to write the code?
And ,if there is any example available like this , can you share it to me? I am trying to run a simulink model which has two PVs connected with grid. The simulation will tun multiple times, the PV irradiance, temperature will be fed to each simulation through running a matlab file which will randomly select the irradiance, temparature and load values. The data will be saved after eaxh simulation. As I am relatively new using Python Script in Opal RT,can anyone suggest me how can I write the MATLAB file in the script and what would be the best way to write the code?
And ,if there is any example available like this , can you share it to me? opal rt MATLAB Answers — New Questions
Python process terminated unexpectedly after snapping 100-150 photos
Hey All
Basically as the title suggests, I am using MATLAB to call a opython function that snaps raw images and creates plots, however, when I snap close to 100-150 photos I tend to get an error that says process terminated unexpectedly. Any Sort of help would be much appreciated!Hey All
Basically as the title suggests, I am using MATLAB to call a opython function that snaps raw images and creates plots, however, when I snap close to 100-150 photos I tend to get an error that says process terminated unexpectedly. Any Sort of help would be much appreciated! Hey All
Basically as the title suggests, I am using MATLAB to call a opython function that snaps raw images and creates plots, however, when I snap close to 100-150 photos I tend to get an error that says process terminated unexpectedly. Any Sort of help would be much appreciated! python, image analyst, unexpected error, python interpreter, appdesigner MATLAB Answers — New Questions
Can we impose geometry constraints on fisheye lens calibration and rectification?
Assuming that the distorted lines generated by fisheye projection should be straight after rectification, can we use deep neural network to impose explicit geometry constraints onto processes of the fisheye lens calibration and the distorted image rectification?Assuming that the distorted lines generated by fisheye projection should be straight after rectification, can we use deep neural network to impose explicit geometry constraints onto processes of the fisheye lens calibration and the distorted image rectification? Assuming that the distorted lines generated by fisheye projection should be straight after rectification, can we use deep neural network to impose explicit geometry constraints onto processes of the fisheye lens calibration and the distorted image rectification? image processing, deep learning MATLAB Answers — New Questions
How can i plot PI controller step respone
I used the following steps to plot the step response using (step) function:
-> num2_PI=conv(395.5*[1 1/8],[0 -0.0005854 -0.01121 0.0003176]);
den2_PI=[ 1 1.117 10.18 0.0005226 0]+num2_PI;
TF2_PI=tf(num2_PI,den2_PI);
step(TF2_PI)
the plot was :
So , how can I read the overshoot, final value and other readings from this plotI used the following steps to plot the step response using (step) function:
-> num2_PI=conv(395.5*[1 1/8],[0 -0.0005854 -0.01121 0.0003176]);
den2_PI=[ 1 1.117 10.18 0.0005226 0]+num2_PI;
TF2_PI=tf(num2_PI,den2_PI);
step(TF2_PI)
the plot was :
So , how can I read the overshoot, final value and other readings from this plot I used the following steps to plot the step response using (step) function:
-> num2_PI=conv(395.5*[1 1/8],[0 -0.0005854 -0.01121 0.0003176]);
den2_PI=[ 1 1.117 10.18 0.0005226 0]+num2_PI;
TF2_PI=tf(num2_PI,den2_PI);
step(TF2_PI)
the plot was :
So , how can I read the overshoot, final value and other readings from this plot #step, #response, #tunning, #controller MATLAB Answers — New Questions
Running into error when using pwelch for FFT
I am trying to conduct a FFT on a wav file in order to then calculate SPL within a bandwidth (120-450hz). I am using code from another answered question and I get hung up on an error:
Error using signal.internal.spectral.welchparse>segment_info
The length of the segments cannot be greater than the length of the input signal.
Error in signal.internal.spectral.welchparse (line 34)
[L,noverlap,win] = segment_info(M,win1,noverlap1);
Error in welch (line 55)
signal.internal.spectral.welchparse(x,esttype,args{:});
Error in pwelch (line 170)
[welchOut{1:nargout}] = welch(x,funcName,inputArgs{:});
Error in snip_extractor (line 16)
[sensor_spectrum, freq] = pwelch(samples,w,NOVERLAP,NFFT,Fs);
My code follows. I am loading a 30sec wav file and then selecting a 5sec period with the file for analysis. Any help here would be most appreciated:
[y,Fs]=audioread(‘67649542.060120201700.wav’) %Load fullfile
snips = y([163840:327680], [1]) %Extract data from period of interest
%%%Borrowed code from https://www.mathworks.com/matlabcentral/answers/636155-plotting-fft-for-audio-wav-file
NFFT = (Fs/2);
NOVERLAP = round(0.75*NFFT);
w = hanning(NFFT);
samples = length(snips)
dt = 1/Fs
t = (0:dt:(samples-1)*dt)
[sensor_spectrum, freq] = pwelch(samples,w,NOVERLAP,NFFT,Fs);
sensor_spectrum_dB = 20*log10(sensor_spectrum);
figure(1),semilogx(freq,sensor_spectrum_dB);grid
title([‘Averaged FFT Spectrum / Fs = ‘ num2str(Fs) ‘ Hz / Delta f = ‘ num2str(freq(2)-freq(1)) ‘ Hz ‘]);
xlabel(‘Frequency (Hz)’);ylabel(my_ylabel);I am trying to conduct a FFT on a wav file in order to then calculate SPL within a bandwidth (120-450hz). I am using code from another answered question and I get hung up on an error:
Error using signal.internal.spectral.welchparse>segment_info
The length of the segments cannot be greater than the length of the input signal.
Error in signal.internal.spectral.welchparse (line 34)
[L,noverlap,win] = segment_info(M,win1,noverlap1);
Error in welch (line 55)
signal.internal.spectral.welchparse(x,esttype,args{:});
Error in pwelch (line 170)
[welchOut{1:nargout}] = welch(x,funcName,inputArgs{:});
Error in snip_extractor (line 16)
[sensor_spectrum, freq] = pwelch(samples,w,NOVERLAP,NFFT,Fs);
My code follows. I am loading a 30sec wav file and then selecting a 5sec period with the file for analysis. Any help here would be most appreciated:
[y,Fs]=audioread(‘67649542.060120201700.wav’) %Load fullfile
snips = y([163840:327680], [1]) %Extract data from period of interest
%%%Borrowed code from https://www.mathworks.com/matlabcentral/answers/636155-plotting-fft-for-audio-wav-file
NFFT = (Fs/2);
NOVERLAP = round(0.75*NFFT);
w = hanning(NFFT);
samples = length(snips)
dt = 1/Fs
t = (0:dt:(samples-1)*dt)
[sensor_spectrum, freq] = pwelch(samples,w,NOVERLAP,NFFT,Fs);
sensor_spectrum_dB = 20*log10(sensor_spectrum);
figure(1),semilogx(freq,sensor_spectrum_dB);grid
title([‘Averaged FFT Spectrum / Fs = ‘ num2str(Fs) ‘ Hz / Delta f = ‘ num2str(freq(2)-freq(1)) ‘ Hz ‘]);
xlabel(‘Frequency (Hz)’);ylabel(my_ylabel); I am trying to conduct a FFT on a wav file in order to then calculate SPL within a bandwidth (120-450hz). I am using code from another answered question and I get hung up on an error:
Error using signal.internal.spectral.welchparse>segment_info
The length of the segments cannot be greater than the length of the input signal.
Error in signal.internal.spectral.welchparse (line 34)
[L,noverlap,win] = segment_info(M,win1,noverlap1);
Error in welch (line 55)
signal.internal.spectral.welchparse(x,esttype,args{:});
Error in pwelch (line 170)
[welchOut{1:nargout}] = welch(x,funcName,inputArgs{:});
Error in snip_extractor (line 16)
[sensor_spectrum, freq] = pwelch(samples,w,NOVERLAP,NFFT,Fs);
My code follows. I am loading a 30sec wav file and then selecting a 5sec period with the file for analysis. Any help here would be most appreciated:
[y,Fs]=audioread(‘67649542.060120201700.wav’) %Load fullfile
snips = y([163840:327680], [1]) %Extract data from period of interest
%%%Borrowed code from https://www.mathworks.com/matlabcentral/answers/636155-plotting-fft-for-audio-wav-file
NFFT = (Fs/2);
NOVERLAP = round(0.75*NFFT);
w = hanning(NFFT);
samples = length(snips)
dt = 1/Fs
t = (0:dt:(samples-1)*dt)
[sensor_spectrum, freq] = pwelch(samples,w,NOVERLAP,NFFT,Fs);
sensor_spectrum_dB = 20*log10(sensor_spectrum);
figure(1),semilogx(freq,sensor_spectrum_dB);grid
title([‘Averaged FFT Spectrum / Fs = ‘ num2str(Fs) ‘ Hz / Delta f = ‘ num2str(freq(2)-freq(1)) ‘ Hz ‘]);
xlabel(‘Frequency (Hz)’);ylabel(my_ylabel); fft MATLAB Answers — New Questions
How to use genetic algorithm optimization on a 1D nonlinear periodic electrical networks with spatially-discrete unit cells?
For the attached 1D nonlinear periodic electrical networks with spatially-discrete unit cell, how to use the genetic algorithm optimization routine available in the MATLAB Global Optimization Toolbox such that spectral power in each of the first 5 harmonics is no less than −6 dB with respect to the fundamental frequency, f = 500 MHz? I am very new to this and would appreciate any help on how to solve this problem. Thanks.For the attached 1D nonlinear periodic electrical networks with spatially-discrete unit cell, how to use the genetic algorithm optimization routine available in the MATLAB Global Optimization Toolbox such that spectral power in each of the first 5 harmonics is no less than −6 dB with respect to the fundamental frequency, f = 500 MHz? I am very new to this and would appreciate any help on how to solve this problem. Thanks. For the attached 1D nonlinear periodic electrical networks with spatially-discrete unit cell, how to use the genetic algorithm optimization routine available in the MATLAB Global Optimization Toolbox such that spectral power in each of the first 5 harmonics is no less than −6 dB with respect to the fundamental frequency, f = 500 MHz? I am very new to this and would appreciate any help on how to solve this problem. Thanks. optimization, genetic algorithm, nonlinear MATLAB Answers — New Questions
Creation of colorbar for given points
Dear all
I am attaching a file with a color transition that I want to use as the color palette for a imagesc plot. How can I do that?Dear all
I am attaching a file with a color transition that I want to use as the color palette for a imagesc plot. How can I do that? Dear all
I am attaching a file with a color transition that I want to use as the color palette for a imagesc plot. How can I do that? customized colorbar MATLAB Answers — New Questions
nested parallel optimization and parfor loops
I would like to run a code having this structure:
Parallel Optimization 1(Particle swarm):
— Par for loop (length ~ 20):
— — Parallel Optimization 2(Particle swarm)
— calculate a cost function based on the 20 results of the parfor loop and use it in the Parallel Optimization 1
Is it possible to connect to a cluster and make a such complicated nested parallel compuitation?
I am doing this:
Par for loop
Parallel Optimization 2(Particle swarm)
on my computer for now but i am not sure the particle swarms actually works in parallel.
Please tell me if it is doable. Thank you.I would like to run a code having this structure:
Parallel Optimization 1(Particle swarm):
— Par for loop (length ~ 20):
— — Parallel Optimization 2(Particle swarm)
— calculate a cost function based on the 20 results of the parfor loop and use it in the Parallel Optimization 1
Is it possible to connect to a cluster and make a such complicated nested parallel compuitation?
I am doing this:
Par for loop
Parallel Optimization 2(Particle swarm)
on my computer for now but i am not sure the particle swarms actually works in parallel.
Please tell me if it is doable. Thank you. I would like to run a code having this structure:
Parallel Optimization 1(Particle swarm):
— Par for loop (length ~ 20):
— — Parallel Optimization 2(Particle swarm)
— calculate a cost function based on the 20 results of the parfor loop and use it in the Parallel Optimization 1
Is it possible to connect to a cluster and make a such complicated nested parallel compuitation?
I am doing this:
Par for loop
Parallel Optimization 2(Particle swarm)
on my computer for now but i am not sure the particle swarms actually works in parallel.
Please tell me if it is doable. Thank you. parallel computing, parallel computing toolbox, optimization, particle swarm, parfor MATLAB Answers — New Questions
How to achieve better edge enhancement?
Any suggestion how to enhance the image edges clearly?
I = imread(‘317.jpg’);
% A = rgb2gray(I2);
figure;
imshow(I)
title(‘Original Image’)
%%
% Gaussian LPF
F = fspecial(‘gaussian’);
G = imfilter(I,F);
figure(‘Name’, ‘Gaussian Blur’), imshow(G); title(‘G Image’);
%% Threshold
bw = im2bw(G,0.35);
figure(‘Name’, ‘Binary Image’)
imshow(bw)
% Enhance binary image
kernel = -1*ones(1);
kernel(2,2) = 4;
enhancedImage = imfilter(bw, kernel);
figure(‘Name’, ‘Enhanced’), imshow(enhancedImage); title(‘enhancedImage Image’);
% Crop
D = im2uint8(enhancedImage);
I2 = imcrop(D,[50 68 130 112]);
figure(‘Name’, ‘Cropped’);
imshow(I2)
% User define ROI
r = drawrectangle;
mask = createMask(r);
bw2 = activecontour(I2,mask,30,’Chan-Vese’);
figure(‘Name’, ‘Active Contour’)
imshow(bw2);
hold on;
visboundaries(bw2,’Color’,’r’);
figure(‘Name’, ‘labelOverlay’)
imshow(labeloverlay(I2,bw2));Any suggestion how to enhance the image edges clearly?
I = imread(‘317.jpg’);
% A = rgb2gray(I2);
figure;
imshow(I)
title(‘Original Image’)
%%
% Gaussian LPF
F = fspecial(‘gaussian’);
G = imfilter(I,F);
figure(‘Name’, ‘Gaussian Blur’), imshow(G); title(‘G Image’);
%% Threshold
bw = im2bw(G,0.35);
figure(‘Name’, ‘Binary Image’)
imshow(bw)
% Enhance binary image
kernel = -1*ones(1);
kernel(2,2) = 4;
enhancedImage = imfilter(bw, kernel);
figure(‘Name’, ‘Enhanced’), imshow(enhancedImage); title(‘enhancedImage Image’);
% Crop
D = im2uint8(enhancedImage);
I2 = imcrop(D,[50 68 130 112]);
figure(‘Name’, ‘Cropped’);
imshow(I2)
% User define ROI
r = drawrectangle;
mask = createMask(r);
bw2 = activecontour(I2,mask,30,’Chan-Vese’);
figure(‘Name’, ‘Active Contour’)
imshow(bw2);
hold on;
visboundaries(bw2,’Color’,’r’);
figure(‘Name’, ‘labelOverlay’)
imshow(labeloverlay(I2,bw2)); Any suggestion how to enhance the image edges clearly?
I = imread(‘317.jpg’);
% A = rgb2gray(I2);
figure;
imshow(I)
title(‘Original Image’)
%%
% Gaussian LPF
F = fspecial(‘gaussian’);
G = imfilter(I,F);
figure(‘Name’, ‘Gaussian Blur’), imshow(G); title(‘G Image’);
%% Threshold
bw = im2bw(G,0.35);
figure(‘Name’, ‘Binary Image’)
imshow(bw)
% Enhance binary image
kernel = -1*ones(1);
kernel(2,2) = 4;
enhancedImage = imfilter(bw, kernel);
figure(‘Name’, ‘Enhanced’), imshow(enhancedImage); title(‘enhancedImage Image’);
% Crop
D = im2uint8(enhancedImage);
I2 = imcrop(D,[50 68 130 112]);
figure(‘Name’, ‘Cropped’);
imshow(I2)
% User define ROI
r = drawrectangle;
mask = createMask(r);
bw2 = activecontour(I2,mask,30,’Chan-Vese’);
figure(‘Name’, ‘Active Contour’)
imshow(bw2);
hold on;
visboundaries(bw2,’Color’,’r’);
figure(‘Name’, ‘labelOverlay’)
imshow(labeloverlay(I2,bw2)); image segmentation, edge enhancement, canny, unsharp masking MATLAB Answers — New Questions
Error implementing Newton’s Method
Tried implementing Newton’s Method in MATLAB, but receiving this error regarding indexing. Not sure what this means or how to fix it.Tried implementing Newton’s Method in MATLAB, but receiving this error regarding indexing. Not sure what this means or how to fix it. Tried implementing Newton’s Method in MATLAB, but receiving this error regarding indexing. Not sure what this means or how to fix it. function, matlab code, matlab, error MATLAB Answers — New Questions
cross correlation using ‘xcorr’ in the presence of NaN or missing values
Hi I am trying to calculate cross correlation of two time-series at different lags but my data have a lot of NaN values. When I calculate cross correlation as below, it gives all NaNs in the corln.
[corln, lags] = xcorr (ave_precp_india (:), aod_all (:, 1), 15);
I want to specify something like ‘rows’, ‘pairwise’ in calculating correlation so that NaNs are ignored. How can I specify ‘rows’, ‘pairwise’ option in xcorr?Hi I am trying to calculate cross correlation of two time-series at different lags but my data have a lot of NaN values. When I calculate cross correlation as below, it gives all NaNs in the corln.
[corln, lags] = xcorr (ave_precp_india (:), aod_all (:, 1), 15);
I want to specify something like ‘rows’, ‘pairwise’ in calculating correlation so that NaNs are ignored. How can I specify ‘rows’, ‘pairwise’ option in xcorr? Hi I am trying to calculate cross correlation of two time-series at different lags but my data have a lot of NaN values. When I calculate cross correlation as below, it gives all NaNs in the corln.
[corln, lags] = xcorr (ave_precp_india (:), aod_all (:, 1), 15);
I want to specify something like ‘rows’, ‘pairwise’ in calculating correlation so that NaNs are ignored. How can I specify ‘rows’, ‘pairwise’ option in xcorr? xcorr, nan MATLAB Answers — New Questions
How do I validate my parallel cluster profile in MATLAB?
I cannot start a parallel pool in MATLAB.
How can I validate that my cluster profile is configured correctly?I cannot start a parallel pool in MATLAB.
How can I validate that my cluster profile is configured correctly? I cannot start a parallel pool in MATLAB.
How can I validate that my cluster profile is configured correctly? MATLAB Answers — New Questions
Can’t connect to NI DAQ USB6003 on Windows 11/Matlab 2024a
Hello All,
On my previous computer (Windows 10), I used Matlab to interface with an NI USB-6003 device. My new computer is Windows 11 and I am now using Matlab R2024a. When I try to run the same code I used previously, I get an error trying to add the device. I searched around online but did not see anything particularly helpful, as I am not sure what is causing the error.
I’ve attached screenshots of the error as well as my computer recognizing the device in device settings.Hello All,
On my previous computer (Windows 10), I used Matlab to interface with an NI USB-6003 device. My new computer is Windows 11 and I am now using Matlab R2024a. When I try to run the same code I used previously, I get an error trying to add the device. I searched around online but did not see anything particularly helpful, as I am not sure what is causing the error.
I’ve attached screenshots of the error as well as my computer recognizing the device in device settings. Hello All,
On my previous computer (Windows 10), I used Matlab to interface with an NI USB-6003 device. My new computer is Windows 11 and I am now using Matlab R2024a. When I try to run the same code I used previously, I get an error trying to add the device. I searched around online but did not see anything particularly helpful, as I am not sure what is causing the error.
I’ve attached screenshots of the error as well as my computer recognizing the device in device settings. data acquisition MATLAB Answers — New Questions
Running AutoCAD from MatLAB
Hello, \trying to run AutoCAD from MATLAB.
Tried the code proposed here
https://www.mathworks.com/matlabcentral/answers/1921990-using-the-matlab-net-interface-to-interact-with-autocad
Unfortunately I got this error
Error using dotnetAutoCADExample
Message: Call was rejected by callee. (Exception from HRESULT: 0x80010001 (RPC_E_CALL_REJECTED))
Source: Autodesk.AutoCAD.Interop
HelpLink: None
The topic was closed so I was not able to ask questions there.
Any useas?
What I need to do is plot some objects based on numbers calculated in a loop in MATLAB
Thank youHello, \trying to run AutoCAD from MATLAB.
Tried the code proposed here
https://www.mathworks.com/matlabcentral/answers/1921990-using-the-matlab-net-interface-to-interact-with-autocad
Unfortunately I got this error
Error using dotnetAutoCADExample
Message: Call was rejected by callee. (Exception from HRESULT: 0x80010001 (RPC_E_CALL_REJECTED))
Source: Autodesk.AutoCAD.Interop
HelpLink: None
The topic was closed so I was not able to ask questions there.
Any useas?
What I need to do is plot some objects based on numbers calculated in a loop in MATLAB
Thank you Hello, \trying to run AutoCAD from MATLAB.
Tried the code proposed here
https://www.mathworks.com/matlabcentral/answers/1921990-using-the-matlab-net-interface-to-interact-with-autocad
Unfortunately I got this error
Error using dotnetAutoCADExample
Message: Call was rejected by callee. (Exception from HRESULT: 0x80010001 (RPC_E_CALL_REJECTED))
Source: Autodesk.AutoCAD.Interop
HelpLink: None
The topic was closed so I was not able to ask questions there.
Any useas?
What I need to do is plot some objects based on numbers calculated in a loop in MATLAB
Thank you matlab, autocad, api MATLAB Answers — New Questions
How does MATLAB Parallel Server check out seats?
How does MATLAB Parallel Server check out seats?How does MATLAB Parallel Server check out seats? How does MATLAB Parallel Server check out seats? MATLAB Answers — New Questions
Binning matrix data (negative and positive decimals): mean of each 100 rows and create a new matrix
I have a A= 7382300X12 matrix. I want to reduce it by averaging every 1000 rows in all columns. So at the end I will have a B= 73823X12 matrix.
The matrix A have negative and positive decimals, so blockproc() didn’t work for me.
How can I do it?I have a A= 7382300X12 matrix. I want to reduce it by averaging every 1000 rows in all columns. So at the end I will have a B= 73823X12 matrix.
The matrix A have negative and positive decimals, so blockproc() didn’t work for me.
How can I do it? I have a A= 7382300X12 matrix. I want to reduce it by averaging every 1000 rows in all columns. So at the end I will have a B= 73823X12 matrix.
The matrix A have negative and positive decimals, so blockproc() didn’t work for me.
How can I do it? matrix manipulation MATLAB Answers — New Questions