Beantwortet
Approximate match between two matrices
if there is no approximate value then it will return the minimum value of that column. C1= [0.4311 0.123 0.011 0.441]; A1=[0.1...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
How to plot real and imaginary parts as separate stem plots
Try this: figure(1) x = linspace(-5,0.01,10)'; Y = [5.*exp(-0.01.*x), 5.*exp(i.*0.06.*pi.*x)]; subplot(2,1,1) stem(real(Y))...

etwa 4 Jahre vor | 0

Beantwortet
How can I change the last marker of a line to a different style?
x = [0 7500 15000 22500 30000 36215 42433]; y = [114.8 112.4 105.5 103.4 103.6 101.9 91.8]; plot(x,y,'-o','MarkerIndices',1:6)...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
integral calculation size problem
i took the value of x=10, because you did not mention that. you need to mention ArrayValue as true, cause you are using the func...

etwa 4 Jahre vor | 0

Gelöst


Length of the hypotenuse
Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<https://i.imgu...

etwa 4 Jahre vor

Beantwortet
How to plot two equations on two different plots
try this code. as your output is only a single integer so it's better specify Line style. here i used 'o'. for different plots ...

etwa 4 Jahre vor | 1

Beantwortet
How would I delete rows in a tall matrix to make it into a square matrix?
If i am right then.... Tall matrix, if m>n here m= row, n= column Wide matrix, if m<n Square matrix, if m=n So, i think y...

etwa 4 Jahre vor | 0

Beantwortet
my problem is about @.
try it: syms x f=@(x) x.^2 quad(f,0,2)

etwa 4 Jahre vor | 1

Gelöst


Return area of square
Side of square=input=a Area=output=b

etwa 4 Jahre vor

Gelöst


Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

etwa 4 Jahre vor

Gelöst


Add two numbers
Given a and b, return the sum a+b in c.

etwa 4 Jahre vor

Gelöst


Find max
Find the maximum value of a given vector or matrix.

etwa 4 Jahre vor

Gelöst


Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.

etwa 4 Jahre vor

Gelöst


Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

etwa 4 Jahre vor

Gelöst


Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...

etwa 4 Jahre vor

Beantwortet
How can I create a rule to automatically fill blank cells during the table reading with readtable function?
I think you are facing problem in column 2 and you want to replace the empty cell with any string. it can be 'Empty cell' or any...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
choose a part of matrix with an condition
Try this: lamda=1; n=100;m=10; for i=1:n u=rand; t(i)=-log(1-u)./lamda; end aa=min(t);aaa=max(t); alpha=(t-aa...

etwa 4 Jahre vor | 0

Gelöst


Create a vector
Create a vector from 0 to n by intervals of 2.

etwa 4 Jahre vor

Gelöst


Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...

etwa 4 Jahre vor

Gelöst


Inner product of two vectors
Find the inner product of two vectors.

etwa 4 Jahre vor

Gelöst


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

etwa 4 Jahre vor

Gelöst


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

etwa 4 Jahre vor

Gelöst


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

etwa 4 Jahre vor

Beantwortet
what is the meaning of set(gca,'Fontsize',16)
try to plot: a = linspace(0,10,150); b = 2*cos(a); plot(a,b,'Color','r')

etwa 4 Jahre vor | 0

Beantwortet
Break X-axis in Matlab
I think you are looking for this: https://www.mathworks.com/help/matlab/creating_plots/graph-with-multiple-x-axes-and-y-axes.ht...

etwa 4 Jahre vor | 2

| akzeptiert

Beantwortet
How to move title text to front of plot area
this one should work. You have to adjust the position value. x = linspace(0,10,150); y = sin(x); figure(1) plot(x,y,'Color',...

etwa 4 Jahre vor | 0

Beantwortet
operation in matrix in matlab
a=[3 4 2 5 3 5]; expected_value=a(find(a>4)) how_many_times= length(find(a>4)) Or times=length(expected_value)

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
Using a for loop to subplot graph parabolas?
Fucntion part: function y = parabolafx(x,a,b,c) y= a*x.^2+b*x+c; end you need ot initialize the value of b and c. I have i...

etwa 4 Jahre vor | 0

Beantwortet
Create some simple Matlab code that will generate square matrices that have ones above the leading diagonal, and zeros on and below the leading diagonal.
nrows = 4; % number of row ncols = 4; % number of column A = randi([1 10],nrows,ncols); % creating random integer number betwe...

etwa 4 Jahre vor | 0

Beantwortet
Trying to Plot a Function
Try with this: clear; clc; nu=2.65; Density=19.1; MW=235; N=(Density/MW)*6.022*10^23; MicF=1.235*10^-24; MicA=1.335*10^-...

etwa 4 Jahre vor | 0

Mehr laden