Feeds
已提交
read abaqus input file to get the nodes and elements
This readinp function can load the node and element data from abaqus inp file.
7 months 前 | 4 次下载 |

已解决
Prime factor digits
Consider the following number system. Calculate the prime factorization for each number n, then represent the prime factors in a...
2 years 前
已解决
Alphabetize by last name
Given a list of names in a cell array, sort the list by the last name. So if list = {'Barney Google','Snuffy Smith','Dagwood ...
2 years 前
已解决
3D indexes
Generalisation in 3 dimensions of the <http://nl.mathworks.com/matlabcentral/cody/problems/43117-2d-indexes Problem 43117. 2D I...
2 years 前
已解决
Insert zeros into vector
Insert zeros after each elements in the vector. Number of zeros is specified as the input parameter. For example: x = [1 ...
2 years 前
已解决
Interpolator
You have a two vectors, a and b. They are monotonic and the same length. Given a value, va, where va is between a(1) and a(end...
2 years 前
已回答
How to show node/element numbers on the boundary ONLY?
Hi, friend, Here are some tips for you. Firstly, you can find those edges (an edge is generally denoted by two nodes) that are...
How to show node/element numbers on the boundary ONLY?
Hi, friend, Here are some tips for you. Firstly, you can find those edges (an edge is generally denoted by two nodes) that are...
3 years 前 | 0
已回答
Call a folder from desktop and use images inside it
Hey, friend, Using uigetfile is a nice choice, for example [file,path,indx] = uigetfile( ... {'*.jpg;*.png;*.tiff;*.tif;*.bmp...
Call a folder from desktop and use images inside it
Hey, friend, Using uigetfile is a nice choice, for example [file,path,indx] = uigetfile( ... {'*.jpg;*.png;*.tiff;*.tif;*.bmp...
3 years 前 | 0
| 已接受
提问
Matlab default font monospace is not a wise choice
Did anyone encounter a problem when writing an m-script on matlab? The problem is that your naked eyes can't tell the number '1'...
3 years 前 | 1 个回答 | 0
1
个回答已回答
How can I fix my function?
Hey, friend Just try the inline function ispythag = @(a,b,c)a.^2+b.^2 == c.^2; a = ispythag(1,2,3) b = ispythag(3,4,5) Then...
How can I fix my function?
Hey, friend Just try the inline function ispythag = @(a,b,c)a.^2+b.^2 == c.^2; a = ispythag(1,2,3) b = ispythag(3,4,5) Then...
3 years 前 | 0
| 已接受
已回答
Matlab versions supported on Windows 11?
WINDOWS 11 itself should support running the softwares on win10. ELSE microsoft would not release it and clients would not use i...
Matlab versions supported on Windows 11?
WINDOWS 11 itself should support running the softwares on win10. ELSE microsoft would not release it and clients would not use i...
3 years 前 | 0
已回答
Using ODE45 for first order diff equation with three different variables
For example function dxdt = func(t,x,g) dxdt = zeros(3,1); dxdt(1) = (0.1*x(1))+(0.25*x(2))-(g*x(3)); dxdt(2) = (0.1*x(1))+(...
Using ODE45 for first order diff equation with three different variables
For example function dxdt = func(t,x,g) dxdt = zeros(3,1); dxdt(1) = (0.1*x(1))+(0.25*x(2))-(g*x(3)); dxdt(2) = (0.1*x(1))+(...
3 years 前 | 2
| 已接受
已解决
The Piggy Bank Problem
Given a cylindrical piggy bank with radius g and height y, return the bank's volume. [ g is first input argument.] Bonus though...
3 years 前
已回答
how to write to solve this type of system of equations ?
Hey friend Just expand the left items of the two equations, extract u'' and v'', then an ode45 solver is there for you.
how to write to solve this type of system of equations ?
Hey friend Just expand the left items of the two equations, extract u'' and v'', then an ode45 solver is there for you.
3 years 前 | 0
已回答
multiple graphs in one script
Modified the code as %% 6 x = ([-2*pi:0.1:2*pi]); f = x-sin(x) g = 1-x.*cos(x) figure(1);clf; plot(x,f,x,g) title('f(x) &...
multiple graphs in one script
Modified the code as %% 6 x = ([-2*pi:0.1:2*pi]); f = x-sin(x) g = 1-x.*cos(x) figure(1);clf; plot(x,f,x,g) title('f(x) &...
3 years 前 | 0
已回答
How to check if an array is empty without using any built in functions
Use isempty x = []; isempty(x) Then the answer is ans = logical 1
How to check if an array is empty without using any built in functions
Use isempty x = []; isempty(x) Then the answer is ans = logical 1
3 years 前 | 1
| 已接受
已回答
I want to co-relate the local coordinate system with global co-ordinate system of a 8-noded element. How to do it in matlab?
You need to add the element information element_id = 5; % for example, the local element id is 5 selected_element = element(el...
I want to co-relate the local coordinate system with global co-ordinate system of a 8-noded element. How to do it in matlab?
You need to add the element information element_id = 5; % for example, the local element id is 5 selected_element = element(el...
3 years 前 | 0
| 已接受
提问
I don't know how to avoid eval
Hi friends from community, I am very confused on how to manage 'eval' function existing in my code, i need it to be removed fro...
3 years 前 | 3 个回答 | 0
3
个回答已回答
Total Solution Differential Equation
If u(t) = 1, then your solution is right. If it is a function with respect to time, then your solution is wrong. Exact code: ...
Total Solution Differential Equation
If u(t) = 1, then your solution is right. If it is a function with respect to time, then your solution is wrong. Exact code: ...
3 years 前 | 0
已回答
How to plot such figure in MATLAB?
use polarplot theta = 0:0.1:pi; r = 1+0.6*sin(10*theta); polarplot(theta,r); set(gca,'ThetaLim',[0 180]) set(gca,'Rdir','re...
How to plot such figure in MATLAB?
use polarplot theta = 0:0.1:pi; r = 1+0.6*sin(10*theta); polarplot(theta,r); set(gca,'ThetaLim',[0 180]) set(gca,'Rdir','re...
3 years 前 | 1
| 已接受
已回答
How to plot a 3D vortex flow
If you donot have a mesh, then you need to reconstruct your mesh! X = X(:); Y = Y(:); Z = Z(:); U = U(:); V= V(:); W=W(:); min...
How to plot a 3D vortex flow
If you donot have a mesh, then you need to reconstruct your mesh! X = X(:); Y = Y(:); Z = Z(:); U = U(:); V= V(:); W=W(:); min...
3 years 前 | 0
| 已接受
已回答
Saving the regression trained model
You should save the trained model after click the 'export' the model to workspace. (you can see you saved model in workspace) ...
Saving the regression trained model
You should save the trained model after click the 'export' the model to workspace. (you can see you saved model in workspace) ...
3 years 前 | 0
| 已接受
已回答
Solving 3 simultaneous equations using solve.
Do not use 'pi' use pi instead %define attributes: gamma=21.05; phi=35.55; phi1=0.75*phi; d=0.6; syms L Rs Rb; zc=(0.3*ph...
Solving 3 simultaneous equations using solve.
Do not use 'pi' use pi instead %define attributes: gamma=21.05; phi=35.55; phi1=0.75*phi; d=0.6; syms L Rs Rb; zc=(0.3*ph...
3 years 前 | 0
已解决
Calculate cosine without cos(x)
Solve cos(x). The use of the function cos() and sin() is not allowed.
3 years 前
已解决
Approximate the cosine function
Without using MATLAB trigonometric functions, calculate the cosine of an argument |x| to a precision of |0.0001| *Hint:* You ...
3 years 前
已回答
How to add consecutive numbers from a column in a .txt file?
Just use movsum a = [1 1 8 2 3 1]; b = movsum(a,2); % I should apologize for not adding 2 b = b(2:end) The answer b = ...
How to add consecutive numbers from a column in a .txt file?
Just use movsum a = [1 1 8 2 3 1]; b = movsum(a,2); % I should apologize for not adding 2 b = b(2:end) The answer b = ...
3 years 前 | 1
| 已接受
已回答
How do i write the function for the taylor polynomial of cos(x) using for loops and no anonymous function
If a large x is selected, then use function Pn = taylor_cos(a,n) x=mod(abs(a),2*pi); % if(x>=pi) x = 2*pi-x; end Pn=1;...
How do i write the function for the taylor polynomial of cos(x) using for loops and no anonymous function
If a large x is selected, then use function Pn = taylor_cos(a,n) x=mod(abs(a),2*pi); % if(x>=pi) x = 2*pi-x; end Pn=1;...
3 years 前 | 0
| 已接受
已回答
How to use sym and function handle(@) in same code
Hi, use matlabFunction, my friend syms theta Ai = cos(theta).*[1 1 2; 4 5 6; 9 1 3] Bi = tan(theta).*[6 9 1; ...
How to use sym and function handle(@) in same code
Hi, use matlabFunction, my friend syms theta Ai = cos(theta).*[1 1 2; 4 5 6; 9 1 3] Bi = tan(theta).*[6 9 1; ...
3 years 前 | 0
| 已接受
已回答
How to average first two dimension of 3D array/matrix?
Just use mean function to average first two dimension of 3D matrix a = rand(2,3,4); % I just use rand function so the result is...
How to average first two dimension of 3D array/matrix?
Just use mean function to average first two dimension of 3D matrix a = rand(2,3,4); % I just use rand function so the result is...
3 years 前 | 1
已回答
Save points or data in right order
I have answered this question before, now I have a better solution to this problem which can identify many connected regions cl...
Save points or data in right order
I have answered this question before, now I have a better solution to this problem which can identify many connected regions cl...
3 years 前 | 0
| 已接受