photo

Ali Tawfik


Last seen: mehr als 3 Jahre vor Aktiv seit 2018

Followers: 0   Following: 0

Statistik

  • Thankful Level 3

Abzeichen anzeigen

Feeds

Anzeigen nach

Frage


While loop not giving the correct answer
Hi All, the code below is running, HOWEVER the results are incorrect, My condition in while is running but with wrong number...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


While loop keep running (logical with vector )
Hi all, My while loop running without stopping, I wanna it run until reach to logical function of a equal or smaller than 10...

mehr als 3 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


For loop with random value to select from an array
Hi.. I would like to select random values each iteration (some of them will be repeated )how could I do that ? The output shou...

fast 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Create new array with repeated values (error k must be less than or equal to N)
Trying to create a new array with repeated values .. I tried randperm but can not , as k must be less than or equal to N clear...

fast 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Generic selection (randomly selection) from two matrices
I am trying to select random values from angle_pss and thick_pss ? How could I do the selection randomly like choose 1st index ...

fast 4 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


Adjust the output parameters based on different inputs (Obtain the optimum values)
Hi All, The main aim of this code was to optimise both the angles (named as angle in the code) and the thicknesses (named as t...

fast 4 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


Help in understanding the chart of the code (how to find the optimum value)
I would like to implement the flow chart I attached : starting from block 9: I do not know how to implement and choose the opti...

fast 4 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


Find optimum value to fit with the answer
Hi all, I would like to know how to find an optimium value to reach or fit with the final result even if I change other varia...

fast 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Get all the values from a two (for loop)
I am running two for loops with means it run 5*5.. Later the size of x will be (1,5) however; the x runs more than that!!! Ca...

fast 4 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Understanding Index for loop
I am new to Matlab, and I would like to understand the following index in for loop ... I understand the indices of the values ...

fast 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


reduce vector each loop
I am trying to reduce the vector length backward each loop, like the following: I think I should use for loop but i can not figu...

fast 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Assigning or replacing elements of another array into an array based on indices
Hi, I am trying to replace or assign elements into another array based on indices, I did it but only with only element, I can ...

fast 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


create array and assign the values to proper locations
I would like store each value and add them to the previous to create an array ... expected result should be= [-8 0 0 0 0 0 0 8]...

fast 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


create plot with slice
Hi, I am wondering if I have two values x=[1,2,3,4,5,6,7] y=[10,20,22,25,30,35,37] I understand, it does NOT work like tha...

etwa 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Creating multidimensional table from multidimensional array
Hi, I have some 3D arrays, and I would like to obtain/create table for each dimension, I could do it but I wanna it to operate...

etwa 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Find Unique values in array
Hi all, I am trying to create a new array contains ONLY the unique values (same values but not repeated) which in the followin...

etwa 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Obtain specific dimension from multidimensional Arrays
Hi All, I am trying to create a new variables based on multidimensional array obtained, for the simplicity I just got the part...

etwa 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Add various horizontal lines to a plot Matlab 2016a
clear all; clc; close all x=[33.5 44 55 69 106 143 123 49 -25]; y=[61.8 53 45 73 77 81 156 68 -18]; z=[-7.5 -5 -2.5 -2.5...

etwa 4 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Assign one name to three variables in table
clear all; t=[33;69;12;13;14;15] u={'High';'M';'LOW'} num=2 y=repmat(u,num,1) i=[0;45] ii=repelem(i,3) yy = table(ii,y,t)...

etwa 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Repeat some elements in a vector
clear all; u={'High';'M';'LOW'} y=repelem(u(1:3),2) % would like the output y=[high;M;LOW;high;M;Low] I am trying to use r...

etwa 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Undefined operator '==' for input arguments of type 'cell'.
Hi all, I using MatLab 2016a and I am trying to create if loop however, always get the following error "Undefined operator '=...

etwa 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Sum with a for loop of each 2 elements
Hi All, I have been trying to get the sum of each two elements: for example: I have x=[50 200 20], I need to have the output...

etwa 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Calculate centroid and length of a rectangular shape
Hi, I would like to obtain the distance with respect to the centriod (both distances 97.2 and 152.78) as shown in the figure...

etwa 4 Jahre vor | 0 Antworten | 0

0

Antworten

Beantwortet
create menu with input
I think you misunderstood me, because I would like to add (for loop , or while )to add for each index a command then store them ...

mehr als 4 Jahre vor | 0

Frage


Matrix dimensions must agree error in FOR loop
Hi all, I am trying to do a conditional statement inside for loop, I got a very strange error of matrix dimensions must agree ...

mehr als 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


create menu with input
Hey all, I have been trying to create menu with input command, I wanna the menu displays choices as buttons in a dialog box de...

mehr als 4 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


create a matrix from matrix with zeros elements
I have a matrix obtained A=[ 1 2 3 4;5 6 7 8;9 10 11 12; 13 14 15 16]; So I just would like to obtain another matrix but with...

mehr als 4 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Can not assign data for each cell with xlswrite
Hi All, I have a vector and I am trying to write the data into excel, I used xlswrite, which seems working fine, but when I tr...

mehr als 4 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


Repeat specific elements in vector with keeping the basic vector
Hi All, I have been trying to create a new vector based on old one, by repeating specific elements, I have been looking for ...

mehr als 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Addition to specified elements in a vector with for loop to create a new vector
Hi all, I am trying to add to specified elements in a vector to create a new one with the new values, however, unfortunately...

mehr als 4 Jahre vor | 1 Antwort | 0

1

Antwort

Mehr laden