Tag Archives: matlab
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
Configuring 2×2 Antenna Setup with 2 CSI-RS Ports in MATLAB’s 5G Toolbox for CQI Reporting Test Compliance
I am working on implementing the table from TS138.101 Table 6.2.2.1.1.1-1: CQI reporting definition test using MATLAB’s 5G toolbox example, "NR PDSCH Throughput Using Channel State Information Feedback". The table specifies that the number of CSI-RS ports (X) should be 2, with an antenna configuration of 2×2.
In the MATLAB example, setting the panel dimensions to 2×2 results in NTxAnt becoming 8, which corresponds to the number of CSI-RS ports. However, according to the test table, to set the number of CSI-RS ports (X) to 2, the row number should be set to 3. When attempting to do this, MATLAB returns an error stating that the row number must be 6 or above. How can I correctly configure the antenna to 2×2 while ensuring the number of CSI-RS ports is set to 2, as required by the test table?I am working on implementing the table from TS138.101 Table 6.2.2.1.1.1-1: CQI reporting definition test using MATLAB’s 5G toolbox example, "NR PDSCH Throughput Using Channel State Information Feedback". The table specifies that the number of CSI-RS ports (X) should be 2, with an antenna configuration of 2×2.
In the MATLAB example, setting the panel dimensions to 2×2 results in NTxAnt becoming 8, which corresponds to the number of CSI-RS ports. However, according to the test table, to set the number of CSI-RS ports (X) to 2, the row number should be set to 3. When attempting to do this, MATLAB returns an error stating that the row number must be 6 or above. How can I correctly configure the antenna to 2×2 while ensuring the number of CSI-RS ports is set to 2, as required by the test table? I am working on implementing the table from TS138.101 Table 6.2.2.1.1.1-1: CQI reporting definition test using MATLAB’s 5G toolbox example, "NR PDSCH Throughput Using Channel State Information Feedback". The table specifies that the number of CSI-RS ports (X) should be 2, with an antenna configuration of 2×2.
In the MATLAB example, setting the panel dimensions to 2×2 results in NTxAnt becoming 8, which corresponds to the number of CSI-RS ports. However, according to the test table, to set the number of CSI-RS ports (X) to 2, the row number should be set to 3. When attempting to do this, MATLAB returns an error stating that the row number must be 6 or above. How can I correctly configure the antenna to 2×2 while ensuring the number of CSI-RS ports is set to 2, as required by the test table? 5g, cqi MATLAB Answers — New Questions
How can I generate a 32-bit SO for a Simulink model on 64-bit Linux?
How can I generate a 32-bit SO file with a supported GCC compiler for a Simulink model on 64-bit Linux? I have followed this example to generate a 32-bit DLL on Windows, but I couldn’t find an example for Linux environment:
https://www.mathworks.com/help/coder/ug/build-32-bit-dll-on-64-bit-windows-platform-using-msvc-toolchain.htmlHow can I generate a 32-bit SO file with a supported GCC compiler for a Simulink model on 64-bit Linux? I have followed this example to generate a 32-bit DLL on Windows, but I couldn’t find an example for Linux environment:
https://www.mathworks.com/help/coder/ug/build-32-bit-dll-on-64-bit-windows-platform-using-msvc-toolchain.html How can I generate a 32-bit SO file with a supported GCC compiler for a Simulink model on 64-bit Linux? I have followed this example to generate a 32-bit DLL on Windows, but I couldn’t find an example for Linux environment:
https://www.mathworks.com/help/coder/ug/build-32-bit-dll-on-64-bit-windows-platform-using-msvc-toolchain.html 32-bit, so, shared, library, linux MATLAB Answers — New Questions
Why do I receive License Manager Error -101?
When trying to launch MATLAB or attempting to use a toolbox I receive the following license manager error message:
License Manager Error -101
All licenses are reserved for others.
How can I resolve this error so that I can use MATLAB?When trying to launch MATLAB or attempting to use a toolbox I receive the following license manager error message:
License Manager Error -101
All licenses are reserved for others.
How can I resolve this error so that I can use MATLAB? When trying to launch MATLAB or attempting to use a toolbox I receive the following license manager error message:
License Manager Error -101
All licenses are reserved for others.
How can I resolve this error so that I can use MATLAB? MATLAB Answers — New Questions
Why do I receive a License Manager Error -4 in Polyspace?
Why do I receive a License Manager Error -4 when running a job in Polyspace Bug Finder, either locally or on a remote Code Prover server?Why do I receive a License Manager Error -4 when running a job in Polyspace Bug Finder, either locally or on a remote Code Prover server? Why do I receive a License Manager Error -4 when running a job in Polyspace Bug Finder, either locally or on a remote Code Prover server? MATLAB Answers — New Questions
How to properly read a csv saved cell array.
Hi,
I am new with Matlab and I would like to know why I am not reading a cell array as I saved it. i.e. I have a cell of arrays (3834×1) and I saved it as csv file.
writecell(X_train_past, …
strcat(train_data_path, ‘past_features.csv’), …
"Delimiter",";")
However, when reading the cell I got a cell of 926×864, totally different of the saved cell array. Is there any way to get the same shape when reading a cell as it was writen ?
opts = detectImportOptions(test_path);
opts.LineEnding = ‘n’;
C = readcell(test_path,opts);
Thanks a lot in advance,
RafaHi,
I am new with Matlab and I would like to know why I am not reading a cell array as I saved it. i.e. I have a cell of arrays (3834×1) and I saved it as csv file.
writecell(X_train_past, …
strcat(train_data_path, ‘past_features.csv’), …
"Delimiter",";")
However, when reading the cell I got a cell of 926×864, totally different of the saved cell array. Is there any way to get the same shape when reading a cell as it was writen ?
opts = detectImportOptions(test_path);
opts.LineEnding = ‘n’;
C = readcell(test_path,opts);
Thanks a lot in advance,
Rafa Hi,
I am new with Matlab and I would like to know why I am not reading a cell array as I saved it. i.e. I have a cell of arrays (3834×1) and I saved it as csv file.
writecell(X_train_past, …
strcat(train_data_path, ‘past_features.csv’), …
"Delimiter",";")
However, when reading the cell I got a cell of 926×864, totally different of the saved cell array. Is there any way to get the same shape when reading a cell as it was writen ?
opts = detectImportOptions(test_path);
opts.LineEnding = ‘n’;
C = readcell(test_path,opts);
Thanks a lot in advance,
Rafa cell arrays MATLAB Answers — New Questions
Do graphs work in Custom Components?
I built a custom component (first time I’ve tried this) containing two Axes objects as well as some text fields. Here’s a picture. I’ve been having some problems.
1. These graphs appear one size in the editor, and larger when an instance of my component is inserted into my app. (Compare the relative size of the graph to the text fields, in the picture above in the picture below.)
2. Some fraction of the time, when I run the app, the Axes objects don’t appear at all, although the other parts of the custom component do.
Is this a known bug? Is this usage of Axes objects a hopeless mess? Or is there some way I can tweak it to get around this problem.
Component embedded in app:
App running:I built a custom component (first time I’ve tried this) containing two Axes objects as well as some text fields. Here’s a picture. I’ve been having some problems.
1. These graphs appear one size in the editor, and larger when an instance of my component is inserted into my app. (Compare the relative size of the graph to the text fields, in the picture above in the picture below.)
2. Some fraction of the time, when I run the app, the Axes objects don’t appear at all, although the other parts of the custom component do.
Is this a known bug? Is this usage of Axes objects a hopeless mess? Or is there some way I can tweak it to get around this problem.
Component embedded in app:
App running: I built a custom component (first time I’ve tried this) containing two Axes objects as well as some text fields. Here’s a picture. I’ve been having some problems.
1. These graphs appear one size in the editor, and larger when an instance of my component is inserted into my app. (Compare the relative size of the graph to the text fields, in the picture above in the picture below.)
2. Some fraction of the time, when I run the app, the Axes objects don’t appear at all, although the other parts of the custom component do.
Is this a known bug? Is this usage of Axes objects a hopeless mess? Or is there some way I can tweak it to get around this problem.
Component embedded in app:
App running: appdesigner, customcomponent, axes MATLAB Answers — New Questions