photo

Awais Saeed


Last seen: environ 2 ans il y a Actif depuis 2018

Followers: 0   Following: 0

Statistiques

All
  • Knowledgeable Level 4
  • Commenter
  • Promoter
  • Community Group Solver
  • Solver
  • First Answer
  • Thankful Level 3

Afficher les badges

Feeds

Afficher par

Question


How to create readable decision trees
I am trying to produce a binary decision tree as following: % Dataset r2 = [0;0;1;0;1;0;0;1]; r3 = [0;0;0;0;0;1;1;0]; r4 = [...

plus de 2 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
using latex interpreter for multiple legends
You do not need to specify interpreter as latex. Matlab uses some subset of Tex by default. z = 5.213; fplot(@(x) sin(x)) l...

plus de 2 ans il y a | 0

Réponse apportée
If value in one vector is in another, assign the value of the other column of the second vector to a third
T = 0:20; s = zeros(1,length(T)); stimuli = [4 8 14 2 16 6 15 12 3 ; 6 8 15 12 3 11 19 16 2] for ii = 1:1:numel(T) % fin...

plus de 2 ans il y a | 0

Réponse apportée
How to create the random sampling matrix for a certain number of times?
What I understood is that you want those 40 values with 16 different c and d, right? If yes, then loop through those values, do ...

plus de 2 ans il y a | 0

Réponse apportée
Need help writing a code with a summation divided by a summation
I do not know what graph are you expecting but your loops are for sure not storing any values. You have to store the computed va...

presque 3 ans il y a | 0

Réponse apportée
count repeated sequence in an array
Not so neat, but will do the work data=[0 0 0 1 1 0 0 0 0 0 0 1 1 1 1]; zero_count = 0; one_count = 0; ctr1 = []; ctr0 = []...

presque 3 ans il y a | 0

Réponse apportée
How to keep scientific notation in string.
epsilon=[1e-01,9e-02,8e-02]; % try num2str() str1 = string(num2str(epsilon,'%.e ')) % or try sprintf() str2 = string(sprintf...

presque 3 ans il y a | 0

Réponse apportée
How to delete rows in matrix, where a value is repeated 3 times or more!
b =[ 1 1 3 6 6 6 6; 1 1 3 6 6 6 7; 1 1 3 6 6 6 8; 1 1 3 6 6 6 9; 1 1 3 6 6 7 7; 1 1 3 6 6 7 8; 1 1 3 6 6 7 9; 1 1 3 6 6 8 ...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
getting error with symengine
It is good to provide a variable list and expressions you want to replace using subs(). Read more about subs() here. syms u v x...

presque 3 ans il y a | 1

Réponse apportée
I need to iterate time(t) to get different value of temperature(T) at different (t) starting from 0. Can anyone help me to iterate the code and plot time vs temperature curve?
T_i = 80; T_inf = 15; h = 500; A = 13.16; m = 54; m_c = 28; %mass of cast iron in kg m_co = 20; %mass of copper winding i...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
hello i need to write script mathlab to make a matrix with vector v=[1 2 3 4]
Seems you want to have powers from 1 to 4 v = 1:4; bsxfun(@power,v(:),[1:4]) % poers ranging from 1 to 4

presque 3 ans il y a | 0

| A accepté

Réponse apportée
What is a double matrix?
A = magic(4) % data type is double s = single(A) % convert double to single d = double(s) % convert single to double wh...

presque 3 ans il y a | 0

Réponse apportée
Fill area of 2dcircle with cross line
Do not know how to fill with lines, but you can fill the circle as shown below theta=linspace(0,2*pi,100); x=cos(theta); y=si...

presque 3 ans il y a | 0

Réponse apportée
Remove dulpicate rows of cell array
C = {{'800AL'} {'800AL'} {'800AL'} {'800AL'} {'800AL'} {'700AL'} {'700AL'} {'700AL'} {'700AL'} {'7...

presque 3 ans il y a | 0

Réponse apportée
bar3 color change
load count.dat Z = count(1:10,:); h = bar3(Z); title('Detached Style') set(h(3),'facecolor','red');

presque 3 ans il y a | 0

| A accepté

Réponse apportée
How to manage multiple subplots ?
I hope this will work for you. clear all position = 0; % position of plot in subplot fig_num = 1; % figure() number for k =...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
Plot cells with variables?
I think you want to plot the symbolic expression x^2+1 (that's what A(2,1) gives you). If that's the case, use fplot() syms x; ...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
How to generate and save multiple plots?
If you want to plot all of your plots on same plot window then use 'hold on'. If you want to plot each plot individually then yo...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
I have a transfer function with very large coeficient, how to reduce it to a readable tf form?
Try using simplify() syms s TF =(579897794885098601073766651512401860000/(7258390620966233564935880704*s^2 + 56126396051975186...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
symbolic calculation in MATLAB
You are not storing in C1 properly. You are using x and t, whihc are incrementing with a step size of 3. syms x t U=zeros(1,2,...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
X and Y axis alignment
Something like this? X = categorical({'Small','Medium','Large','Extra Large'}); X = reordercats(X,{'Small','Medium','Large','E...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Sum matrix column orderly
chnage first_row and end_row according to your requirement A = [1,2,3,4;5,6,7,8;9,10,11,12;13,14,15,16] start_row = 1; end_ro...

presque 3 ans il y a | 0

Réponse apportée
Merge the contents of neighboring non-zero cells
Remove the cells that has 0 in it. c = {25,0,'anyString','aChar',[12 5 48 7];0,0,'anyString','bChar',[10 01]} nonzero_indices ...

presque 3 ans il y a | 0

Réponse apportée
Comparision double values 135 with 135.0000
I had this issue once. I am just suggesting what helped me. It is possible that the actual value is not 135.0000. If 135.0000 is...

presque 3 ans il y a | 0

Réponse apportée
Using forloop and whileloop to find if a number has appeared repetitively
Doing with loops is hectic. You should use find(). However, I did it with loops as you required. I added last two entires for my...

presque 3 ans il y a | 1

Réponse apportée
how to find the mininmum value in a double vector ?
You are half way there. Use [value, index] = min(vector)

presque 3 ans il y a | 1

Réponse apportée
While loop to find index of first element to be less than and greater than in a vector
Is it necessary to use a while loop? For loop works fine a = rand(20,1) for itr = 1:1:length(a) % iterate thorug...

presque 3 ans il y a | 0

Réponse apportée
Colon Notation Function using Matrices
understand the syntax first. To access an element from a matrix, you need to provide the row and column in which it resides. % ...

presque 3 ans il y a | 0

Réponse apportée
When you type m(1) or m(10) in the command window, what is happening?
Let's say you have an array of 10 elements arr = [1 2 5 4 7 0 3 6 1 9]; To access first element, you use arr(1) to access 5t...

presque 3 ans il y a | 0

Réponse apportée
Where is the mistake of the ^? i can plot the graph without the ^ but it say i have mistake after adding the ^ or .^
exp^(cos) is incorrect. Use y_array1 = sin(x_array.^2).* exp(cos(x_array));

presque 3 ans il y a | 0

| A accepté

Charger plus