Community Profile

# Mojtaba Mohareri

Last seen: 4 mois ago Active since 2019

#### 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...

4 mois ago | 2 answers | 0

### 2

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...

8 mois ago | 0 answers | 0

### 0

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...

8 mois ago | 1 answer | 0

### 1

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...

8 mois ago | 1 answer | 0

### 1

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...

8 mois ago | 1 answer | 0

### 1

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 ...

8 mois ago | 1 answer | 0

### 1

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...

plus d'un an ago | 1 answer | 0

### 1

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, ...

plus d'un an ago | 2 answers | 0

### 2

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...

plus d'un an ago | 1 answer | 0

### 1

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...

presque 2 ans ago | 1 answer | 0

### 1

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...

presque 2 ans ago | 1 answer | 0

### 1

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...

environ 2 ans ago | 1 answer | 0

### 1

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 ...

environ 2 ans ago | 1 answer | 0

### 1

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 ...

presque 3 ans ago | 1 answer | 0