Community Profile

photo

Fawad Farooq Ashraf


Last seen: 21 Tage vor Aktiv seit 2021

Followers: 0   Following: 0

Programming Languages:
MATLAB

Statistiken

All
  • MATLAB Mini Hack 2022 Participant
  • Knowledgeable Level 1
  • Thankful Level 3
  • Revival Level 1
  • Solver
  • First Answer

Abzeichen anzeigen

Feeds

Anzeigen nach

Frage


Drag and Drop Custom Blocks on UIAxes in MATLAB
Hello. I'm trying to build an app on the MATLAB App Designer. The app is about Path Planning and Path Following of a Ground Vehi...

5 Monate vor | 1 Antwort | 0

1

Antwort

Frage


Rate Transition Data Control
I'm implementing an Extended Kalman Filter on SIMULINK for sensor fusion. I have Accelerometer, Gyroscope, GPS and a magnetomete...

11 Monate vor | 1 Antwort | 0

1

Antwort

Frage


Plot a function of three variables on a surface plot
Hello. I have some experimental data of electric field E. The values were measured along three axes x, y and z such that: along ...

etwa ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


4D Table Interpolation
I have a data set in four variables (alpha,beta,gamma,lambda). Here alpha is a 10 element vector, beta is a 8 element vector, b...

etwa ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


Figure Subplot Tiles Customization
I want to create a figure containing subplots such that there are 3 columns. The first two columns are supposed to have three su...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


Vectorize Matrix Formation & Multiplication
How can I vectorize the following code clear;clc t = 1:10; v = rand(10,3); a = rand(10,1); m = 6:15; n = 6:15; M = ...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


Hold a value indefinitely once a condition becomes true
I have a simulink block diagram which gives true or false based on a condition (relational operator). My problem is that once I ...

mehr als ein Jahr vor | 2 Antworten | 0

2

Antworten

Frage


Counting Consecutive Threshold Crossings in a Signal (Counting Oscillations)
I have an oscillating signal in a SIMULINK model and I want to count the number of times it crosses a certain threshold level (p...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Gelöst


Assign matrix rows/columns to separate variables
This is a slight variant of <http://www.mathworks.com/matlabcentral/cody/problems/2668-assign-matrix-elements-to-separate-variab...

mehr als ein Jahr vor

Beantwortet
Plot a structure array without a loop
I think I've found the answer to this myself. figure(1);hold on;grid on;box on; p = arrayfun(@(a) plot(a.x,a.y,'.-'),DATA); ...

mehr als ein Jahr vor | 1

| akzeptiert

Frage


Plot a structure array without a loop
I ran a Monte-Carlo with 300 simulation runs and I stored the output data for each run in a structure as DATA(i).x = outputX; ...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


Length/Index based if else statements
I have a vector of variable length, for example b = [0.25;0.5;0.75;1;1.5;1.75;2.0]; and based on the length of this vector, I ...

fast 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Bar Plot Legend and Axes
I have some data which I plotted as, What I want to do would look something similar to, I opened another figure and copied...

etwa 2 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
DatasetRef; parsim: 'Unable to read file ... No such file or directory'
try to use simOut = parsim(simIN,'TransferBaseWorkspaceVariables','On');

etwa 2 Jahre vor | 0

| akzeptiert

Frage


Disabling Data Logging in Simulink
I have a simulation on simulink with many to-file and to-workspace blocks in it. However, now I want to run a monte-carlo analys...

etwa 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Scaling down values to plot on the same figure
I have a dataset with x and y values (basically a trajectory plot). I've plotted them as shown in the attached figure. I'...

etwa 2 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


Using parsim with SIMULINK model containing c-mex s-functions
I have a simulation with multiple S-functions (level 2 written in c++). I want to run a Monte-Carlo analysis for my problem and ...

etwa 2 Jahre vor | 1 Antwort | 0

1

Antwort

Gelöst


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

fast 3 Jahre vor

Beantwortet
How to Fill matrix rows with another row?
Well you could find the indices of all the nonzero rows for a matrix A as idx = find(~all(A==0,2)); and then you can replicate...

fast 3 Jahre vor | 0

Beantwortet
Search for optimal values of variables
I figured this out. And I'd share how i did it, in case anyone else encounters the same problem. I used fmincon with objective ...

fast 3 Jahre vor | 0

| akzeptiert

Frage


Search for optimal values of variables
I have two parameters c1 & c2 as variables which I pass to a function and it returns x as 0 or 1 (not logical operators but valu...

fast 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Equivalent of c++'s NULL or python' s None in MATLAB
I have a c++ code where certain variables (as well as certain user defined class objects) are set to NULL under some conditions....

fast 3 Jahre vor | 5 Antworten | 1

5

Antworten

Frage


'n' number of nested for loops
I have a cell array M with 4 cell elements and each cell element has a 8x2 matrix. I'm trying to making different combinations ...

etwa 3 Jahre vor | 1 Antwort | 1

1

Antwort

Frage


Transformation of a MATLAB Function.
I have a function defined as, f_xw = @(x,w) [3.*x(1) - x(1).^2/7 + w(1); -2.*x(2) + w(2)]; I want to transfor...

etwa 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Alternative for nested for loop
I need to implement this logic to make combinations of a matrix. This code is a bit cumbersome since I need to add more rows and...

etwa 3 Jahre vor | 1 Antwort | 0

1

Antwort