Answered
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...

4 years ago | 0

| accepted

Answered
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))...

4 years ago | 0

Answered
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)...

4 years ago | 0

| accepted

Answered
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...

4 years ago | 0

Solved


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...

4 years ago

Answered
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 ...

4 years ago | 1

Answered
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...

4 years ago | 0

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

4 years ago | 1

Solved


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

4 years ago

Solved


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.

4 years ago

Solved


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

4 years ago

Solved


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

4 years ago

Solved


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

4 years ago

Solved


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

4 years ago

Solved


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 ...

4 years ago

Answered
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...

4 years ago | 0

| accepted

Answered
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...

4 years ago | 0

Solved


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

4 years ago

Solved


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 ...

4 years ago

Solved


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

4 years ago

Solved


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

4 years ago

Solved


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...

4 years ago

Solved


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 ...

4 years ago

Answered
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')

4 years ago | 0

Answered
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...

4 years ago | 2

| accepted

Answered
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',...

4 years ago | 0

Answered
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)

4 years ago | 0

| accepted

Answered
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...

4 years ago | 0

Answered
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...

4 years ago | 0

Answered
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^-...

4 years ago | 0

Load more