Community Profile

photo

Asad (Mehrzad) Khoddam


Last seen: 3 días ago

UWM

439 total contributions since 2016

PhD Student at UWM

Contact

Asad (Mehrzad) Khoddam's Badges

  • 3 Month Streak
  • Revival Level 1
  • Knowledgeable Level 3
  • Community Group Solver
  • 5-Star Galaxy Level 2
  • Personal Best Downloads Level 2
  • First Review
  • First Submission
  • Quiz Master
  • First Answer
  • Triathlon Participant
  • Speed Demon
  • Leader
  • Creator
  • Solver

View details...

Contributions in
View by

Answered
How can I modify this code so it gives the value 0 for c. It should only provide ax^2+bx
%x=[0 .5 1 1.5 2 2.5 3 3.5 4 4.5 5]; %y=[0 -5.27 -8.10 -8.46 -6.38 -1.84 5.15 14.59 26.48 40.83 57.63]; function [coefficients...

1 día ago | 1

Answered
Determining if the columns of a matrix are orthogonal
Regarding the case i==j, you can start j from numbers greather than i: A = magic(4) orth = 1; for i = 1:n for j = i+1:n...

1 día ago | 0

Answered
How to convert number to string with fixed length?
You can use sprintf s=sprintf('%05d',124); disp(s); %05d means that you have leading zeros and the total length 0f 5

1 día ago | 0

Answered
Find angle of rotation matrix in MATLAB
I = [11755 0 4821; 0 15000 0; 4821 0 23245]; Iwant = [10000 0 0; 0 15000 0; 0 0 25000]; t = 0; i=1; tList = 0:.02:3.14; dLi...

13 días ago | 0

Answered
Why do I keep getting this error message? Error using ./ Matrix dimensions must agree.
if you want to solve the equations, use this: x=A\y;

23 días ago | 0

Answered
Trying to make a simulated coin flip
binornd(1,.5,nsamples,1)

28 días ago | 0

| accepted

Answered
what is the function used to give parabolic load on the free end of the cantilever beam
The q value (shear stress) is equal to Then you need to inegrate from for example -3 to 3 , 3 to 9 to find P value

alrededor de 1 mes ago | 0

| accepted

Answered
Three exponential fit with curve fitting toolbox
In the toolbox, there is an option to define a custom model. https://www.mathworks.com/help/curvefit/custom-nonlinear-models.ht...

alrededor de 1 mes ago | 0

Answered
Error using fprintf Invalid file identifier. Use fopen to generate a valid file identifier. Function help
Because E is a numeric variable, it conot be used directly in your case. Use E with some formatting: fprintf('%g\n',E)

alrededor de 1 mes ago | 0

Answered
How do I write a number and Letter in the same line?
You can use: fprintf('grade=%f, %s\n',n, grade);

alrededor de 1 mes ago | 0

| accepted

Answered
finite element method with matrix error
Can you show the values of the nodes and elements data?

alrededor de 1 mes ago | 0

Answered
"SWITCH expression must be a scalar or a character vector".
Try to get 'Value' in the call back function: handles.patient = get(hObject,'Value');

alrededor de 1 mes ago | 0

Answered
How can I make a variant submatrix?
You can use vectors to point to the indices of matrix A, For example: A(1:10, 1:10); % the first one A(11:20, 1:10) % second ...

alrededor de 1 mes ago | 0

Answered
Saving Multiples Variable of a function
If you want to use the variables in the other function, use this command in both functions: global dZ3 dW3 db3 dZ2 dW2 db2 dZ1 ...

alrededor de 1 mes ago | 0

Answered
how do I start this?
As the quest said, you can use Matlab's spline function.

alrededor de 1 mes ago | 0

Answered
2-D Truss Analysis
One t was missing in UniVctor: %.... Input problem data nNodesP = 12; nMembersP = 21; NodeP = zeros(nNodesP, 3); %Initializ...

alrededor de 1 mes ago | 0

Answered
Bisection method help.
function x = Bisection(a, b, Nmax, TOL) f=@(x) x.*x.*x-2; i=1; ya = f(a); while i <= Nmax m=(a+b)/2; ym=f(m); ...

alrededor de 1 mes ago | 0

Answered
Converting for loop to while loop
for i =1:5 j=1; k=1; while j<=5-i fprintf(' '); j = j+1; end while k<=i fpri...

alrededor de 1 mes ago | 1

| accepted

Answered
How to draw a curly brace outside the gca?
Use negative ccordinates for the brace byt xlim from 0 drawbrace([-0.5,3], [-0.5,8], 10); xlim([0,Inf]);

alrededor de 2 meses ago | 0

Answered
A recursive matrix sum
You function is not recursive function total=ff(l) lp=l(:); if numel(l) == 1 total = l(1); else total = lp(end) + ...

alrededor de 2 meses ago | 0

| accepted

Answered
Adding a line to my plot3 of a plane
Two lines should be fixed: 1- coordinates of end points of the line 2- Using plot3 %Position vector p1 = [200; -107; 0] %%or...

alrededor de 2 meses ago | 0

Answered
How to solve this function to find z?
Numerical (approximate) solution: syms z; p=4; vpasolve(z/(z-1)*sqrt(z/(2+z))*sqrt(p)==0.32734,z)

alrededor de 2 meses ago | 1

Answered
Index in position 2 exceeds array bounds (must not exceed 8)
The matrix is not square, so you need to find the minimum of row and column numbers. A = [28 -6 4 1 -2 -5 8 0; -4 28 -1 4 0 4 4...

alrededor de 2 meses ago | 0

| accepted

Answered
Newton's Method to find root of a system of equations
For solving a system of equations, you should solve a system of equation insetead of division: % single equation xn = xn - f(x...

alrededor de 2 meses ago | 0

Answered
Function takes as input two nonempty matrices A and B and returns the product AB
function AB = ex2(A,B) % % % we need rows and columns of both A and B % ColsA should be equal to RowsB [RowsA,ColsA] = size...

alrededor de 2 meses ago | 0

| accepted

Answered
row elimination problem.
A(all(A(:,1:2)==0,2),:)=[];

alrededor de 2 meses ago | 0

Answered
Matrix Dimensions must agree
change the varibales to vector form: A=[0.05, 0.08, 0.7, 0.01]; E=[125, 80, 100, 150]; L=[0.6, 0.7, 0.2, 0.5]; ndof=length(A...

alrededor de 2 meses ago | 0

Answered
Create a circle in the matrix with zeros
% values N=100; D=ones(N,N); i0=10; j0=20; R=8; % filter indise circle [x,y]=meshgrid(1:N); D((x-i0).^2+(y-j0).^2<R^2)=0...

alrededor de 2 meses ago | 1

| accepted

Answered
Simple question loop for
You can simply add a disp command to see that nothing will be printed when n=0. It means that the statements inside the loop wil...

alrededor de 2 meses ago | 0

Load more