Community Profile

photo

Karim


Last seen: 대략 2개월 전 2016년부터 활동

Followers: 0   Following: 0

Mechanical Engineer

Programming Languages:
Python, MATLAB
Spoken Languages:
English
Professional Interests:
Optimization, Multibody Modeling, Finite Element Analysis (FEA)

통계

All
  • Knowledgeable Level 5
  • Pro
  • 6 Month Streak
  • Editor's pick for Answers
  • Community Group Solver
  • MATLAB Central Treasure Hunt Finisher
  • Explorer
  • First Review
  • Promoter
  • First Answer
  • Scavenger Finisher
  • Solver

배지 보기

Feeds

보기 기준

답변 있음
Discretize model dx dt = σx − σy, dy dt = xρ − xz − y, dz dt = xy − βz, using Runge-Kutta methods (of order 2 or order 4).
After having a look at the wikipedia article (Lorenz system - Wikipedia), it appears that you have some mistakes in your equatio...

대략 1년 전 | 1

답변 있음
Evaluating all possible combinations
See below for one method to obtain all combinations. In the resulting matrix, each row represents a combination, the first colu...

대략 1년 전 | 0

| 수락됨

답변 있음
How do I fill colour on both sides of the sin wave in this graph?
One way to do this is by using the ployshape function from matlab, see below for a demonstration. % Define the time axis (x-axi...

대략 1년 전 | 0

| 수락됨

답변 있음
how to use mesh to plot 3D image?
I assume you want to create a 3d surf plot? You can use the method below. u1=4;u2=8;a=30;b=5;a2=100;A=500;c2=10;c3=12;c4=8;D0=1...

1년 초과 전 | 1

| 수락됨

답변 있음
How to find heading angle between two coordinates
see below for one approach % random generate point position and direction of the robot currPos = 1+10*(rand(1,2)); % the x-y c...

1년 초과 전 | 1

| 수락됨

답변 있음
Remove '00' the first two digit to '0' in cell
Hi, you can do that with the startswith function of matlab: ab = {'10300' '20257' '30073' '40080' '55011' '82132' '0' '0' '0'; ...

1년 초과 전 | 0

답변 있음
I WANT TO CREATE MATRIX COMBINATION
% setup the original data, note the shape! A = [1;2;3]; B = [4;5;6]; % create the combinations C = [ repmat(A,numel(B),1) ...

1년 초과 전 | 1

| 수락됨

답변 있음
Find Z-value corresponding to X and Y points based on interpolated data
Note that you have very little points. Hence one possibility is to perform linear interpolation, below you can see one method on...

1년 초과 전 | 0

답변 있음
Readin a txt file and exporting the data in a matrix.
you can use the readmatrix function, remember to se the decimal seperator to a comma for you data % 'format long' is only used ...

1년 초과 전 | 0

답변 있음
convert cell array into date and time string
See below for one method on how to do this % reconstruct the cell array from the OP date_hne = {'2014' '04' '01' '23' '46' '44...

1년 초과 전 | 0

| 수락됨

답변 있음
Best method to create multi-dimensional data set?
You could store this in a cell array. See below for a demonstration and some comments on the concept: num_models = 10; num_set...

1년 초과 전 | 0

| 수락됨

답변 있음
3D color map of F=F(x,y,z) where data is given as a 2D array of the form [x y z F]
Hello , you can create those plots both for both 2D and 3D elements using the patch command. Essentially you need a connecitivty...

1년 초과 전 | 1

| 수락됨

답변 있음
Creating a projection of a surface on a plane for area calculation.
There is no need for rotations or even fine sampling, since it's a pyramid it has straight edges. If you project the points that...

1년 초과 전 | 1

| 수락됨

답변 있음
How do I make line stacked graph like this?
Hi, its much easier if you would provide the numerical data as numerical data and not a screenshot ;) Anyhow, yes such a plot c...

1년 초과 전 | 1

| 수락됨

답변 있음
Hi Everyone. Ive created a set of questions for user to select the material characteristics based on their preferences and need help to choose best results best on their ans
Hi, see below for some possibilities on how to code such selection. % material options Materials = ["AS";"AA";"PL";"PC"]; S...

1년 초과 전 | 0

| 수락됨

답변 있음
I am trying to solve a system of linear equations generated from a 2-D finite element problem. The equations (shown below) are not in the general form Ax=B..
Well to figure out the simple analytic equation you can in fact use the symolic toolbox to investigate the set of equations. Not...

1년 초과 전 | 0

| 수락됨

답변 있음
How to find the value before max value for vector for each 10 rows
Hi see below for the stept to obtain such a vector % set up the 'max row value indicator' n = 10 % create array A A = 1:100 ...

1년 초과 전 | 0

| 수락됨

답변 있음
MATLAB Interface for NOAA Data
Using inspiration from this answer: How to get daily temperatures of past 30 years for a given location from NOAA online databas...

1년 초과 전 | 0

답변 있음
Can you please tell me what is the error ?
you forgot a * in -6*x(b-2*y)/(a^3*b) this should be -6*x*(b-2*y)/(a^3*b) see below E=70*10^6; v=0.3; p=50*10^3; h=0.01; a...

1년 초과 전 | 0

| 수락됨

답변 있음
Plot Surface from Sum of Series
Hi you need to set up a grid for each point that you want to evaluate. Afterwards you need to evaluate your function at each poi...

1년 초과 전 | 1

답변 있음
why am I getting an error for this tutorial when adapted to my image? how can I fix this error:
Assuming you are reffering to this tutorial: Color-Based Segmentation Using the L*a*b* Color Space - MATLAB & Simulink Example -...

1년 초과 전 | 1

| 수락됨

답변 있음
Limiting range of a matrix
You can use logical indexing to obtain such a result, see below for a demonstration A = [1 2 3 4 5 6 7 8]; % define the limi...

1년 초과 전 | 0

| 수락됨

답변 있음
fsolve with vectors x and y (not x(1) x(2))
Based on the comments, I would guess that you are looking for 8 parameters i.e. syms x [1 4]; x syms y [1 4]; y can you try m...

1년 초과 전 | 1

| 수락됨

답변 있음
Unable to perform assignment because the indices on the left side are not compatible with the size of the right side.
@Kamilu Sanusi, based on your comments I tried to update the code. The code runs without errors, but you will have to verify whe...

1년 초과 전 | 1

| 수락됨

답변 있음
How to reduce its execution time?
Hi, I vectorized your code. Using tic/toc procedure the run time is about 0.04 seconds. Hope it helps. tic % transpose u a...

1년 초과 전 | 0

답변 있음
Use a for loop to find out if point B is away from point A by a known amount
Hi see below for a demonstration of such a loop. % load the data sortedmat = importdata("sortedmat.txt"); % set the allowed d...

1년 초과 전 | 0

| 수락됨

답변 있음
Finding closest circle to a general circle
You could try to fit a plane trought each circle, comput the normal of that plane. And then determine the angle between the norm...

1년 초과 전 | 0

답변 있음
Plotting far away objects in a 3D plot
Those are some amazing plots! One method that could work is to insert a "break" in the axis, i.e. hiding a part of the space be...

1년 초과 전 | 0

답변 있음
Is there any way to save my processed Images into different folders?
Yes this is possible, below you can find some pseudo code showing the logic behind the process. Hope it helps. EDIT: updated t...

1년 초과 전 | 0

| 수락됨

답변 있음
A symbolic implementation issue
I'm not fully sure I understand what your are looking for. However, if the goal is to create arrays which hold symbolic equation...

1년 초과 전 | 0

더 보기