Community Profile

photo

Sayyed Ahmad


HUGO PETERSEN GmbH

32 total contributions since 2018

Contact

Sayyed Ahmad's Badges

  • First Review
  • 3 Month Streak
  • Knowledgeable Level 2
  • First Answer

View details...

Contributions in
View by

Answered
How to programatically modify simulink mask values (Serial Configuration Block)
I used the following codes in a matlab level-2 s-function and It's worked. set_param(gcs,'BackgroundColor', 'red');

3 months ago | 0

Answered
Variable size class properties for C++ code export
The defination of var is wrong. it's ok if you write classdef inputClass properties var; b = 0 ...

3 months ago | 0

Answered
Physical attributes / Weight
you can create a subsystem. use ctrl.+m to create a mask for your subsystem. Now you could be able to use Parameters and Dialog...

5 months ago | 0

| accepted

Answered
to plot binary data for the predefined time interval
try something like this: n=0; while n<5000 for i=1:1000 t(i)=now; x=[1 0 0 1 1 1 0 0 1]; %read your x f...

5 months ago | 0

Answered
How can I round double-values down in a Matlab function block in Simulink?
I would programming like this: x=strsplit(datestr(now,'YYYY-mm-DD-HH-MM-ss'),'-') % instead of now you can use your time from...

5 months ago | 0

Answered
Fitting sum of exponential function with experiment data
you have to simplified your model to y=1-c1exp(-c2*x*t) y ist your Vt/V_inf c1 represent all other parameter outside your ex...

5 months ago | 0

Answered
Align different starting point to zero
try with find and index for i=1:tn ind=find(B(:,1)==number(i)) y=min(B(ind,2)); B(ind,2)=b(ind,2)-y; end

5 months ago | 0

| accepted

Answered
How to create a mathematical expression which contains delays using Symbolic Math Toolbox?
matlab multiplied and simplified your codes; Y = I1^2+2*(I2-4)+I1*(I3-4)+(I4-8)+5*I5 Y = I1^2+2*I2-8+I1*I3-4+I4-8+5*I5 simpli...

5 months ago | 0

Answered
Acces data in nested structure
if your various_substructures is an array you can access the value like follow: for i=1:5 s.var(i).val1.x=i; s.var(...

5 months ago | 0

Answered
App Designer: Use Tree to Browse Directory
see the help of uigetfile: "Enabling multiple file selection in the dialog: [filename, pathname, filterindex] = uigetfi...

5 months ago | 0

| accepted

Answered
How to draw line between specific points?
I hope the following codes are what you want: clear all close all clc A = [ 1000 1000; 1003 2640; 2323 2638; 2661 1096; 1...

5 months ago | 0

Answered
How to create a symmetric histogram
du you means this? A=linspace(0,pi,181); X=sin(A); Y=-X plot(A,X,'r-',A,Y,'b-')

8 months ago | 0

Answered
How can I build power function through point?
I would do something like this: x = [52000 70000 74000 96000 100000 170000 220000 245000 530000 720000 810000 4900000]; y ...

9 months ago | 0

| accepted

Answered
one problem about ismember function
That is not a problem of ismember function. The machine accuracy is in matlab eps >>eps ans= 2.2204e-16 to better ...

1 year ago | 0

Answered
Exporting from Matlab to excel with macro.
you have to use activeX in matlab to start Excel e = actxserver('excel.application'); e.visible=1; %% new Woorkbo...

1 year ago | 0

Answered
How can I add a point to an animation?
you need to add in your code hold on otherweise you create every time a new graph and your point is not exist anymore.

1 year ago | 0

Answered
Overload operator doesn't work into workers
class handel is a pointer of Memory. To better understand try this codes a = ClassA(10); b = ClassB(a); a.value b....

1 year ago | 0

Answered
How do I load images from matlab to Paint Application?
if your Image called test.png you have to run this Code in matlab command !mspaint test.png

1 year ago | 0

Answered
Which one is faster: trace(a' * b) or sum(sum(a .* b', 2))?
try your code with tic for i=1:10000 %put hier your alternat 1 end toc tic for i=1:10000 %put hi...

1 year ago | 0

Answered
Strange Cell Array error
try this codes data={'8317';'10974';'14623'} for i=1:3 c2(i)=str2num(data{i}) end

1 year ago | 0

Answered
save result of each iteration in a joint table
I would use the cell-data format to save every thing. for i=1:5 x{i}=table('test',i); end

1 year ago | 0

Answered
Creating a class object with the same class name as a variable
I creat some file which is called: CLASS_Template.m and used some KEY_CLASSNAME as a key in this template. %codes of CL...

1 year ago | 0

Answered
Divide y values of two graph?
what about htis? x=1:20; x2=1:5:20; y1=x.^2; y2=x2.^3-x2.^2+0.5*x2; plot(x,y1,'b-',x2,y2,'g.-') y3=i...

1 year ago | 1

| accepted

Answered
Converting a 3D matrix into a 2D in the correct order.
for i=1:8 for j=1:50 a(1,i,j)=i*10000+j; end end b=a; b=reshape(b,8,50); b=b';

1 year ago | 0

Answered
How to add final value of a loop part to the next one. i need to add the months answers of ii=1 to ii=12
clc; clear; XS =0; month=0; for ii = 1:12 x1 = input('week1:'); x2 = input('week2:'); x3 = input...

1 year ago | 0

Answered
How can I multiply each element of a polynomial with different coefficients??
c1*exp(t)+c2*exp(-2*t)+c3*t+5*c4 if your c1 to cn are also arrays with the same dimension as t-series c1.*exp(t)+c2....

1 year ago | 0

Answered
how can i find an itersection point between two function
1. you defined the variable intersectionx(end+1) and intersection(i) as array. So the plot(intersectionx,intersection...

1 year ago | 1

Answered
Graph shows not all elemetns
I sugest F_1 = temps(:,5.'); must be F_1 = temps(:,5)';

1 year ago | 0

Answered
My script sees the value 2 different then 2.0000 which is a problem
Look at Operator Precedence in matlab. A=2000; B=2; C=A>B;

1 year ago | 0

Load more