42 total contributions since 2018

Question

How to interpolate this variable

The calculation of my program gives out a variable 190*40 I want to interpolate it to 190*400 how can i do it?

6 months ago | 1 answer | 0

Question

How to interpolate in 3d?

I have a matrix in 100 distane and 10 distance which i want to interpolate to 1 but as it is a matrix i want to interpolate in...

7 months ago | 1 answer | 0

Question

how to optimise the code with cell?

for this program i am calculating A by using for A = cell(1,3); for k = 1:3 A{k} = B*k + C*k; end And then every matr...

7 months ago | 1 answer | 0

Question

how to jump a single for step in a for loop?

I am writing a code for fuel consumption for that i want to use a for loop which calculates Speed of the motor for k=1:1:150 ...

8 months ago | 1 answer | 1

Question

How to highlight a row in a surface plot?

Hello all, I have done some calculation and in the result i have created a surface plot. Actually the plot is divided in two s...

8 months ago | 1 answer | 0

Question

How to get the relsults in different matrix after for loop

Hello all, I am working on a engine in which i want a result at different rpm... let i be the different rpm and A be the fuel c...

8 months ago | 2 answers | 0

Question

How to add rows and colums of zero?

I want to compare two matrices for that the number of rows and columns should be similar The two matrices to be compared are ...

9 months ago | 1 answer | 0

Question

is there any function for adding zero ? related toa other matrix

Basically i want to compare 4 or 5 matrices but all of them are of diirérent sizes. But for the comparison they should of same s...

9 months ago | 2 answers | 0

Question

how to find resultant min Graph.

hello, I am working on a project in which i have calculated some fuel consumption values at different states of the powertrain....

9 months ago | 1 answer | 1

Question

how to compress and delete the same values in vector?

i have two vector in which the values are repeated. in first i want to delete the repeated values such as A=[1,2,3,3,3,4,5,6,6...

10 months ago | 1 answer | 0

Question

how to interpolate column?

I have a matrix with 3 rows want to increase it to 5 how sould i do it ? A=[1,1.2,1.4,1.6,1.8;1.3,1.6,1.7,2,2.2;1.8,2,2.5...

10 months ago | 1 answer | 0

Question

how to form a indexed matrix?

Row matrix A=[0 2 3; 3 2 1; 2 3 1] Column B= 2 Index matrix C=[10 20 50; 60 80 90 ; 20 60 40] Result expected i would ...

10 months ago | 1 answer | 0

Question

how to do 1 to 1 matrix multiplication?

i want to do a multiplication between 2 matrix but the Resultant matrix should be as in example A=[1 2; 3 4] B=[1 4 ; 2 3] C=...

10 months ago | 1 answer | 0

Question

How to interpolate for a particular index within vector?

The uploaded vector is matrix of numbers from 2 to 99 i want to interpolate from column 15 to 30 within a range of 2 to...

10 months ago | 1 answer | 0

Question

How to specify color shade in bar graph?

if true % code load('Kennfeld1.mat'); bar3(Kennfeld1); I am trying to plot the graph in bar but the color shad...

11 months ago | 1 answer | 0

Question

how to interpolate?

if true % code end A=[302 300 303 315 302 301 307 305 319 313 298 293 290 309 320 362 375 390 392 ...

11 months ago | 2 answers | 0

Question

How to scale logarithmic in surface plot?

the variable is a array I want x sclae from -2600 to 2500(gettable) y scale as 0:4:40 (how to code this) z scale in log...

11 months ago | 1 answer | 0

Question

How to manipulate this matrix?

if true % code A= [0,0,0;0,2,3;1,2,3] ExpectedA=[3,2,1;3,2,0;0,0,0]

11 months ago | 1 answer | 0

Question

How to change this matrix for expected matrix?

if true % code A= [0,0,0;0,2,3;1,2,3] Expected A=[3,2,1;3,2,0;0,0,0]

11 months ago | 1 answer | 0

Question

How to turn the surface plot?

if true % code Kraft=5:10:1470; Geschwindigkeit=32:150; nx = length(Kraft) ; ny = length(Geschwindigkeit) ; if nx > ...

11 months ago | 1 answer | 0

Question

How to select true values ?

I have 2 matrices and 4 conditions for it like positive positive negative positive positive negative abd negative negativ...

11 months ago | 2 answers | 0

Question

how to formulate logical matrix in a loop?

i am having a matrix and want to separate them in the depending on its value A=[1,2,3,4,5,6,7,8,9,10] expected result ar...

11 months ago | 2 answers | 0

Question

how to find common values in two matrix for particular column?

if true % code A=[0 1 1 0; 1 0 0 1; 1 1 0 0; 0 0 1 1] B=[0 1 0 1; 1 0 1 0; 0 0 1 1; 1 1 0 0] end for 1st column of...

11 months ago | 2 answers | 0

Question

how to construct if for vectors with positive and negative?

Kraft=500:1000:1510; Geschwindigkeit=10:50:160; DrehzahlICE=1484 DrehmomentICE=50 DrehmomentAchsesoll= Kraft*0.324...

11 months ago | 2 answers | 0

Question

how to sort in a loop?

the main question is solved but i have another question. for i= 1:42 for j=0:100:4100 A(i)=sort(Achsemome...

11 months ago | 1 answer | 0

Question

how to sort values depending on other vector?

if true % code x=[0,50,150,100,50,150,0,100,150,0,50,150] y=[1,2,3,3,2,1,1,2,3,3,2,1] i want to sort y as 0 to 1,...

11 months ago | 1 answer | 0

Question

how to find values of y?

if true % code x=[0,1 1 20 30 430] %corresponding values of y y=[1510.75 a b c 10.9] how to find a b c?

11 months ago | 1 answer | 0

Question

How can i plot 1 variable in x and 3 in y for a 2 D plot

if true % code end[num] = xlsread('steering_angle.xlsx') ; Steeringangle = num(:,1); Geschwindigkeit = num(:,2); St...

11 months ago | 1 answer | 0

Question

how to form feedback loop to change input?

if true % code DrehzahlICE = 1000; DrehzahlEMB = 1724 DrehzahlEMA = -258 DrehmomentAchsesoll= 324 DrehmomentICEmax=...

11 months ago | 1 answer | 0

Question

HOw to convert a variable to positive irrespictive of previous ?

A=-3 B= 2 C= 4 D= A+B+C D=9 As i am working on a loop A or B or C can be negative or positive but i have to p...

11 months ago | 1 answer | 0