Category: News
Question about moving SSD to new build
I have a 2 TB Samsung SSD from my old pc that died and I want to add to new pc with Windows 10 currently the operating system. The question I have is would it cause any issues to just install it and then format the thing? Most of what is on it is also on new I just want the extra storage.
I have a 2 TB Samsung SSD from my old pc that died and I want to add to new pc with Windows 10 currently the operating system. The question I have is would it cause any issues to just install it and then format the thing? Most of what is on it is also on new I just want the extra storage. Read More
Form to allow user to colour fill cells of their choice
I would like to include a feature in my spreadsheet. In cell B2 I have a list form, showing the options “O.P”, “C.P” and “P.S.P”. Underneath in cells B3 to E3 are two rows of the following options “Socials”, “Alert”, “Going” and “Subscription”. Photo below for example.
I have already formatted each of the cells from B3 to E4 to display their respective text, dependent on the value in B2. So when either of the options are selected in the form in B2, the cells underneath will display the same word text. For example, the formula I have used in cell B4 is this “=IF(B2=”O.P”,”Socials”,IF(B2=”C.P”,”Socials”,IF(B2=”P.S.P”,”Socials”,””))) “.
Everything works fine when switching between the forms. What I need to include is a feature where the user can choose any of the options in B2 and colour fill in the cells underneath as they need.
Right now when I do this, the colour filled cells stay the same across all of the options in B2. What I need is for the colour filled cells to stay the same, respective to the option in B2.
Ultimately, if the user is on the “O.P” option in B2, and they colour fill cells B3 and D3, then go to the “C.P” option in B2 and colour fill cells C3 and D3, when they go back to the “O.P” option, cells B3 and D3 will still be colour filled, and when they go back to the “C.P” option, cells C3 and D3 will still be colour filled.
How would I be able to include this feature in my spreadsheet please?
I would like to include a feature in my spreadsheet. In cell B2 I have a list form, showing the options “O.P”, “C.P” and “P.S.P”. Underneath in cells B3 to E3 are two rows of the following options “Socials”, “Alert”, “Going” and “Subscription”. Photo below for example. I have already formatted each of the cells from B3 to E4 to display their respective text, dependent on the value in B2. So when either of the options are selected in the form in B2, the cells underneath will display the same word text. For example, the formula I have used in cell B4 is this “=IF(B2=”O.P”,”Socials”,IF(B2=”C.P”,”Socials”,IF(B2=”P.S.P”,”Socials”,””))) “. Everything works fine when switching between the forms. What I need to include is a feature where the user can choose any of the options in B2 and colour fill in the cells underneath as they need. Right now when I do this, the colour filled cells stay the same across all of the options in B2. What I need is for the colour filled cells to stay the same, respective to the option in B2. Ultimately, if the user is on the “O.P” option in B2, and they colour fill cells B3 and D3, then go to the “C.P” option in B2 and colour fill cells C3 and D3, when they go back to the “O.P” option, cells B3 and D3 will still be colour filled, and when they go back to the “C.P” option, cells C3 and D3 will still be colour filled. How would I be able to include this feature in my spreadsheet please? Read More
How to have number as marker symbol in plot
I’m trying to have a plot with number form 1 to 150 as a marker symbol.I have this but it doesn’t work.please help
if true
% code
mark=zeros(1,class_length);
for i=1:class_length
mark(:,i)=i;
ma=num2str(mark);
malength=length(ma);
end
if mode==6 && colorflag==0
box on;
hold on;
for i=1:class_length
for p=1:malength
if classlabel(i)==p
plot(x(i),y(i),’Marker’,mo(p),’MarkerSize’,fontsize,’Color’,colors(7));
end
end
end
hold off;
endI’m trying to have a plot with number form 1 to 150 as a marker symbol.I have this but it doesn’t work.please help
if true
% code
mark=zeros(1,class_length);
for i=1:class_length
mark(:,i)=i;
ma=num2str(mark);
malength=length(ma);
end
if mode==6 && colorflag==0
box on;
hold on;
for i=1:class_length
for p=1:malength
if classlabel(i)==p
plot(x(i),y(i),’Marker’,mo(p),’MarkerSize’,fontsize,’Color’,colors(7));
end
end
end
hold off;
end I’m trying to have a plot with number form 1 to 150 as a marker symbol.I have this but it doesn’t work.please help
if true
% code
mark=zeros(1,class_length);
for i=1:class_length
mark(:,i)=i;
ma=num2str(mark);
malength=length(ma);
end
if mode==6 && colorflag==0
box on;
hold on;
for i=1:class_length
for p=1:malength
if classlabel(i)==p
plot(x(i),y(i),’Marker’,mo(p),’MarkerSize’,fontsize,’Color’,colors(7));
end
end
end
hold off;
end plot, marker symbol MATLAB Answers — New Questions
Matlab does not find Java Runtime Environment (Mac Silicon)
Hello, I’m trying to install matlab in my computer (Macbook pro, M2). It requires a java runtime environment (JRE). It give as an option the one from Amazon, but I have a JRE installed directly from Java’s website. After reading this article on how to change the JRE path from the command window, I run the following, from the hardrive location:
<path/to/matlab_jenv> <path/to/JRE>
I’m copy-pasting the JRE path from the java applet. Anyway, the error I’m getting is this:
"Unable to validate Java path: <path/to/JRE>".
Can anyone help? Thank you!!Hello, I’m trying to install matlab in my computer (Macbook pro, M2). It requires a java runtime environment (JRE). It give as an option the one from Amazon, but I have a JRE installed directly from Java’s website. After reading this article on how to change the JRE path from the command window, I run the following, from the hardrive location:
<path/to/matlab_jenv> <path/to/JRE>
I’m copy-pasting the JRE path from the java applet. Anyway, the error I’m getting is this:
"Unable to validate Java path: <path/to/JRE>".
Can anyone help? Thank you!! Hello, I’m trying to install matlab in my computer (Macbook pro, M2). It requires a java runtime environment (JRE). It give as an option the one from Amazon, but I have a JRE installed directly from Java’s website. After reading this article on how to change the JRE path from the command window, I run the following, from the hardrive location:
<path/to/matlab_jenv> <path/to/JRE>
I’m copy-pasting the JRE path from the java applet. Anyway, the error I’m getting is this:
"Unable to validate Java path: <path/to/JRE>".
Can anyone help? Thank you!! java, jre, installation MATLAB Answers — New Questions
Background transparency is not supported for surf plots
Whereas the
close all
[X,Y] = meshgrid(1:0.5:10,1:20);
x=[0 10];y=2*x;
hf1=figure;plot(x,y);set(gca, ‘color’, ‘none’)
exportgraphics(hf1,’test2d.pdf’,’BackgroundColor’,’none’)
Z = sin(X) + cos(Y);hf2=figure;surf(X,Y,Z);
set(gca, ‘color’, ‘none’);
exportgraphics(hf2,’test3d.pdf’,’BackgroundColor’,’none’);
hf3=figure;[X,Y] = meshgrid(-8:.5:8);R = sqrt(X.^2 + Y.^2) + eps;
Z = sin(R)./R;C = X.*Y;mesh(X,Y,Z,C)
set(gca, ‘color’, ‘none’);
exportgraphics(hf3,’test3d.pdf’,’BackgroundColor’,’none’);
I do get indeed transparent figures, but wih the folloing arning
Warning: Background transparency is not supported; using white instead
However, once I insert the pdf in my latex file, the background is white.
WIll appreciate any help.Whereas the
close all
[X,Y] = meshgrid(1:0.5:10,1:20);
x=[0 10];y=2*x;
hf1=figure;plot(x,y);set(gca, ‘color’, ‘none’)
exportgraphics(hf1,’test2d.pdf’,’BackgroundColor’,’none’)
Z = sin(X) + cos(Y);hf2=figure;surf(X,Y,Z);
set(gca, ‘color’, ‘none’);
exportgraphics(hf2,’test3d.pdf’,’BackgroundColor’,’none’);
hf3=figure;[X,Y] = meshgrid(-8:.5:8);R = sqrt(X.^2 + Y.^2) + eps;
Z = sin(R)./R;C = X.*Y;mesh(X,Y,Z,C)
set(gca, ‘color’, ‘none’);
exportgraphics(hf3,’test3d.pdf’,’BackgroundColor’,’none’);
I do get indeed transparent figures, but wih the folloing arning
Warning: Background transparency is not supported; using white instead
However, once I insert the pdf in my latex file, the background is white.
WIll appreciate any help. Whereas the
close all
[X,Y] = meshgrid(1:0.5:10,1:20);
x=[0 10];y=2*x;
hf1=figure;plot(x,y);set(gca, ‘color’, ‘none’)
exportgraphics(hf1,’test2d.pdf’,’BackgroundColor’,’none’)
Z = sin(X) + cos(Y);hf2=figure;surf(X,Y,Z);
set(gca, ‘color’, ‘none’);
exportgraphics(hf2,’test3d.pdf’,’BackgroundColor’,’none’);
hf3=figure;[X,Y] = meshgrid(-8:.5:8);R = sqrt(X.^2 + Y.^2) + eps;
Z = sin(R)./R;C = X.*Y;mesh(X,Y,Z,C)
set(gca, ‘color’, ‘none’);
exportgraphics(hf3,’test3d.pdf’,’BackgroundColor’,’none’);
I do get indeed transparent figures, but wih the folloing arning
Warning: Background transparency is not supported; using white instead
However, once I insert the pdf in my latex file, the background is white.
WIll appreciate any help. exportgraphics, backgorund MATLAB Answers — New Questions
moving two roi’s together
trying to move a circle roi and a crosshair roi together. when I move the circle I can move the the crosshair by having the drawcrosshair in the addlistener callback. however the previous one remains. Is there any way to make a group from two roi’s so both are moved together?
here is what I have:
hROI = drawcircle(‘Center’,[x, y],’Radius’,radius);
l = addlistener(hROI, ‘MovingROI’, @allevents);
function allevents(src,evt)
evname = evt.EventName;
switch(evname)
case {‘MovingROI’}
roiCH = drawcrosshair(‘Position’, evt.CurrentCenter, ‘StripeColor’,’r’, InteractionsAllowed = ‘none’);
end
endtrying to move a circle roi and a crosshair roi together. when I move the circle I can move the the crosshair by having the drawcrosshair in the addlistener callback. however the previous one remains. Is there any way to make a group from two roi’s so both are moved together?
here is what I have:
hROI = drawcircle(‘Center’,[x, y],’Radius’,radius);
l = addlistener(hROI, ‘MovingROI’, @allevents);
function allevents(src,evt)
evname = evt.EventName;
switch(evname)
case {‘MovingROI’}
roiCH = drawcrosshair(‘Position’, evt.CurrentCenter, ‘StripeColor’,’r’, InteractionsAllowed = ‘none’);
end
end trying to move a circle roi and a crosshair roi together. when I move the circle I can move the the crosshair by having the drawcrosshair in the addlistener callback. however the previous one remains. Is there any way to make a group from two roi’s so both are moved together?
here is what I have:
hROI = drawcircle(‘Center’,[x, y],’Radius’,radius);
l = addlistener(hROI, ‘MovingROI’, @allevents);
function allevents(src,evt)
evname = evt.EventName;
switch(evname)
case {‘MovingROI’}
roiCH = drawcrosshair(‘Position’, evt.CurrentCenter, ‘StripeColor’,’r’, InteractionsAllowed = ‘none’);
end
end roi, addlistener MATLAB Answers — New Questions
Get UITable Physical Column Width
Hello Matlab Community,
I’m working on developing a custom ui component using app designer. The custom component is a uitable with filters. The table is made out of two uitable components, one stacked on top of the other. The lower uitable houses all of my data while the top uitable provides the headers for the entire table as well as the filtering options.
The problem I’m running into is that the column widths do not match up. If I set the column widths to "auto", the tables end up being misaligned relative to one another. I’m trying to see if there is a way to get the physical width of each column and set it programmatically for cases in which an app window size is changed or when a user manually adjusts a column. The end result should be that both uitables have the same array of column widths. See attached image for example.Hello Matlab Community,
I’m working on developing a custom ui component using app designer. The custom component is a uitable with filters. The table is made out of two uitable components, one stacked on top of the other. The lower uitable houses all of my data while the top uitable provides the headers for the entire table as well as the filtering options.
The problem I’m running into is that the column widths do not match up. If I set the column widths to "auto", the tables end up being misaligned relative to one another. I’m trying to see if there is a way to get the physical width of each column and set it programmatically for cases in which an app window size is changed or when a user manually adjusts a column. The end result should be that both uitables have the same array of column widths. See attached image for example. Hello Matlab Community,
I’m working on developing a custom ui component using app designer. The custom component is a uitable with filters. The table is made out of two uitable components, one stacked on top of the other. The lower uitable houses all of my data while the top uitable provides the headers for the entire table as well as the filtering options.
The problem I’m running into is that the column widths do not match up. If I set the column widths to "auto", the tables end up being misaligned relative to one another. I’m trying to see if there is a way to get the physical width of each column and set it programmatically for cases in which an app window size is changed or when a user manually adjusts a column. The end result should be that both uitables have the same array of column widths. See attached image for example. uitable, column width MATLAB Answers — New Questions
While Loops and Criteria
Hi – I’m not sure if I’ve provided enough information for this but I’ll try. I have 4 matrices: easy_matrix, medium_matrix, hard_matrix, expert_matrix. Within these matrices are 9 rows of 1×4 arrays of different topics.(like motion_easy or waves_medium, etc.). All of the 1×4 arrays have specific, but different numbers in them (they don’t have identifiers though). If possible, I’d like the final_unshuffled matrix to return in such a way where if, say, easy_matrix pulls motion_easy, none of the others can pull the motion_topic (i.e. medium_matrix can’t pull motion_medium). I was thinking of making easy_matrix the reference row so that the other matrices (medium, hard and expert) all have a reference point for a while loop but I couldn’t make it work. Any help is greatly appreciated! Thank you in advance 🙂
easy_matrix = [motion_easy; waves_easy; quantum_easy; radiation_easy; electricity_easy; materials_easy; ef_easy; mf_easy; thermal_easy];
rand_row_easy = easy_matrix(randi(4),:); %Random pull from easy
disp(rand_row_easy)
medium_matrix = [motion_medium; waves_medium; quantum_medium; radiation_medium; electricity_medium; materials_medium; ef_medium; mf_medium; thermal_medium];
rand_row_medium = medium_matrix(randi(4),:); %Random pull from medium
disp(rand_row_medium)
hard_matrix = [motion_hard; waves_hard; quantum_hard; radiation_hard; electricity_hard; materials_hard; ef_hard; mf_hard; thermal_hard];
rand_row_hard = hard_matrix(randi(4),:); %Random pull from hard
disp(rand_row_hard)
expert_matrix = [motion_expert; waves_expert; quantum_expert; radiation_expert; electricity_expert; materials_expert; ef_expert; mf_expert; thermal_expert];
rand_row_expert = expert_matrix(randi(4),:); %Random pull from expert
disp(rand_row_expert)
%You could say, if the rand_row_easy is motion_easy, it
%medium_matrix, hard_matrix, and expert_matrix can’t be from the
%motion array.
%LOCATION STAMP
disp(‘break_1’)
fprintf(‘n’)
disp(‘Therefore, combining the random pulls:’)
%Final, un-shuffled, Matrix:
final_unshuffled = [rand_row_easy; rand_row_medium; rand_row_hard; rand_row_expert];Hi – I’m not sure if I’ve provided enough information for this but I’ll try. I have 4 matrices: easy_matrix, medium_matrix, hard_matrix, expert_matrix. Within these matrices are 9 rows of 1×4 arrays of different topics.(like motion_easy or waves_medium, etc.). All of the 1×4 arrays have specific, but different numbers in them (they don’t have identifiers though). If possible, I’d like the final_unshuffled matrix to return in such a way where if, say, easy_matrix pulls motion_easy, none of the others can pull the motion_topic (i.e. medium_matrix can’t pull motion_medium). I was thinking of making easy_matrix the reference row so that the other matrices (medium, hard and expert) all have a reference point for a while loop but I couldn’t make it work. Any help is greatly appreciated! Thank you in advance 🙂
easy_matrix = [motion_easy; waves_easy; quantum_easy; radiation_easy; electricity_easy; materials_easy; ef_easy; mf_easy; thermal_easy];
rand_row_easy = easy_matrix(randi(4),:); %Random pull from easy
disp(rand_row_easy)
medium_matrix = [motion_medium; waves_medium; quantum_medium; radiation_medium; electricity_medium; materials_medium; ef_medium; mf_medium; thermal_medium];
rand_row_medium = medium_matrix(randi(4),:); %Random pull from medium
disp(rand_row_medium)
hard_matrix = [motion_hard; waves_hard; quantum_hard; radiation_hard; electricity_hard; materials_hard; ef_hard; mf_hard; thermal_hard];
rand_row_hard = hard_matrix(randi(4),:); %Random pull from hard
disp(rand_row_hard)
expert_matrix = [motion_expert; waves_expert; quantum_expert; radiation_expert; electricity_expert; materials_expert; ef_expert; mf_expert; thermal_expert];
rand_row_expert = expert_matrix(randi(4),:); %Random pull from expert
disp(rand_row_expert)
%You could say, if the rand_row_easy is motion_easy, it
%medium_matrix, hard_matrix, and expert_matrix can’t be from the
%motion array.
%LOCATION STAMP
disp(‘break_1’)
fprintf(‘n’)
disp(‘Therefore, combining the random pulls:’)
%Final, un-shuffled, Matrix:
final_unshuffled = [rand_row_easy; rand_row_medium; rand_row_hard; rand_row_expert]; Hi – I’m not sure if I’ve provided enough information for this but I’ll try. I have 4 matrices: easy_matrix, medium_matrix, hard_matrix, expert_matrix. Within these matrices are 9 rows of 1×4 arrays of different topics.(like motion_easy or waves_medium, etc.). All of the 1×4 arrays have specific, but different numbers in them (they don’t have identifiers though). If possible, I’d like the final_unshuffled matrix to return in such a way where if, say, easy_matrix pulls motion_easy, none of the others can pull the motion_topic (i.e. medium_matrix can’t pull motion_medium). I was thinking of making easy_matrix the reference row so that the other matrices (medium, hard and expert) all have a reference point for a while loop but I couldn’t make it work. Any help is greatly appreciated! Thank you in advance 🙂
easy_matrix = [motion_easy; waves_easy; quantum_easy; radiation_easy; electricity_easy; materials_easy; ef_easy; mf_easy; thermal_easy];
rand_row_easy = easy_matrix(randi(4),:); %Random pull from easy
disp(rand_row_easy)
medium_matrix = [motion_medium; waves_medium; quantum_medium; radiation_medium; electricity_medium; materials_medium; ef_medium; mf_medium; thermal_medium];
rand_row_medium = medium_matrix(randi(4),:); %Random pull from medium
disp(rand_row_medium)
hard_matrix = [motion_hard; waves_hard; quantum_hard; radiation_hard; electricity_hard; materials_hard; ef_hard; mf_hard; thermal_hard];
rand_row_hard = hard_matrix(randi(4),:); %Random pull from hard
disp(rand_row_hard)
expert_matrix = [motion_expert; waves_expert; quantum_expert; radiation_expert; electricity_expert; materials_expert; ef_expert; mf_expert; thermal_expert];
rand_row_expert = expert_matrix(randi(4),:); %Random pull from expert
disp(rand_row_expert)
%You could say, if the rand_row_easy is motion_easy, it
%medium_matrix, hard_matrix, and expert_matrix can’t be from the
%motion array.
%LOCATION STAMP
disp(‘break_1’)
fprintf(‘n’)
disp(‘Therefore, combining the random pulls:’)
%Final, un-shuffled, Matrix:
final_unshuffled = [rand_row_easy; rand_row_medium; rand_row_hard; rand_row_expert]; while loop, matrices MATLAB Answers — New Questions
Getting phone numbers in Teams
Hello
Please i need your help on this issue.
How do I get phone numbers via Microsoft for two or three of my employees?What are the steps and costs associated with this?
Hello Please i need your help on this issue. How do I get phone numbers via Microsoft for two or three of my employees?What are the steps and costs associated with this? Read More
Questions on implementation-
Hi there! We have a couple of questions on setting up access methods and user roles…
Can we put a generic URL in the body of the survey invite?Can we include videos in the body of the survey invite?If we allow access to a demographic variable, all users will have access to use it?How do we go about providing certain users access to specific demographic report? (i.e., providing division heads division reports)
Hi there! We have a couple of questions on setting up access methods and user roles…Can we put a generic URL in the body of the survey invite?Can we include videos in the body of the survey invite?If we allow access to a demographic variable, all users will have access to use it?How do we go about providing certain users access to specific demographic report? (i.e., providing division heads division reports) Read More
New Outlook and Calendar aren’t synched?
Hello,
I was recently forced to switch from the Calendar app to Outlook.
Several important features no longer work like the following.
Neither shows up in the other suddenly. Also I can’t NOT use Outlook. So if I create events in Outlook I can’t see them in the other.
Also if I create events in the other, not only can I not see them in Outlook, but I also can’t seem to delete/modify them either?
The little calendar pop up in the bottom right is one of the most useful and seamless features I’ve used.
How do I restore this feature?
Hello,I was recently forced to switch from the Calendar app to Outlook.Several important features no longer work like the following.Neither shows up in the other suddenly. Also I can’t NOT use Outlook. So if I create events in Outlook I can’t see them in the other.Also if I create events in the other, not only can I not see them in Outlook, but I also can’t seem to delete/modify them either?The little calendar pop up in the bottom right is one of the most useful and seamless features I’ve used.How do I restore this feature? Read More
The results of the plots does not match the actual ones
Hello everyone,
I am trying to plot a simple kinematics function. I did it first in Excel and the plots were corrects however when I transfered problem into Matlab, I got different results. Below are the function, true plots from excel and results from the code:
The matlab code and the plots are shown below:
L_BC = 430; % mm
L_CA = 900; % mm
L_AA_prime = 100; % mm
theta_Anchor_range = deg2rad(linspace(127.2, 187.46, 1000));
L_AB = sqrt((L_AA_prime^2)+(L_BC^2)+(L_CA^2)+(2*L_BC*(L_CA*sin(theta_Anchor_range+pi)))-L_AA_prime*cos(pi+theta_Anchor_range));
L_Stroke = L_AB – 580;
figure;
plot(rad2deg(theta_Anchor_range), L_Stroke);
xlabel(‘Theta Anchor (degrees)’);
ylabel(‘L_Stroke (mm)’);
title(‘Variation of L_AB with Theta BC’);
grid on;
theta_AB = atan((L_CA+(L_BC*sin(pi+theta_Anchor_range))./(L_BC*cos(pi+theta_Anchor_range)-L_AA_prime)));
figure;
plot(rad2deg(theta_Anchor_range), rad2deg(theta_AB));
xlabel(‘Theta BC (degrees)’);
ylabel(‘Theta AB (deg)’);
The variation of length have the same phenomena however it does not start from zero.
Your support is highly appreciated.Hello everyone,
I am trying to plot a simple kinematics function. I did it first in Excel and the plots were corrects however when I transfered problem into Matlab, I got different results. Below are the function, true plots from excel and results from the code:
The matlab code and the plots are shown below:
L_BC = 430; % mm
L_CA = 900; % mm
L_AA_prime = 100; % mm
theta_Anchor_range = deg2rad(linspace(127.2, 187.46, 1000));
L_AB = sqrt((L_AA_prime^2)+(L_BC^2)+(L_CA^2)+(2*L_BC*(L_CA*sin(theta_Anchor_range+pi)))-L_AA_prime*cos(pi+theta_Anchor_range));
L_Stroke = L_AB – 580;
figure;
plot(rad2deg(theta_Anchor_range), L_Stroke);
xlabel(‘Theta Anchor (degrees)’);
ylabel(‘L_Stroke (mm)’);
title(‘Variation of L_AB with Theta BC’);
grid on;
theta_AB = atan((L_CA+(L_BC*sin(pi+theta_Anchor_range))./(L_BC*cos(pi+theta_Anchor_range)-L_AA_prime)));
figure;
plot(rad2deg(theta_Anchor_range), rad2deg(theta_AB));
xlabel(‘Theta BC (degrees)’);
ylabel(‘Theta AB (deg)’);
The variation of length have the same phenomena however it does not start from zero.
Your support is highly appreciated. Hello everyone,
I am trying to plot a simple kinematics function. I did it first in Excel and the plots were corrects however when I transfered problem into Matlab, I got different results. Below are the function, true plots from excel and results from the code:
The matlab code and the plots are shown below:
L_BC = 430; % mm
L_CA = 900; % mm
L_AA_prime = 100; % mm
theta_Anchor_range = deg2rad(linspace(127.2, 187.46, 1000));
L_AB = sqrt((L_AA_prime^2)+(L_BC^2)+(L_CA^2)+(2*L_BC*(L_CA*sin(theta_Anchor_range+pi)))-L_AA_prime*cos(pi+theta_Anchor_range));
L_Stroke = L_AB – 580;
figure;
plot(rad2deg(theta_Anchor_range), L_Stroke);
xlabel(‘Theta Anchor (degrees)’);
ylabel(‘L_Stroke (mm)’);
title(‘Variation of L_AB with Theta BC’);
grid on;
theta_AB = atan((L_CA+(L_BC*sin(pi+theta_Anchor_range))./(L_BC*cos(pi+theta_Anchor_range)-L_AA_prime)));
figure;
plot(rad2deg(theta_Anchor_range), rad2deg(theta_AB));
xlabel(‘Theta BC (degrees)’);
ylabel(‘Theta AB (deg)’);
The variation of length have the same phenomena however it does not start from zero.
Your support is highly appreciated. matlab, equation, plot MATLAB Answers — New Questions
Finding intermediate points between two cartesian coordinates in 3D
I have two data points p1 and p2 with coordinates (x,y,z).
How would I find all the intermediate points between them?
In 2-dimensions with coordinates (x,y), you fit the data to a line.
Would I need to fit the data to a surface?
If anyone has any resources they could point me to, that would be helpful as well.I have two data points p1 and p2 with coordinates (x,y,z).
How would I find all the intermediate points between them?
In 2-dimensions with coordinates (x,y), you fit the data to a line.
Would I need to fit the data to a surface?
If anyone has any resources they could point me to, that would be helpful as well. I have two data points p1 and p2 with coordinates (x,y,z).
How would I find all the intermediate points between them?
In 2-dimensions with coordinates (x,y), you fit the data to a line.
Would I need to fit the data to a surface?
If anyone has any resources they could point me to, that would be helpful as well. surface, distance, cartesian MATLAB Answers — New Questions
Design and simulation of a fast DC recharging station for EV
Hello everyone,
I’m currently grappling with a problem related to a design I’ve implemented based on a research paper. Despite meticulously following the instructions outlined in the paper, I’m encountering difficulty in driving the charging current to -200 as required.
Specifically, I’m focusing on the G2V (Grid-to-Vehicle) aspect of the design. While attempting to charge the battery from the grid, I’m unable to achieve the desired charging current of -200. Additionally, the DC bus voltage doesn’t seem to reach the voltage levels assumed in the papers.
I’ve attached both the research paper and my design for reference. Any insights or assistance on how to successfully drive the charging current to -200 would be greatly appreciated.
Thank you in advance for your help.Hello everyone,
I’m currently grappling with a problem related to a design I’ve implemented based on a research paper. Despite meticulously following the instructions outlined in the paper, I’m encountering difficulty in driving the charging current to -200 as required.
Specifically, I’m focusing on the G2V (Grid-to-Vehicle) aspect of the design. While attempting to charge the battery from the grid, I’m unable to achieve the desired charging current of -200. Additionally, the DC bus voltage doesn’t seem to reach the voltage levels assumed in the papers.
I’ve attached both the research paper and my design for reference. Any insights or assistance on how to successfully drive the charging current to -200 would be greatly appreciated.
Thank you in advance for your help. Hello everyone,
I’m currently grappling with a problem related to a design I’ve implemented based on a research paper. Despite meticulously following the instructions outlined in the paper, I’m encountering difficulty in driving the charging current to -200 as required.
Specifically, I’m focusing on the G2V (Grid-to-Vehicle) aspect of the design. While attempting to charge the battery from the grid, I’m unable to achieve the desired charging current of -200. Additionally, the DC bus voltage doesn’t seem to reach the voltage levels assumed in the papers.
I’ve attached both the research paper and my design for reference. Any insights or assistance on how to successfully drive the charging current to -200 would be greatly appreciated.
Thank you in advance for your help. ev, power_electronics_control, dc-dc, simulink MATLAB Answers — New Questions
Connect more deeply with the Teams SMB product team
Would you like to join other SMBs in small group discussions with direct access to the Teams feature teams? Would you be willing to share feedback and customer stories with our Teams SMB Research team? Are you interested in joining private preview programs for Teams SMB features? If so, we want to hear from you!
The following opportunities are available to our small businesses as a way to connect with the Teams SMB product team on a regular basis:
Teams Customer Council for SMBs (aka TCC)
Description: Teams Engineering is extending a special invitation to customers and partners who have 2-300 employees and hold an active Microsoft 365 subscription. Join our Council to explore upcoming Teams scenarios and provide valuable feedback. This is a program that requires an NDA agreement (non-disclosure) to be included in Teams conversations and bi-weekly forum calls.
Sign-up link: https://aka.ms/TeamsCouncil
M365 and Copilot SMB Champions Community
Description: Join our non-NDA SMB Champions community for Copilot and SMB M365 discussions. This Champions community will provide direct access to product teams during a monthly call where you can learn about new features and share your feedback.
Sign-up link: http://aka.ms/smbcommunitysignup
Champions community discussion board (meeting details also shared here): https://techcommunity.microsoft.com/t5/smb-microsoft-365-champion/bd-p/SMBM365ChampionProgram
Teams for Small Business Research
Description: The Teams SMB Research team is looking for small businesses who would be interested in joining future research sessions. These panels will be held virtually and you may choose to participate or decline individual studies or leave the panel at any time. Some studies include a thank you gift for participation.
Sign-up link: https://forms.office.com/r/qPYYJjm3df
Keep a watch on this discussion space (https://aka.ms/TeamsSMBCommunity) for a growing set of opportunities.
Would you like to join other SMBs in small group discussions with direct access to the Teams feature teams? Would you be willing to share feedback and customer stories with our Teams SMB Research team? Are you interested in joining private preview programs for Teams SMB features? If so, we want to hear from you!
The following opportunities are available to our small businesses as a way to connect with the Teams SMB product team on a regular basis:
Teams Customer Council for SMBs (aka TCC)
Description: Teams Engineering is extending a special invitation to customers and partners who have 2-300 employees and hold an active Microsoft 365 subscription. Join our Council to explore upcoming Teams scenarios and provide valuable feedback. This is a program that requires an NDA agreement (non-disclosure) to be included in Teams conversations and bi-weekly forum calls.
Sign-up link: https://aka.ms/TeamsCouncil
M365 and Copilot SMB Champions Community
Description: Join our non-NDA SMB Champions community for Copilot and SMB M365 discussions. This Champions community will provide direct access to product teams during a monthly call where you can learn about new features and share your feedback.
Sign-up link: http://aka.ms/smbcommunitysignup
Champions community discussion board (meeting details also shared here): https://techcommunity.microsoft.com/t5/smb-microsoft-365-champion/bd-p/SMBM365ChampionProgram
Teams for Small Business Research
Description: The Teams SMB Research team is looking for small businesses who would be interested in joining future research sessions. These panels will be held virtually and you may choose to participate or decline individual studies or leave the panel at any time. Some studies include a thank you gift for participation.
Sign-up link: https://forms.office.com/r/qPYYJjm3df
Keep a watch on this discussion space (https://aka.ms/TeamsSMBCommunity) for a growing set of opportunities. Read More
Can’t print graph
When I try to print my graph from Excel it isn’t printing the bars, why is this?
When I try to print my graph from Excel it isn’t printing the bars, why is this? Read More
Importing 2 batches of historical import
Hi! We are hoping to import 2 batches of historical data for an upcoming survey and we are not too sure how can this happen. I have seen the article on historical import but it does not seem to talk about the feasibility of 2 historical imports. I am wondering if there is any resources that can help answer our question?
Hi! We are hoping to import 2 batches of historical data for an upcoming survey and we are not too sure how can this happen. I have seen the article on historical import but it does not seem to talk about the feasibility of 2 historical imports. I am wondering if there is any resources that can help answer our question? Read More
data import from txt file
Hi all,
I try to import .txt files. These files contains a paragraph at the begining of the file and after these paragraph there are data consist of only one column and various rows. I write a matlab code but this code import the data as a "char". I want to import only data as a matrix and delete paragraph. How can i do that?
% Specify the location of GMs
path = ‘C:UsersSsdadkOneDriveParatorDepremGMs’;
%Get all txt files
gm_list = dir(fullfile(path, ‘*.txt’));
% Create a cell to store GMs
gm_cell = cell(numel(gm_list),1);
% Read data set
for gm_index = 1:numel(gm_list)
gm_name = gm_list(gm_index).name;
gm_path = fullfile(path, gm_name);
gm_cell{gm_index} = fileread(gm_path);
end
Thanks…Hi all,
I try to import .txt files. These files contains a paragraph at the begining of the file and after these paragraph there are data consist of only one column and various rows. I write a matlab code but this code import the data as a "char". I want to import only data as a matrix and delete paragraph. How can i do that?
% Specify the location of GMs
path = ‘C:UsersSsdadkOneDriveParatorDepremGMs’;
%Get all txt files
gm_list = dir(fullfile(path, ‘*.txt’));
% Create a cell to store GMs
gm_cell = cell(numel(gm_list),1);
% Read data set
for gm_index = 1:numel(gm_list)
gm_name = gm_list(gm_index).name;
gm_path = fullfile(path, gm_name);
gm_cell{gm_index} = fileread(gm_path);
end
Thanks… Hi all,
I try to import .txt files. These files contains a paragraph at the begining of the file and after these paragraph there are data consist of only one column and various rows. I write a matlab code but this code import the data as a "char". I want to import only data as a matrix and delete paragraph. How can i do that?
% Specify the location of GMs
path = ‘C:UsersSsdadkOneDriveParatorDepremGMs’;
%Get all txt files
gm_list = dir(fullfile(path, ‘*.txt’));
% Create a cell to store GMs
gm_cell = cell(numel(gm_list),1);
% Read data set
for gm_index = 1:numel(gm_list)
gm_name = gm_list(gm_index).name;
gm_path = fullfile(path, gm_name);
gm_cell{gm_index} = fileread(gm_path);
end
Thanks… data import, txt MATLAB Answers — New Questions
System function fail to run batch file but shell escape and running in cmd works just fine
Hi I’ve been building an app in Matlab (Matlab 2021b) that requires calling external functions. I’ve been doing this by automatically generating an input batch file that I then send to a system() call to run the appropriate software and inputs.
However, matlab has recently been giving my errors when I run the system() call and fails to execute the external function. If I run the batch file in the cmd window everything works just fine and I get the correct results. If I run the batch file using the shell escape in matlab it also runs just fine and produces the correct results.
The code in question is very simple…
function run_Batch_file(Batch_File)
%run_Batch_file Summary of this function goes here
% Detailed explanation goes here
% DOES NOT WORK – error code 3 system cannot find specified path.
% Here Batch_File = ‘tempSame_Batch_File.bat’
[status, ~] = system(Batch_File, ‘-echo’);
% DOES NOT WORK – error code -1073741819 (no clue what this error code is).
[status, ~] = system(‘tempSame_Batch_File.bat’, ‘-echo’);
% DOES WORK
!tempSame_Batch_File.bat -echo
if status ~= 0
% disp([‘Error: ‘ Batch_File ‘ status code:’])
error(‘Error: %s n status code: %f’, Batch_File, status);
else
fprintf(‘%s status code: %f n’,Batch_File, status);
end
end
The issue on hand is that I’d like to run multiple different bat files through this same script when would mean the batch filename would need to be changed. I cannot change it using the shell escape and the system() call doesn’t work.
Is there any way to either update the shell escape to use variables or is there something I can do to fix the system call (I did find some environment variables were different between the Matlab system call and the cmd system call but isenv and unsetenv are not available in 2021b)?Hi I’ve been building an app in Matlab (Matlab 2021b) that requires calling external functions. I’ve been doing this by automatically generating an input batch file that I then send to a system() call to run the appropriate software and inputs.
However, matlab has recently been giving my errors when I run the system() call and fails to execute the external function. If I run the batch file in the cmd window everything works just fine and I get the correct results. If I run the batch file using the shell escape in matlab it also runs just fine and produces the correct results.
The code in question is very simple…
function run_Batch_file(Batch_File)
%run_Batch_file Summary of this function goes here
% Detailed explanation goes here
% DOES NOT WORK – error code 3 system cannot find specified path.
% Here Batch_File = ‘tempSame_Batch_File.bat’
[status, ~] = system(Batch_File, ‘-echo’);
% DOES NOT WORK – error code -1073741819 (no clue what this error code is).
[status, ~] = system(‘tempSame_Batch_File.bat’, ‘-echo’);
% DOES WORK
!tempSame_Batch_File.bat -echo
if status ~= 0
% disp([‘Error: ‘ Batch_File ‘ status code:’])
error(‘Error: %s n status code: %f’, Batch_File, status);
else
fprintf(‘%s status code: %f n’,Batch_File, status);
end
end
The issue on hand is that I’d like to run multiple different bat files through this same script when would mean the batch filename would need to be changed. I cannot change it using the shell escape and the system() call doesn’t work.
Is there any way to either update the shell escape to use variables or is there something I can do to fix the system call (I did find some environment variables were different between the Matlab system call and the cmd system call but isenv and unsetenv are not available in 2021b)? Hi I’ve been building an app in Matlab (Matlab 2021b) that requires calling external functions. I’ve been doing this by automatically generating an input batch file that I then send to a system() call to run the appropriate software and inputs.
However, matlab has recently been giving my errors when I run the system() call and fails to execute the external function. If I run the batch file in the cmd window everything works just fine and I get the correct results. If I run the batch file using the shell escape in matlab it also runs just fine and produces the correct results.
The code in question is very simple…
function run_Batch_file(Batch_File)
%run_Batch_file Summary of this function goes here
% Detailed explanation goes here
% DOES NOT WORK – error code 3 system cannot find specified path.
% Here Batch_File = ‘tempSame_Batch_File.bat’
[status, ~] = system(Batch_File, ‘-echo’);
% DOES NOT WORK – error code -1073741819 (no clue what this error code is).
[status, ~] = system(‘tempSame_Batch_File.bat’, ‘-echo’);
% DOES WORK
!tempSame_Batch_File.bat -echo
if status ~= 0
% disp([‘Error: ‘ Batch_File ‘ status code:’])
error(‘Error: %s n status code: %f’, Batch_File, status);
else
fprintf(‘%s status code: %f n’,Batch_File, status);
end
end
The issue on hand is that I’d like to run multiple different bat files through this same script when would mean the batch filename would need to be changed. I cannot change it using the shell escape and the system() call doesn’t work.
Is there any way to either update the shell escape to use variables or is there something I can do to fix the system call (I did find some environment variables were different between the Matlab system call and the cmd system call but isenv and unsetenv are not available in 2021b)? system, shell escape, batch files MATLAB Answers — New Questions
Why do I receive License Manager Error -9?
I installed the matlab R2024a trial on linux and followed the activation instructions at https://ww2.mathworks.cn/matlabcentral/answers/99457-how-do-i-activate-matlab-or-other- mathworks-products but still getting license error, I need help. ThanksI installed the matlab R2024a trial on linux and followed the activation instructions at https://ww2.mathworks.cn/matlabcentral/answers/99457-how-do-i-activate-matlab-or-other- mathworks-products but still getting license error, I need help. Thanks I installed the matlab R2024a trial on linux and followed the activation instructions at https://ww2.mathworks.cn/matlabcentral/answers/99457-how-do-i-activate-matlab-or-other- mathworks-products but still getting license error, I need help. Thanks installation MATLAB Answers — New Questions