Community Profile

photo

Mojtaba Mohareri


Last seen: 3 months ago Active since 2019

Statistics

  • Thankful Level 2

View badges

Content Feed

View by

Question


How to change the color of my plots
Hello everone, I've plot my figure in matlab as follows close all clear all avalues=0.3:0.01:1; N=8000; d=0.03; a=avalues...

3 months ago | 2 answers | 0

2

answers

Question


Generating a random matrix which has zero entries as well
When I generate a random matrix (for example, with the following code) bounds = [-15,10]; A = rand(m,m) * range(bounds) + bo...

6 months ago | 0 answers | 0

0

answers

Question


How to create a symmetric random matrix with zero diagonal and with entries just 0 and 1
There is the follwoing code d = 1000000*rand(N,1); % The diagonal values t = triu(bsxfun(@min,d,d.').*rand(N),1); % The upp...

6 months ago | 1 answer | 0

1

answer

Question


How to save obtained information from matlab in Excel
Hello. I want to create some random matrices and compute some features like determinant, trace, etc., for them and then save t...

6 months ago | 1 answer | 0

1

answer

Question


How can I find and plot the hyperplane to this simple dataset using SVM
I have this simple dataset D={[(1,1),1],[(1,-1),1],[(-1,1),-1],[(-1,-1),-1]} in which 1 denotes red points and -1 shows blue p...

6 months ago | 1 answer | 0

1

answer

Question


How to read this mtx file in matlab
Hello. How can I read the following mtx file in matlab? The main file is MatrixMarket format. I don't know much about matlab ...

7 months ago | 1 answer | 0

1

answer

Question


How to define a special function with some points
I want to define a function like this f(0.2)=1.42007; f(0.4)=1.88124; f(0.5)=2.12815; f(0.6)=2.38676; f(0.7)=2.65797; f(0...

1 year ago | 1 answer | 0

1

answer

Question


How to get random points from upper semisphere
Hello eveyone, I use this code to get random points from a sphere with radius 5: clear all clc fullFileName = fullfile(pwd, ...

1 year ago | 2 answers | 0

2

answers

Question


No output in my problem
I was wondering if somebody could help me about the following code which doesn't have output as a figure. Thanks in advance. cl...

1 year ago | 1 answer | 0

1

answer

Question


How to plot a combination of product and devision of some vectors
I have three (1 in 1000) vectors x, y and z. I want to plot this function x(t)y(t)/z(t) for t=1/1000,2/1000, ... ,1. I was won...

2 years ago | 1 answer | 0

1

answer

Question


Some question about a special code for solving an ODE system by Runge-Kutta method
The solution of my problem consists of two parts: First, I want to solve the follwong system by Runge-Kutta fourth order m...

2 years ago | 1 answer | 0

1

answer

Question


Concerning some error For Loop in my optimal control problem
There's error ezplot(sol_a.x1,[0 1]) in my code below for solving a special optimal control problem % State equations syms x...

2 years ago | 1 answer | 0

1

answer

Question


A question about a special output
I've used random function rand(2,2) for my problem. The output is a matrix 2*2 of numbers somwthing like this: the first row: 1 ...

2 years ago | 1 answer | 0

1

answer

Question


About solving a system of equations by 'For' loop
I've written 4 equations within a for loop for 10 steps. But there's the following error: Attempted to access C(1); index out ...

2 years ago | 1 answer | 0

1

answer

Question


Failure in initial user-supplied objective function evaluation. FSOLVE cannot continue
My currenct script looks like this: function m=F(x) k11=x(1); k12=x(2); k13=x(3); k14=x(4); l=x(5); f1(y1,y2,y3,y4,z...

2 years ago | 1 answer | 0

1

answer