Community Profile

photo

Mohammad Alhashash


Albalqa' Applied University

Last seen: 24 días ago Active since 2017

Statistics

All
  • Introduction to MATLAB Master
  • Community Group Solver
  • First Submission
  • Knowledgeable Level 2
  • Solver
  • First Answer

View badges

Content Feed

View by

Answered
Randomising a vector with respect to the probability of the outcome
You can use the randperm function to build 12 basic 5-by-1 matrices and then map the values into 0 and 1 based one your probabil...

9 meses ago | 1

| accepted

Answered
Associate Map container with specific values
You store these Map containers into cell array of structure and create another Map container for mapping states into their corre...

9 meses ago | 0

Answered
Saving figures into structure?
Yes you can by simply save the plotting command (plot, bar, ...) as a string, and then use eval command to excute it. However, k...

9 meses ago | 0

Answered
how can we perform 6x6 matrix without values to find the inverse and determination
You can do that using the Symbolic Math Toolbox. And you can check wether you have this toolbox or not using the simple command ...

alrededor de 3 años ago | 0

| accepted

Answered
How to plot sine graph by using for loop?
maybe that is what you need. t= 0:0.01:2*pi; m =sin(t); t_plot = NaN(1,length(t)); m_plot = NaN(1,length(m)); u = 1; for...

alrededor de 3 años ago | 0

Answered
Need help plotting a function in matlab
x = -10:0.05:10; fun_x_1 = exp(-0.3*x(x<0)); fun_x_2 = sin(x(x>=0).^3)-sin(x(x>=0).^2)+1; plot(x(x<0),fun_x_1,x(x>=0),fun_x_2...

alrededor de 3 años ago | 0

| accepted

Answered
Enforce the norm of the addition of two vectors plus scalar
I assumed that a and b are 3 elements-vector and then solved the equation beta analytically. a = [1 2 3]; b = [2 3 4]; beta =...

alrededor de 3 años ago | 0

| accepted

Answered
Create symbolic variables with assumptions (syms)
Then try this one syms x assume(x,'real')

alrededor de 3 años ago | 0

Answered
Plot lines with different colors each iteration
I've I assumed the loop index to be ii, then you can modify the plot portion of your code to be: colorInd='ckyrb'; plot(ve...

alrededor de 4 años ago | 0