Category: News
Shift in lines when creating videos using VideoWriter
I’m using VideoReader to read a mp4 video, insert a few shapes and annotations, then use VideoWriter to write a new video file. The script was working fine with matlab 2023a on an intel macbook pro. After I switch to matlab 2023b on a macbook with m3 chip, the script stop working. The video geneerated shows weird shift in lines below:
I did notice if I change the file type for VideoWriter from ‘MPEG-4’ to ‘Uncompressed AVI", it can work. But the file size is gigantic.
Can someone help please? Thank you so much!I’m using VideoReader to read a mp4 video, insert a few shapes and annotations, then use VideoWriter to write a new video file. The script was working fine with matlab 2023a on an intel macbook pro. After I switch to matlab 2023b on a macbook with m3 chip, the script stop working. The video geneerated shows weird shift in lines below:
I did notice if I change the file type for VideoWriter from ‘MPEG-4’ to ‘Uncompressed AVI", it can work. But the file size is gigantic.
Can someone help please? Thank you so much! I’m using VideoReader to read a mp4 video, insert a few shapes and annotations, then use VideoWriter to write a new video file. The script was working fine with matlab 2023a on an intel macbook pro. After I switch to matlab 2023b on a macbook with m3 chip, the script stop working. The video geneerated shows weird shift in lines below:
I did notice if I change the file type for VideoWriter from ‘MPEG-4’ to ‘Uncompressed AVI", it can work. But the file size is gigantic.
Can someone help please? Thank you so much! videowriter, mpeg-4, video processing MATLAB Answers — New Questions
Matrix must be square error and Error in PartA. how do I solve it?
clc; % Clear command window
clear; % Clear workspace
syms w; % Define w as a symbolic variable
% Define masses, damping coefficients, and stiffness coefficients
m1 = 1.8; m2 = 6.3; m3 = 5.4; m4 = 22.5; m5 = 54;
c2 = 10000; c3 = 500; c4 = 1500; c5 = 1100;
k2 = 1*10^8; k3 = 50*10^3; k4 = 75*10^3; k5 = 10*10^3;
B = [k2+c2, -k2-c2+(m2*w^2), 0, 0, 0;
-k2-c2, k2+c2+k3+c3, -k3-c3, 0, 0];
detB = det(B);
Error using sym/det (line 24)
Matrix must be square.
Error in PartA (line 23)
detB = det(B);clc; % Clear command window
clear; % Clear workspace
syms w; % Define w as a symbolic variable
% Define masses, damping coefficients, and stiffness coefficients
m1 = 1.8; m2 = 6.3; m3 = 5.4; m4 = 22.5; m5 = 54;
c2 = 10000; c3 = 500; c4 = 1500; c5 = 1100;
k2 = 1*10^8; k3 = 50*10^3; k4 = 75*10^3; k5 = 10*10^3;
B = [k2+c2, -k2-c2+(m2*w^2), 0, 0, 0;
-k2-c2, k2+c2+k3+c3, -k3-c3, 0, 0];
detB = det(B);
Error using sym/det (line 24)
Matrix must be square.
Error in PartA (line 23)
detB = det(B); clc; % Clear command window
clear; % Clear workspace
syms w; % Define w as a symbolic variable
% Define masses, damping coefficients, and stiffness coefficients
m1 = 1.8; m2 = 6.3; m3 = 5.4; m4 = 22.5; m5 = 54;
c2 = 10000; c3 = 500; c4 = 1500; c5 = 1100;
k2 = 1*10^8; k3 = 50*10^3; k4 = 75*10^3; k5 = 10*10^3;
B = [k2+c2, -k2-c2+(m2*w^2), 0, 0, 0;
-k2-c2, k2+c2+k3+c3, -k3-c3, 0, 0];
detB = det(B);
Error using sym/det (line 24)
Matrix must be square.
Error in PartA (line 23)
detB = det(B); error MATLAB Answers — New Questions
how to send data to firebase and also receive data using matlab
I want to send data from some variables to the firebase database and then I also want to receive this data, I used this code:
% Load the Firebase credentials
firebaseCredentials = jsondecode(fileread(‘path/to/firebase_credentials.json’)); %I exchanged this for my data
% Specify the Firebase URL and the data to send
firebaseURL = ‘https://your-firebase-project.firebaseio.com/’; %I exchanged this for my data
data = struct(‘current’, 10, ‘voltage’, 220); % Replace with your actual sensor data
% Encode the data as JSON
jsonData = savejson(”, data);
% Create the HTTP request options
options = weboptions(‘RequestMethod’, ‘post’, ‘HeaderFields’, {‘Content-Type’ ‘application/json’}, ‘Timeout’, 10);
% Send the data to Firebase
response = webwrite([firebaseURL ‘.json’], jsonData, options);
But whenever I send data it creates a new node, but I wanted it to replace the information that was already there in a specific node, because later I want to use an application that I created to read these values in Firebase and create another variable in the same node that will be used to send data to change variable data in Matlab, and now if you could also help me with how to read the node that It’s in Firebase through Matlab and writing it in a variable would be appreciatedI want to send data from some variables to the firebase database and then I also want to receive this data, I used this code:
% Load the Firebase credentials
firebaseCredentials = jsondecode(fileread(‘path/to/firebase_credentials.json’)); %I exchanged this for my data
% Specify the Firebase URL and the data to send
firebaseURL = ‘https://your-firebase-project.firebaseio.com/’; %I exchanged this for my data
data = struct(‘current’, 10, ‘voltage’, 220); % Replace with your actual sensor data
% Encode the data as JSON
jsonData = savejson(”, data);
% Create the HTTP request options
options = weboptions(‘RequestMethod’, ‘post’, ‘HeaderFields’, {‘Content-Type’ ‘application/json’}, ‘Timeout’, 10);
% Send the data to Firebase
response = webwrite([firebaseURL ‘.json’], jsonData, options);
But whenever I send data it creates a new node, but I wanted it to replace the information that was already there in a specific node, because later I want to use an application that I created to read these values in Firebase and create another variable in the same node that will be used to send data to change variable data in Matlab, and now if you could also help me with how to read the node that It’s in Firebase through Matlab and writing it in a variable would be appreciated I want to send data from some variables to the firebase database and then I also want to receive this data, I used this code:
% Load the Firebase credentials
firebaseCredentials = jsondecode(fileread(‘path/to/firebase_credentials.json’)); %I exchanged this for my data
% Specify the Firebase URL and the data to send
firebaseURL = ‘https://your-firebase-project.firebaseio.com/’; %I exchanged this for my data
data = struct(‘current’, 10, ‘voltage’, 220); % Replace with your actual sensor data
% Encode the data as JSON
jsonData = savejson(”, data);
% Create the HTTP request options
options = weboptions(‘RequestMethod’, ‘post’, ‘HeaderFields’, {‘Content-Type’ ‘application/json’}, ‘Timeout’, 10);
% Send the data to Firebase
response = webwrite([firebaseURL ‘.json’], jsonData, options);
But whenever I send data it creates a new node, but I wanted it to replace the information that was already there in a specific node, because later I want to use an application that I created to read these values in Firebase and create another variable in the same node that will be used to send data to change variable data in Matlab, and now if you could also help me with how to read the node that It’s in Firebase through Matlab and writing it in a variable would be appreciated firebase, matlab MATLAB Answers — New Questions
how to make “if strcmp(coder.target,’rtw’)” true in model simulation.
There is an if statement in code which is not becoming true. Please suggest how to make it true.
if strcmp(coder.target,’rtw’)
system target file is set as ert.tlcThere is an if statement in code which is not becoming true. Please suggest how to make it true.
if strcmp(coder.target,’rtw’)
system target file is set as ert.tlc There is an if statement in code which is not becoming true. Please suggest how to make it true.
if strcmp(coder.target,’rtw’)
system target file is set as ert.tlc coder.target MATLAB Answers — New Questions
Set marker alpha transparency based on point density for scatter plot
Hi everyone,
I am using a custom function to calculate the density of point for a scatter plot based on the bin size. Below is the example of the plot generated by the code.
In the above code, the color is set such that point around the center of bin with high point density will be colored brownm, and the lower desity will be blue. The point in the bithween will be colored in accordance to the heatmap gradiente.
Problem:
Similarly to setting the color as a function fo the point density, I would like to set the alpha trasnparency of the marker edges and faces based on the point density. So the plot would like somewhat like below. Basically, what I want to accomplishe is that as the marker color gravitates towards the blue color, I would like to the decrease the transparency level of the marker, at the same time that the marker taht are Brown will be 100% opaque. So, simply put, I would like to change the ‘MarkerEdgeAlpha’ as a function of the point count density.
2. Change point cound density to relative frequency. Below is a figure where this is exemplified (Source Fig. 2 in Nature Paper).
Following is my script, which contain the in file function. This is a modification of the file prepared by @Lukas and shared at Original File.
clear all
close all
function outfile = heatscatter(X, Y, outpath, outname, numbins, markersize, marker, plot_colorbar, plot_lsf, xlab, ylab, title)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% heatscatter(X, Y, outpath, outname, numbins, markersize, marker, plot_colorbar, plot_lsf, xlab, ylab, title)
% mandatory:
% X [x,1] array containing variable X
% Y [y,1] array containing variable Y
% outpath path where the output-file should be saved.
% leave blank for current working directory
% outname name of the output-file. if outname contains
% filetype (e.g. png), this type will be used.
% Otherwise, a pdf-file will be generated
% optional:
% numbins [double], default 50
% number if bins used for the
% heat3-calculation, thus the coloring
% markersize [double], default 10
% size of the marker used in the scatter-plot
% marker [char], default ‘o’
% type of the marker used in the scatter-plot
% plot_colorbar [double], boolean 0/1, default 1
% set whether the colorbar should be plotted
% or not
% plot_lsf [double], boolean 0/1, default 1
% set whether the least-square-fit line
% should be plotted or not (together with
% the correlation/p-value of the data
% xlab [char], default ”
% lable for the x-axis
% ylab [char], default ”
% lable for the y-axis
% title [char], default ”
% title of the figure
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% mandatory
if ~exist(‘X’,’var’) || isempty(X)
error(‘Param X is mandatory! –> EXIT!’);
end
if ~exist(‘Y’,’var’) || isempty(Y)
error(‘Param Y is mandatory! –> EXIT!’);
end
if ~exist(‘outpath’,’var’)
error(‘Param outpath is mandatory! –> EXIT!’);
end
if ~exist(‘outname’,’var’) || isempty(outname)
error(‘Param outname is mandatory! –> EXIT!’);
end
%%%% optional
if ~exist(‘numbins’,’var’) || isempty(numbins)
numbins = 50;
else
% force number, not char input
numbins = str2double(numbins);
end
if ~exist(‘markersize’,’var’) || isempty(markersize)
markersize = 10;
else
% force number, not char input
markersize = str2double(markersize);
end
if ~exist(‘marker’,’var’) || isempty(marker)
marker = ‘o’;
end
if ~exist(‘plot_colorbar’,’var’) || isempty(plot_colorbar)
plot_colorbar = 1;
end
if ~exist(‘plot_lsf’,’var’) || isempty(plot_lsf)
plot_lsf = 1;
end
if ~exist(‘xlab’,’var’) || isempty(xlab)
xlab = ”;
end
if ~exist(‘ylab’,’var’) || isempty(ylab)
ylab = ”;
end
if ~exist(‘title’,’var’) || isempty(title)
title = ”;
end
[values, centers] = hist3([X Y], [numbins numbins]);
centers_X = centers{1,1};
centers_Y = centers{1,2};
binsize_X = abs(centers_X(2) – centers_X(1)) / 2;
binsize_Y = abs(centers_Y(2) – centers_Y(1)) / 2;
bins_X = zeros(numbins, 2);
bins_Y = zeros(numbins, 2);
for i = 1:numbins
bins_X(i, 1) = centers_X(i) – binsize_X;
bins_X(i, 2) = centers_X(i) + binsize_X;
bins_Y(i, 1) = centers_Y(i) – binsize_Y;
bins_Y(i, 2) = centers_Y(i) + binsize_Y;
end
scatter_COL = zeros(length(X), 1);
onepercent = round(length(X) / 100);
for i = 1:length(X)
if (mod(i,onepercent) == 0)
fprintf(‘.’);
end
last_lower_X = NaN;
last_higher_X = NaN;
id_X = NaN;
c_X = X(i);
last_lower_X = find(c_X >= bins_X(:,1));
if (~isempty(last_lower_X))
last_lower_X = last_lower_X(end);
else
last_higher_X = find(c_X <= bins_X(:,2));
if (~isempty(last_higher_X))
last_higher_X = last_higher_X(1);
end
end
if (~isnan(last_lower_X))
id_X = last_lower_X;
else
if (~isnan(last_higher_X))
id_X = last_higher_X;
end
end
last_lower_Y = NaN;
last_higher_Y = NaN;
id_Y = NaN;
c_Y = Y(i);
last_lower_Y = find(c_Y >= bins_Y(:,1));
if (~isempty(last_lower_Y))
last_lower_Y = last_lower_Y(end);
else
last_higher_Y = find(c_Y <= bins_Y(:,2));
if (~isempty(last_higher_Y))
last_higher_Y = last_higher_Y(1);
end
end
if (~isnan(last_lower_Y))
id_Y = last_lower_Y;
else
if (~isnan(last_higher_Y))
id_Y = last_higher_Y;
end
end
scatter_COL(i) = values(id_X, id_Y);
alpha_COL(i) = sqrt(values(id_X)^2+values(id_Y)^2);
end
f = figure();
sct=scatter(X, Y, markersize, scatter_COL,"filled");
if (plot_colorbar)
colorbar;
end
if (plot_lsf)
[r,p] = corr(X, Y);
str = {sprintf(‘corr: %.3f’, r), sprintf(‘pval: %d’, p)};
l = lsline;
set(l, ‘Color’, ‘k’);
annotation(‘textbox’, [0.14 0.80 0.1 0.1], ‘String’, str, ‘EdgeColor’, ‘none’);
end
if (~isempty(xlab))
xlabel(xlab);
end
if (~isempty(ylab))
ylabel(ylab);
end
if (~isempty(title))
title(title);
end
[p,n,r] = fileparts(outname);
if (isempty(r))
r = ”;
end
set(gca,’FontSize’,12,’fontname’,’Samsung Sans’,’color’,’w’)
outname = strcat(p,n,r);
f.Position = [100 100 400 400];
set(gcf, ‘PaperSize’, [2 4]);
set(gcf,’windowstyle’,’docked’) % or use a specific fig handle
colormap jet(64)
cb = colorbar;
cb.Label.String = ‘Density by Point Count’;
cb.FontName = ‘Samsung Sans’;
cb.Label.FontSize = 12;
figname = [num2str(outname) ‘Oscilogram.jpg’];
exportgraphics(f,figname,’Resolution’,600);
outfile = fullfile(outpath, outname);
% saveas(f, outfile);
end
X1=randn(10000,1);
X2=randn(10000,1);
X3=randn(10000,1);
X=X1.^2+X2.*X3;
Y=randn(10000,1);
numbinss=80;
f=heatscatter(X,Y,"C:",’X-Y Scatter Variable Alpha’,num2str(numbinss),’15’,’o’,1,0,’X-axis’,’Y-axis’);
Please let me know if more clarification is required and I will be happy to provide.
Thank you so much for the help.Hi everyone,
I am using a custom function to calculate the density of point for a scatter plot based on the bin size. Below is the example of the plot generated by the code.
In the above code, the color is set such that point around the center of bin with high point density will be colored brownm, and the lower desity will be blue. The point in the bithween will be colored in accordance to the heatmap gradiente.
Problem:
Similarly to setting the color as a function fo the point density, I would like to set the alpha trasnparency of the marker edges and faces based on the point density. So the plot would like somewhat like below. Basically, what I want to accomplishe is that as the marker color gravitates towards the blue color, I would like to the decrease the transparency level of the marker, at the same time that the marker taht are Brown will be 100% opaque. So, simply put, I would like to change the ‘MarkerEdgeAlpha’ as a function of the point count density.
2. Change point cound density to relative frequency. Below is a figure where this is exemplified (Source Fig. 2 in Nature Paper).
Following is my script, which contain the in file function. This is a modification of the file prepared by @Lukas and shared at Original File.
clear all
close all
function outfile = heatscatter(X, Y, outpath, outname, numbins, markersize, marker, plot_colorbar, plot_lsf, xlab, ylab, title)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% heatscatter(X, Y, outpath, outname, numbins, markersize, marker, plot_colorbar, plot_lsf, xlab, ylab, title)
% mandatory:
% X [x,1] array containing variable X
% Y [y,1] array containing variable Y
% outpath path where the output-file should be saved.
% leave blank for current working directory
% outname name of the output-file. if outname contains
% filetype (e.g. png), this type will be used.
% Otherwise, a pdf-file will be generated
% optional:
% numbins [double], default 50
% number if bins used for the
% heat3-calculation, thus the coloring
% markersize [double], default 10
% size of the marker used in the scatter-plot
% marker [char], default ‘o’
% type of the marker used in the scatter-plot
% plot_colorbar [double], boolean 0/1, default 1
% set whether the colorbar should be plotted
% or not
% plot_lsf [double], boolean 0/1, default 1
% set whether the least-square-fit line
% should be plotted or not (together with
% the correlation/p-value of the data
% xlab [char], default ”
% lable for the x-axis
% ylab [char], default ”
% lable for the y-axis
% title [char], default ”
% title of the figure
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% mandatory
if ~exist(‘X’,’var’) || isempty(X)
error(‘Param X is mandatory! –> EXIT!’);
end
if ~exist(‘Y’,’var’) || isempty(Y)
error(‘Param Y is mandatory! –> EXIT!’);
end
if ~exist(‘outpath’,’var’)
error(‘Param outpath is mandatory! –> EXIT!’);
end
if ~exist(‘outname’,’var’) || isempty(outname)
error(‘Param outname is mandatory! –> EXIT!’);
end
%%%% optional
if ~exist(‘numbins’,’var’) || isempty(numbins)
numbins = 50;
else
% force number, not char input
numbins = str2double(numbins);
end
if ~exist(‘markersize’,’var’) || isempty(markersize)
markersize = 10;
else
% force number, not char input
markersize = str2double(markersize);
end
if ~exist(‘marker’,’var’) || isempty(marker)
marker = ‘o’;
end
if ~exist(‘plot_colorbar’,’var’) || isempty(plot_colorbar)
plot_colorbar = 1;
end
if ~exist(‘plot_lsf’,’var’) || isempty(plot_lsf)
plot_lsf = 1;
end
if ~exist(‘xlab’,’var’) || isempty(xlab)
xlab = ”;
end
if ~exist(‘ylab’,’var’) || isempty(ylab)
ylab = ”;
end
if ~exist(‘title’,’var’) || isempty(title)
title = ”;
end
[values, centers] = hist3([X Y], [numbins numbins]);
centers_X = centers{1,1};
centers_Y = centers{1,2};
binsize_X = abs(centers_X(2) – centers_X(1)) / 2;
binsize_Y = abs(centers_Y(2) – centers_Y(1)) / 2;
bins_X = zeros(numbins, 2);
bins_Y = zeros(numbins, 2);
for i = 1:numbins
bins_X(i, 1) = centers_X(i) – binsize_X;
bins_X(i, 2) = centers_X(i) + binsize_X;
bins_Y(i, 1) = centers_Y(i) – binsize_Y;
bins_Y(i, 2) = centers_Y(i) + binsize_Y;
end
scatter_COL = zeros(length(X), 1);
onepercent = round(length(X) / 100);
for i = 1:length(X)
if (mod(i,onepercent) == 0)
fprintf(‘.’);
end
last_lower_X = NaN;
last_higher_X = NaN;
id_X = NaN;
c_X = X(i);
last_lower_X = find(c_X >= bins_X(:,1));
if (~isempty(last_lower_X))
last_lower_X = last_lower_X(end);
else
last_higher_X = find(c_X <= bins_X(:,2));
if (~isempty(last_higher_X))
last_higher_X = last_higher_X(1);
end
end
if (~isnan(last_lower_X))
id_X = last_lower_X;
else
if (~isnan(last_higher_X))
id_X = last_higher_X;
end
end
last_lower_Y = NaN;
last_higher_Y = NaN;
id_Y = NaN;
c_Y = Y(i);
last_lower_Y = find(c_Y >= bins_Y(:,1));
if (~isempty(last_lower_Y))
last_lower_Y = last_lower_Y(end);
else
last_higher_Y = find(c_Y <= bins_Y(:,2));
if (~isempty(last_higher_Y))
last_higher_Y = last_higher_Y(1);
end
end
if (~isnan(last_lower_Y))
id_Y = last_lower_Y;
else
if (~isnan(last_higher_Y))
id_Y = last_higher_Y;
end
end
scatter_COL(i) = values(id_X, id_Y);
alpha_COL(i) = sqrt(values(id_X)^2+values(id_Y)^2);
end
f = figure();
sct=scatter(X, Y, markersize, scatter_COL,"filled");
if (plot_colorbar)
colorbar;
end
if (plot_lsf)
[r,p] = corr(X, Y);
str = {sprintf(‘corr: %.3f’, r), sprintf(‘pval: %d’, p)};
l = lsline;
set(l, ‘Color’, ‘k’);
annotation(‘textbox’, [0.14 0.80 0.1 0.1], ‘String’, str, ‘EdgeColor’, ‘none’);
end
if (~isempty(xlab))
xlabel(xlab);
end
if (~isempty(ylab))
ylabel(ylab);
end
if (~isempty(title))
title(title);
end
[p,n,r] = fileparts(outname);
if (isempty(r))
r = ”;
end
set(gca,’FontSize’,12,’fontname’,’Samsung Sans’,’color’,’w’)
outname = strcat(p,n,r);
f.Position = [100 100 400 400];
set(gcf, ‘PaperSize’, [2 4]);
set(gcf,’windowstyle’,’docked’) % or use a specific fig handle
colormap jet(64)
cb = colorbar;
cb.Label.String = ‘Density by Point Count’;
cb.FontName = ‘Samsung Sans’;
cb.Label.FontSize = 12;
figname = [num2str(outname) ‘Oscilogram.jpg’];
exportgraphics(f,figname,’Resolution’,600);
outfile = fullfile(outpath, outname);
% saveas(f, outfile);
end
X1=randn(10000,1);
X2=randn(10000,1);
X3=randn(10000,1);
X=X1.^2+X2.*X3;
Y=randn(10000,1);
numbinss=80;
f=heatscatter(X,Y,"C:",’X-Y Scatter Variable Alpha’,num2str(numbinss),’15’,’o’,1,0,’X-axis’,’Y-axis’);
Please let me know if more clarification is required and I will be happy to provide.
Thank you so much for the help. Hi everyone,
I am using a custom function to calculate the density of point for a scatter plot based on the bin size. Below is the example of the plot generated by the code.
In the above code, the color is set such that point around the center of bin with high point density will be colored brownm, and the lower desity will be blue. The point in the bithween will be colored in accordance to the heatmap gradiente.
Problem:
Similarly to setting the color as a function fo the point density, I would like to set the alpha trasnparency of the marker edges and faces based on the point density. So the plot would like somewhat like below. Basically, what I want to accomplishe is that as the marker color gravitates towards the blue color, I would like to the decrease the transparency level of the marker, at the same time that the marker taht are Brown will be 100% opaque. So, simply put, I would like to change the ‘MarkerEdgeAlpha’ as a function of the point count density.
2. Change point cound density to relative frequency. Below is a figure where this is exemplified (Source Fig. 2 in Nature Paper).
Following is my script, which contain the in file function. This is a modification of the file prepared by @Lukas and shared at Original File.
clear all
close all
function outfile = heatscatter(X, Y, outpath, outname, numbins, markersize, marker, plot_colorbar, plot_lsf, xlab, ylab, title)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% heatscatter(X, Y, outpath, outname, numbins, markersize, marker, plot_colorbar, plot_lsf, xlab, ylab, title)
% mandatory:
% X [x,1] array containing variable X
% Y [y,1] array containing variable Y
% outpath path where the output-file should be saved.
% leave blank for current working directory
% outname name of the output-file. if outname contains
% filetype (e.g. png), this type will be used.
% Otherwise, a pdf-file will be generated
% optional:
% numbins [double], default 50
% number if bins used for the
% heat3-calculation, thus the coloring
% markersize [double], default 10
% size of the marker used in the scatter-plot
% marker [char], default ‘o’
% type of the marker used in the scatter-plot
% plot_colorbar [double], boolean 0/1, default 1
% set whether the colorbar should be plotted
% or not
% plot_lsf [double], boolean 0/1, default 1
% set whether the least-square-fit line
% should be plotted or not (together with
% the correlation/p-value of the data
% xlab [char], default ”
% lable for the x-axis
% ylab [char], default ”
% lable for the y-axis
% title [char], default ”
% title of the figure
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% mandatory
if ~exist(‘X’,’var’) || isempty(X)
error(‘Param X is mandatory! –> EXIT!’);
end
if ~exist(‘Y’,’var’) || isempty(Y)
error(‘Param Y is mandatory! –> EXIT!’);
end
if ~exist(‘outpath’,’var’)
error(‘Param outpath is mandatory! –> EXIT!’);
end
if ~exist(‘outname’,’var’) || isempty(outname)
error(‘Param outname is mandatory! –> EXIT!’);
end
%%%% optional
if ~exist(‘numbins’,’var’) || isempty(numbins)
numbins = 50;
else
% force number, not char input
numbins = str2double(numbins);
end
if ~exist(‘markersize’,’var’) || isempty(markersize)
markersize = 10;
else
% force number, not char input
markersize = str2double(markersize);
end
if ~exist(‘marker’,’var’) || isempty(marker)
marker = ‘o’;
end
if ~exist(‘plot_colorbar’,’var’) || isempty(plot_colorbar)
plot_colorbar = 1;
end
if ~exist(‘plot_lsf’,’var’) || isempty(plot_lsf)
plot_lsf = 1;
end
if ~exist(‘xlab’,’var’) || isempty(xlab)
xlab = ”;
end
if ~exist(‘ylab’,’var’) || isempty(ylab)
ylab = ”;
end
if ~exist(‘title’,’var’) || isempty(title)
title = ”;
end
[values, centers] = hist3([X Y], [numbins numbins]);
centers_X = centers{1,1};
centers_Y = centers{1,2};
binsize_X = abs(centers_X(2) – centers_X(1)) / 2;
binsize_Y = abs(centers_Y(2) – centers_Y(1)) / 2;
bins_X = zeros(numbins, 2);
bins_Y = zeros(numbins, 2);
for i = 1:numbins
bins_X(i, 1) = centers_X(i) – binsize_X;
bins_X(i, 2) = centers_X(i) + binsize_X;
bins_Y(i, 1) = centers_Y(i) – binsize_Y;
bins_Y(i, 2) = centers_Y(i) + binsize_Y;
end
scatter_COL = zeros(length(X), 1);
onepercent = round(length(X) / 100);
for i = 1:length(X)
if (mod(i,onepercent) == 0)
fprintf(‘.’);
end
last_lower_X = NaN;
last_higher_X = NaN;
id_X = NaN;
c_X = X(i);
last_lower_X = find(c_X >= bins_X(:,1));
if (~isempty(last_lower_X))
last_lower_X = last_lower_X(end);
else
last_higher_X = find(c_X <= bins_X(:,2));
if (~isempty(last_higher_X))
last_higher_X = last_higher_X(1);
end
end
if (~isnan(last_lower_X))
id_X = last_lower_X;
else
if (~isnan(last_higher_X))
id_X = last_higher_X;
end
end
last_lower_Y = NaN;
last_higher_Y = NaN;
id_Y = NaN;
c_Y = Y(i);
last_lower_Y = find(c_Y >= bins_Y(:,1));
if (~isempty(last_lower_Y))
last_lower_Y = last_lower_Y(end);
else
last_higher_Y = find(c_Y <= bins_Y(:,2));
if (~isempty(last_higher_Y))
last_higher_Y = last_higher_Y(1);
end
end
if (~isnan(last_lower_Y))
id_Y = last_lower_Y;
else
if (~isnan(last_higher_Y))
id_Y = last_higher_Y;
end
end
scatter_COL(i) = values(id_X, id_Y);
alpha_COL(i) = sqrt(values(id_X)^2+values(id_Y)^2);
end
f = figure();
sct=scatter(X, Y, markersize, scatter_COL,"filled");
if (plot_colorbar)
colorbar;
end
if (plot_lsf)
[r,p] = corr(X, Y);
str = {sprintf(‘corr: %.3f’, r), sprintf(‘pval: %d’, p)};
l = lsline;
set(l, ‘Color’, ‘k’);
annotation(‘textbox’, [0.14 0.80 0.1 0.1], ‘String’, str, ‘EdgeColor’, ‘none’);
end
if (~isempty(xlab))
xlabel(xlab);
end
if (~isempty(ylab))
ylabel(ylab);
end
if (~isempty(title))
title(title);
end
[p,n,r] = fileparts(outname);
if (isempty(r))
r = ”;
end
set(gca,’FontSize’,12,’fontname’,’Samsung Sans’,’color’,’w’)
outname = strcat(p,n,r);
f.Position = [100 100 400 400];
set(gcf, ‘PaperSize’, [2 4]);
set(gcf,’windowstyle’,’docked’) % or use a specific fig handle
colormap jet(64)
cb = colorbar;
cb.Label.String = ‘Density by Point Count’;
cb.FontName = ‘Samsung Sans’;
cb.Label.FontSize = 12;
figname = [num2str(outname) ‘Oscilogram.jpg’];
exportgraphics(f,figname,’Resolution’,600);
outfile = fullfile(outpath, outname);
% saveas(f, outfile);
end
X1=randn(10000,1);
X2=randn(10000,1);
X3=randn(10000,1);
X=X1.^2+X2.*X3;
Y=randn(10000,1);
numbinss=80;
f=heatscatter(X,Y,"C:",’X-Y Scatter Variable Alpha’,num2str(numbinss),’15’,’o’,1,0,’X-axis’,’Y-axis’);
Please let me know if more clarification is required and I will be happy to provide.
Thank you so much for the help. scatter-plot, hist3, markeralpha, transperancy, ‘markeredgealpha’ MATLAB Answers — New Questions
How can I copy a resource file in a packaged / compiled app?
I have written an app using AppDesigner and I can’t seem to figure out how to save my file using a template I created and placed in the resource folder in my packaged app.
The Error I continue to get is ‘No Matching files were found.’
filename_template = ‘DesignData_template.xlsx’;
[file,path] = uiputfile(sprintf(‘DesignData, Panel %.0f.xlsx’,i));
filename = fullfile(path,file);
copyfile(filename_template, filename, ‘f’);I have written an app using AppDesigner and I can’t seem to figure out how to save my file using a template I created and placed in the resource folder in my packaged app.
The Error I continue to get is ‘No Matching files were found.’
filename_template = ‘DesignData_template.xlsx’;
[file,path] = uiputfile(sprintf(‘DesignData, Panel %.0f.xlsx’,i));
filename = fullfile(path,file);
copyfile(filename_template, filename, ‘f’); I have written an app using AppDesigner and I can’t seem to figure out how to save my file using a template I created and placed in the resource folder in my packaged app.
The Error I continue to get is ‘No Matching files were found.’
filename_template = ‘DesignData_template.xlsx’;
[file,path] = uiputfile(sprintf(‘DesignData, Panel %.0f.xlsx’,i));
filename = fullfile(path,file);
copyfile(filename_template, filename, ‘f’); appdesigner, app designer, save, copyfile, app MATLAB Answers — New Questions
how to let a “plot” immune on any later ” hold off” once this “plot” is created.
I am a Matlab fan.
pls review my Matlab script file below:
clear;clc;
r=10;
plot([-35,35], [0,0], ‘r-.’ )
axis equal
hold on
for h=linspace(0,10,10)
theta=linspace(0,2*pi);
x=r*cos(theta);
y=30+h+r*sin(theta);
plot(x,y);
xlim([-50,50]);
ylim([-50,50]);
pause(0.1)
end
if I don’t add " hold off" in the " for-end" statement, then the circle creates many ones when it is moving.
if I do add " hold off" in the " for-end" statement, then the horizontal red line is disappeared.
I expect :
1) the horizontal red line is kept once it is ploted before the the " for-end" statement.
2) only one circle is occuring when it is moving.
may you give me a guide?
Thanks in advance!I am a Matlab fan.
pls review my Matlab script file below:
clear;clc;
r=10;
plot([-35,35], [0,0], ‘r-.’ )
axis equal
hold on
for h=linspace(0,10,10)
theta=linspace(0,2*pi);
x=r*cos(theta);
y=30+h+r*sin(theta);
plot(x,y);
xlim([-50,50]);
ylim([-50,50]);
pause(0.1)
end
if I don’t add " hold off" in the " for-end" statement, then the circle creates many ones when it is moving.
if I do add " hold off" in the " for-end" statement, then the horizontal red line is disappeared.
I expect :
1) the horizontal red line is kept once it is ploted before the the " for-end" statement.
2) only one circle is occuring when it is moving.
may you give me a guide?
Thanks in advance! I am a Matlab fan.
pls review my Matlab script file below:
clear;clc;
r=10;
plot([-35,35], [0,0], ‘r-.’ )
axis equal
hold on
for h=linspace(0,10,10)
theta=linspace(0,2*pi);
x=r*cos(theta);
y=30+h+r*sin(theta);
plot(x,y);
xlim([-50,50]);
ylim([-50,50]);
pause(0.1)
end
if I don’t add " hold off" in the " for-end" statement, then the circle creates many ones when it is moving.
if I do add " hold off" in the " for-end" statement, then the horizontal red line is disappeared.
I expect :
1) the horizontal red line is kept once it is ploted before the the " for-end" statement.
2) only one circle is occuring when it is moving.
may you give me a guide?
Thanks in advance! plot, hold off, hold on, figure MATLAB Answers — New Questions
how Edge sidebar apps work?
hi,
i add some of my daily app to side bar. it seams edge loading web version of that apps like MS todo, Whatsapp,… . but when i want add Anydo app it redirect me to google play. i want to know is it normal ?
l click install on more device but nothing happen ?
hi,i add some of my daily app to side bar. it seams edge loading web version of that apps like MS todo, Whatsapp,… . but when i want add Anydo app it redirect me to google play. i want to know is it normal ?l click install on more device but nothing happen ? Read More
right scroll wheel is too high up
Hi,
I have a very long document that we have finished editing – 15,000 rows it has several columns across. I have set the print area thinking it would help this problem but it hasn’t, I had to manually select all the rows/columns, I don’t know what the keyboard shortcut is for this.
The scroll wheel thing on the right-hand side is very high up the page rather than at the bottom of the document which is where I was expecting it to show. I cannot move that scroll thing to where I would like because the area is too small obviously.
See the picture, this is where the end of the document is, you can see the long section below it that has no data in it.
I hope this makes sense to everyone, it’s really irritating that I cannot scroll through the document to move to through the document vertically.
Can I correct this problem?
Hi, I have a very long document that we have finished editing – 15,000 rows it has several columns across. I have set the print area thinking it would help this problem but it hasn’t, I had to manually select all the rows/columns, I don’t know what the keyboard shortcut is for this. The scroll wheel thing on the right-hand side is very high up the page rather than at the bottom of the document which is where I was expecting it to show. I cannot move that scroll thing to where I would like because the area is too small obviously. See the picture, this is where the end of the document is, you can see the long section below it that has no data in it. I hope this makes sense to everyone, it’s really irritating that I cannot scroll through the document to move to through the document vertically. Can I correct this problem? Read More
Change M365Plan
Hi,
I want to switch from “M365 Apps for Enterprieses” to “M365 Family”-Plan, because my business is not longer existing. Seems that there`s no standardprocess for switching from business to private plan…How should I proceed?
Thanks for your help!
Hi,I want to switch from “M365 Apps for Enterprieses” to “M365 Family”-Plan, because my business is not longer existing. Seems that there`s no standardprocess for switching from business to private plan…How should I proceed?Thanks for your help! Read More
Excel Graph help
Hi, I would like to ask for help in creating a graph for my monthly report as per illustrated in the picture below. It’s a fairly simple chart. If there are better option for graphs, i can adopt it as well.
Hi, I would like to ask for help in creating a graph for my monthly report as per illustrated in the picture below. It’s a fairly simple chart. If there are better option for graphs, i can adopt it as well. Read More
Getting Error: Token Authentication failed – MISE12034: AuthenticationTicketProvider Name:Authentica
While running http://teams-notification.dev.azuresynapse.net/queryPipelineRuns?api-version=2019-11-01-preview -> this api with following authentication mechanisam
1. User Assigned Managed Identity
2. System Assigned Managed Identity
3. service principle
Resource I’m providing: https://dev.azuresynapse.net/
I got Below error: Operation on target Web1 failed: {“code”:”AuthenticationFailed”,”message”:”Token Authentication failed – MISE12034: AuthenticationTicketProvider Name:AuthenticationTicketProvider, GetVersion:1.22.3.0. “}
While running http://teams-notification.dev.azuresynapse.net/queryPipelineRuns?api-version=2019-11-01-preview -> this api with following authentication mechanisam1. User Assigned Managed Identity2. System Assigned Managed Identity3. service principle Resource I’m providing: https://dev.azuresynapse.net/I got Below error: Operation on target Web1 failed: {“code”:”AuthenticationFailed”,”message”:”Token Authentication failed – MISE12034: AuthenticationTicketProvider Name:AuthenticationTicketProvider, GetVersion:1.22.3.0. “} Read More
What To Do When QuickBooks Enterprise not responding when opening company file?
Troubleshooting Solutions: QuickBooks Enterprise not responding when opening company file
Restart QuickBooks and Computer: Begin by closing QuickBooks and restarting your computer. This simple step often resolves minor software glitches.
Check System Requirements: Ensure your system meets the minimum requirements to run QuickBooks Enterprise. Inadequate system resources can cause performance issues.
Update QuickBooks: Make sure you are using the latest version of QuickBooks Enterprise. Updates often include bug fixes and performance improvements that can address issues like freezing.
Verify Company File Location: Confirm that the company file is stored in a location accessible by QuickBooks. If it’s on a network drive, ensure the connection is stable.
Use QuickBooks File Doctor: Run the QuickBooks File Doctor tool, which can identify and repair common data issues that may be causing the program to freeze.
Disable Antivirus/Firewall: Temporarily disable your antivirus or firewall software. Sometimes, security programs can interfere with QuickBooks’ functionality.
Recreate the Company File: If the issue persists, create a new company file and try opening it. If the problem disappears, it suggests the original file may be damaged.
Check for Data Damage: Use the Verify Data and Rebuild Data utilities in QuickBooks to check for and repair data damage within the company file.
Clean Install QuickBooks: Uninstall QuickBooks, then reinstall it using a clean install. This process ensures all program files are properly installed and can resolve underlying issues.
Review Event Viewer Logs: Check the Event Viewer logs on your computer for any error messages related to QuickBooks. This can provide insight into the root cause of the problem.
Consult QuickBooks Support: If none of the above solutions resolve the issue, contact QuickBooks support for personalized assistance. They can offer additional troubleshooting steps or escalate the issue if necessary.
By following these troubleshooting steps, you can address the QuickBooks Enterprise not responding when opening company file issue and restore smooth functionality to your accounting software.
Troubleshooting Solutions: QuickBooks Enterprise not responding when opening company file Restart QuickBooks and Computer: Begin by closing QuickBooks and restarting your computer. This simple step often resolves minor software glitches.Check System Requirements: Ensure your system meets the minimum requirements to run QuickBooks Enterprise. Inadequate system resources can cause performance issues.Update QuickBooks: Make sure you are using the latest version of QuickBooks Enterprise. Updates often include bug fixes and performance improvements that can address issues like freezing.Verify Company File Location: Confirm that the company file is stored in a location accessible by QuickBooks. If it’s on a network drive, ensure the connection is stable.Use QuickBooks File Doctor: Run the QuickBooks File Doctor tool, which can identify and repair common data issues that may be causing the program to freeze.Disable Antivirus/Firewall: Temporarily disable your antivirus or firewall software. Sometimes, security programs can interfere with QuickBooks’ functionality.Recreate the Company File: If the issue persists, create a new company file and try opening it. If the problem disappears, it suggests the original file may be damaged.Check for Data Damage: Use the Verify Data and Rebuild Data utilities in QuickBooks to check for and repair data damage within the company file.Clean Install QuickBooks: Uninstall QuickBooks, then reinstall it using a clean install. This process ensures all program files are properly installed and can resolve underlying issues.Review Event Viewer Logs: Check the Event Viewer logs on your computer for any error messages related to QuickBooks. This can provide insight into the root cause of the problem.Consult QuickBooks Support: If none of the above solutions resolve the issue, contact QuickBooks support for personalized assistance. They can offer additional troubleshooting steps or escalate the issue if necessary. By following these troubleshooting steps, you can address the QuickBooks Enterprise not responding when opening company file issue and restore smooth functionality to your accounting software. Read More
New non profit account, can’t access admin panel
We have existing 365 email through GoDaddy. Have recently been accepted for a nonprofit account with Microsoft and plan to not move over completely and leave GoDaddy behind, however when registering I stupidly selected transfer account rather than create a new account. Now when I try to log in and access the admin panel it redirects to the GoDaddy admin.
Do I need to start again and register and will that be accepted as might show up as a duplicate account or can the account be transferred so we have the temporary onMicrosoft.net domain for setting things up before we switch over from GoDaddy?
I have not been able to find any other contact details for Microsoft and an email to support a few weeks ago has gone unanswered. Any help would be appreciated.
We have existing 365 email through GoDaddy. Have recently been accepted for a nonprofit account with Microsoft and plan to not move over completely and leave GoDaddy behind, however when registering I stupidly selected transfer account rather than create a new account. Now when I try to log in and access the admin panel it redirects to the GoDaddy admin.Do I need to start again and register and will that be accepted as might show up as a duplicate account or can the account be transferred so we have the temporary onMicrosoft.net domain for setting things up before we switch over from GoDaddy?I have not been able to find any other contact details for Microsoft and an email to support a few weeks ago has gone unanswered. Any help would be appreciated. Read More
Why is My QuickBooks Enterprise 2024 not responding when opening company file?
Troubleshooting Solutions: QuickBooks Enterprise 2024 not responding when opening company file
Check System Requirements: Ensure your system meets QuickBooks Enterprise 2024’s minimum requirements. Inadequate hardware or outdated software may cause performance issues.
Run QuickBooks File Doctor: Utilize QuickBooks File Doctor, a diagnostic tool designed to fix company file and network issues. It can identify and repair various file-related problems.
Update QuickBooks Enterprise: Verify that QuickBooks Enterprise is updated to the latest version. Software updates often include bug fixes and performance enhancements that may resolve the issue.
Reboot Your Computer: Sometimes, a simple reboot can resolve software glitches and refresh system resources, potentially fixing the not responding issue.
Check for Data Corruption: Data corruption can lead to file opening problems. Use QuickBooks Verify and Rebuild Data utilities to detect and fix data integrity issues.
Disable Antivirus/Firewall: Antivirus or firewall software may block QuickBooks from functioning properly. Temporarily disable them and attempt to open the company file again.
Use QuickBooks Clean Install Tool: Perform a clean install of QuickBooks using the Clean Install Tool. This removes all program files and ensures a fresh installation, potentially resolving any underlying issues.
Create a New Windows User: Create a new Windows user account and attempt to open QuickBooks from that account. This helps determine if the issue is specific to your user profile.
Check Disk Space and Fragmentation: Insufficient disk space or fragmented drives can affect software performance. Ensure you have enough free disk space and defragment your hard drive if necessary.
Contact QuickBooks Support: If the issue persists, contact QuickBooks support for further assistance. They can provide personalized troubleshooting steps or escalate the issue if needed.
By following these troubleshooting solutions, you can address the QuickBooks Enterprise 2024 not responding when opening company file problem and resume normal operations efficiently.
Troubleshooting Solutions: QuickBooks Enterprise 2024 not responding when opening company file Check System Requirements: Ensure your system meets QuickBooks Enterprise 2024’s minimum requirements. Inadequate hardware or outdated software may cause performance issues.Run QuickBooks File Doctor: Utilize QuickBooks File Doctor, a diagnostic tool designed to fix company file and network issues. It can identify and repair various file-related problems.Update QuickBooks Enterprise: Verify that QuickBooks Enterprise is updated to the latest version. Software updates often include bug fixes and performance enhancements that may resolve the issue.Reboot Your Computer: Sometimes, a simple reboot can resolve software glitches and refresh system resources, potentially fixing the not responding issue.Check for Data Corruption: Data corruption can lead to file opening problems. Use QuickBooks Verify and Rebuild Data utilities to detect and fix data integrity issues.Disable Antivirus/Firewall: Antivirus or firewall software may block QuickBooks from functioning properly. Temporarily disable them and attempt to open the company file again.Use QuickBooks Clean Install Tool: Perform a clean install of QuickBooks using the Clean Install Tool. This removes all program files and ensures a fresh installation, potentially resolving any underlying issues.Create a New Windows User: Create a new Windows user account and attempt to open QuickBooks from that account. This helps determine if the issue is specific to your user profile.Check Disk Space and Fragmentation: Insufficient disk space or fragmented drives can affect software performance. Ensure you have enough free disk space and defragment your hard drive if necessary.Contact QuickBooks Support: If the issue persists, contact QuickBooks support for further assistance. They can provide personalized troubleshooting steps or escalate the issue if needed. By following these troubleshooting solutions, you can address the QuickBooks Enterprise 2024 not responding when opening company file problem and resume normal operations efficiently. Read More
Merging SharePoint Lists
I am trying to merge 2 SharePoint lists together. May I please ask for an idea to combine?
I am trying to merge 2 SharePoint lists together. May I please ask for an idea to combine? Read More
Why is My QuickBooks Enterprise 2023 not responding when opening company file?
Troubleshooting Solutions: QuickBooks Enterprise 2023 not responding when opening company file
Restart QuickBooks and Computer: Begin by closing QuickBooks and restarting your computer. Sometimes, background processes or temporary glitches can cause software to become unresponsive.
Check for QuickBooks Updates: Ensure that your QuickBooks Enterprise software is up to date. Updates often contain bug fixes and performance improvements that could address the issue you’re facing.
Verify Company File Location: Double-check the location of your company file. Ensure it’s stored in a local drive rather than a network location or external drive, as accessing files over a network can sometimes lead to responsiveness issues.
Run QuickBooks File Doctor: QuickBooks File Doctor is a diagnostic tool provided by Intuit to troubleshoot company file issues. Run this tool to detect and repair any data integrity problems that might be causing the software to freeze.
Use QuickBooks Refresher Tool: Intuit also offers a QuickBooks Refresher Tool designed to resolve common performance issues. Running this tool can refresh QuickBooks processes and potentially resolve the unresponsiveness problem.
Check for System Requirements: Ensure your computer meets the minimum system requirements for running QuickBooks Enterprise 2023. Inadequate system resources or incompatible hardware can lead to performance issues.
Disable Antivirus/Firewall Temporarily: Sometimes, security software like antivirus or firewall programs can interfere with QuickBooks operations. Temporarily disable these programs and try opening the company file again to see if the issue persists.
Create a New Windows User: Create a new Windows user profile and try opening QuickBooks from that profile. This helps determine if the problem is specific to your user account or a system-wide issue.
Reinstall QuickBooks: If none of the above solutions work, consider reinstalling QuickBooks Enterprise 2023. Make sure to back up your company file before uninstalling the software to prevent data loss.
Contact QuickBooks Support: If the issue persists despite trying all the troubleshooting steps, reach out to QuickBooks support for further assistance. They can provide personalized guidance and additional troubleshooting options tailored to your specific situation.
Troubleshooting Solutions: QuickBooks Enterprise 2023 not responding when opening company file Restart QuickBooks and Computer: Begin by closing QuickBooks and restarting your computer. Sometimes, background processes or temporary glitches can cause software to become unresponsive.Check for QuickBooks Updates: Ensure that your QuickBooks Enterprise software is up to date. Updates often contain bug fixes and performance improvements that could address the issue you’re facing.Verify Company File Location: Double-check the location of your company file. Ensure it’s stored in a local drive rather than a network location or external drive, as accessing files over a network can sometimes lead to responsiveness issues.Run QuickBooks File Doctor: QuickBooks File Doctor is a diagnostic tool provided by Intuit to troubleshoot company file issues. Run this tool to detect and repair any data integrity problems that might be causing the software to freeze.Use QuickBooks Refresher Tool: Intuit also offers a QuickBooks Refresher Tool designed to resolve common performance issues. Running this tool can refresh QuickBooks processes and potentially resolve the unresponsiveness problem.Check for System Requirements: Ensure your computer meets the minimum system requirements for running QuickBooks Enterprise 2023. Inadequate system resources or incompatible hardware can lead to performance issues.Disable Antivirus/Firewall Temporarily: Sometimes, security software like antivirus or firewall programs can interfere with QuickBooks operations. Temporarily disable these programs and try opening the company file again to see if the issue persists.Create a New Windows User: Create a new Windows user profile and try opening QuickBooks from that profile. This helps determine if the problem is specific to your user account or a system-wide issue.Reinstall QuickBooks: If none of the above solutions work, consider reinstalling QuickBooks Enterprise 2023. Make sure to back up your company file before uninstalling the software to prevent data loss.Contact QuickBooks Support: If the issue persists despite trying all the troubleshooting steps, reach out to QuickBooks support for further assistance. They can provide personalized guidance and additional troubleshooting options tailored to your specific situation. Read More
Using fmincon to optimize Simulink model for optimal trajectory
Hello, so i want to search for optimal trajectory (by defining spline) position input to the Simulink Simscape Multibody model to minimize the total force input to the model. However, I encountered the following error in constraint function.
Error using chckxy
The first and second inputs must be of type double or single.
Error in spline (line 72)
[x,y,sizey,endslopes] = chckxy(x,y);
Error in GetStartedWithProblemBasedOptimizeLiveEditorTaskExample>constraintFcn (line 43)
dataStructure.signals(1).values=spline(nTime,locX,dataStructure.time);
Besides form that, when I try to exclude the constraint, the solution of the optimal trajectory is always the same with the initial points. Can anyone help me with the situation? Hereby I attach the folder.Hello, so i want to search for optimal trajectory (by defining spline) position input to the Simulink Simscape Multibody model to minimize the total force input to the model. However, I encountered the following error in constraint function.
Error using chckxy
The first and second inputs must be of type double or single.
Error in spline (line 72)
[x,y,sizey,endslopes] = chckxy(x,y);
Error in GetStartedWithProblemBasedOptimizeLiveEditorTaskExample>constraintFcn (line 43)
dataStructure.signals(1).values=spline(nTime,locX,dataStructure.time);
Besides form that, when I try to exclude the constraint, the solution of the optimal trajectory is always the same with the initial points. Can anyone help me with the situation? Hereby I attach the folder. Hello, so i want to search for optimal trajectory (by defining spline) position input to the Simulink Simscape Multibody model to minimize the total force input to the model. However, I encountered the following error in constraint function.
Error using chckxy
The first and second inputs must be of type double or single.
Error in spline (line 72)
[x,y,sizey,endslopes] = chckxy(x,y);
Error in GetStartedWithProblemBasedOptimizeLiveEditorTaskExample>constraintFcn (line 43)
dataStructure.signals(1).values=spline(nTime,locX,dataStructure.time);
Besides form that, when I try to exclude the constraint, the solution of the optimal trajectory is always the same with the initial points. Can anyone help me with the situation? Hereby I attach the folder. optimization, simulink, simscape, trajectory MATLAB Answers — New Questions
matlab code for entropy based local binary pattern
can anyone send me the link for entropy based local binary pattern(ELBP) .. thanks in advancecan anyone send me the link for entropy based local binary pattern(ELBP) .. thanks in advance can anyone send me the link for entropy based local binary pattern(ELBP) .. thanks in advance local binary pattern MATLAB Answers — New Questions
Error while generation detector results
I am using Yolov4 with darknet-53-coco. I have trained the detector but unable to generate detector results using
detectionResults = detect(detector,testData,Threshold=0.01);
After running the code I am getting the following error
Error using dlnetwork/predict
Execution failed during layer(s) ‘conv_2’.
Error in yolov4ObjectDetector>iPredictActivations (line 1223)
[features{:}] = predict(network, dlX, ‘Acceleration’,acceleration);
Error in yolov4ObjectDetector/predict (line 555)
features = iPredictActivations(network, imgBatch, anchorBoxes, predictParams.Acceleration, isRotatedBox);
Error in vision.internal.detector.ObjectDetector/performDetect (line 72)
features = this.predict(Ipreprocessed, params);
Error in yolov4ObjectDetector/detect (line 441)
[varargout{1:nargout}] = performDetect(detector, I, params);
Caused by:
Error using builtin
Out of memory.I am using Yolov4 with darknet-53-coco. I have trained the detector but unable to generate detector results using
detectionResults = detect(detector,testData,Threshold=0.01);
After running the code I am getting the following error
Error using dlnetwork/predict
Execution failed during layer(s) ‘conv_2’.
Error in yolov4ObjectDetector>iPredictActivations (line 1223)
[features{:}] = predict(network, dlX, ‘Acceleration’,acceleration);
Error in yolov4ObjectDetector/predict (line 555)
features = iPredictActivations(network, imgBatch, anchorBoxes, predictParams.Acceleration, isRotatedBox);
Error in vision.internal.detector.ObjectDetector/performDetect (line 72)
features = this.predict(Ipreprocessed, params);
Error in yolov4ObjectDetector/detect (line 441)
[varargout{1:nargout}] = performDetect(detector, I, params);
Caused by:
Error using builtin
Out of memory. I am using Yolov4 with darknet-53-coco. I have trained the detector but unable to generate detector results using
detectionResults = detect(detector,testData,Threshold=0.01);
After running the code I am getting the following error
Error using dlnetwork/predict
Execution failed during layer(s) ‘conv_2’.
Error in yolov4ObjectDetector>iPredictActivations (line 1223)
[features{:}] = predict(network, dlX, ‘Acceleration’,acceleration);
Error in yolov4ObjectDetector/predict (line 555)
features = iPredictActivations(network, imgBatch, anchorBoxes, predictParams.Acceleration, isRotatedBox);
Error in vision.internal.detector.ObjectDetector/performDetect (line 72)
features = this.predict(Ipreprocessed, params);
Error in yolov4ObjectDetector/detect (line 441)
[varargout{1:nargout}] = performDetect(detector, I, params);
Caused by:
Error using builtin
Out of memory. yolov4, object detection MATLAB Answers — New Questions