Community Profile

photo

Mojtaba Mohareri


Last seen: mehr als 2 Jahre vor Aktiv seit 2019

Statistiken

  • Thankful Level 3

Abzeichen anzeigen

Content Feed

Anzeigen nach

Frage


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

mehr als 2 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

fast 3 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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

fast 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 3 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

fast 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 5 Jahre vor | 1 Antwort | 0

1

Antwort