Plot last point of column

14 Tage ago | 0

Dot Product of Rows in array
iwant = sum(A.*B,2) ;

15 Tage ago | 0

Unable to perform assignment because the size of the left side is 111-by-1 and the size of the right side is 112-by-1.
The error is siimple, you are trying to save more number of elements than the array is initialized for. A = zeros(2,3) ; % ...

15 Tage ago | 1

| accepted

3D plotting of given parametric equations
m = 50 ; n = 50 ; p = 5 ; u = linspace(0,pi,m) ; v = linspace(0,2*pi,n) ; r = linspace(25,75,p) ; [U,V,R] = meshgrid(u,v,r...

15 Tage ago | 0

| accepted

16 Tage ago | 0

how to count how many time rows of an matrix apear in other matrix
Read about ismember A = [1 1 3; 1 2 7; 1 3 5]; B = [1 1 3; 2 1 4; 1 3 5; 2 4 5]; [c,ia] = ismemb...

16 Tage ago | 0

| accepted

Numerical problem in MATLAB (data precision)
Read about format format long But this is not an issue, don't worry.

16 Tage ago | 0

| accepted

errors with quiver!
spacing = 0.2; [X,Y] = meshgrid(-2:spacing:2); Z = X.*exp(-X.^2 - Y.^2); [DX,DY] = gradient(Z); quiver(X,Y,DX,DY) hold on ...

17 Tage ago | 0

Unable to plot inequality region
r = -5:0.01:5; [ki, kd] = meshgrid(r); cond = -9*ki>0 & 10*ki - 10*kd + 10>0 & 360*kd - 24*ki + 1320>0; % My 3 inequality c...

18 Tage ago | 1

| accepted

19 Tage ago | 0

calculate intensity of a part of images
imgs = dir('*.jpg') ; % give the image extension N = length(imgs) ; % Number of images iwant = cell(N,1) ; % save th...

19 Tage ago | 0

I want to get the values of a,b,c,d when T =1 as an example
a= 24:1:26; b= 24:1:26; c=24:1:26; d=24:1:26; [a,b,c,d] = ndgrid(a,b,c,d) ; a = a(:) ; b = b(:) ; c = c(:) ; d = d(:) ...

20 Tage ago | 0

| accepted

Compares characters within strings
letter1 = input("Please enter a string: ",'s'); letter2 = input("Please enter a string: ",'s'); count = 0 ; for i = 1:3 ...

20 Tage ago | 0

How to plot multiple 3D matrices

20 Tage ago | 0

| accepted

How to determine the start time and the end time of the signal

20 Tage ago | 0

Unable to perform assignment because the size of the left side is 625-by-1 and the size of the right side is 1875-by-1
Better save them into an cell array. circle_folder = 'C:\Users\MyPC\Documents\CR\start\circle'; name_circle = dir(fullfile(c...

21 Tage ago | 1

Expected Shortfall for asset returns
[rownum, columnum] = size(Ret); store = zeros(1,columnum) CVaR = cell(columnum,1) ; for i = 1:columnum ind(i) = find(Re...

21 Tage ago | 0

Query regarding Quiver plot
Get the components first and then use quiver. u = amplitude.*cos(direction) ; % be cautious of units of direction/ angle v ...

21 Tage ago | 0

legend id not showing my data
Try this: figure() hold on title ('HRF time series of a voxel with strong correlation from slice number #', num2s...

21 Tage ago | 0

Meshing a surface in space into triangles
You may explore this option: https://www.gibboncode.org/html/HELP_tri3_tri6.html

21 Tage ago | 0

| accepted

Find curve intersection points in lat lon between rivers and satellite traces on a map
Try this: https://in.mathworks.com/matlabcentral/fileexchange/22441-curve-intersections

21 Tage ago | 0

| accepted

Sign minus, not hyphen
str = 'UTF−16:2212' ; figure title(str)

21 Tage ago | 0

Create real colorbar pictures
You can make your colormap using the RGB color code values. Check the below example. y = [255 255 0]/255 ; % yello RGB value w...

21 Tage ago | 0

Create a range of values ​​of the desired length
iwant = linspace(16,42,8)

21 Tage ago | 0

| accepted

How to average out the drifting circle?
You may consider using: https://in.mathworks.com/matlabcentral/fileexchange/3215-fit_ellipse

21 Tage ago | 0

| accepted

Loop of two variables
A=100 ; P=100:1000 ; Pc=1076 ; Tc=400 ; T=100:1000 ;% [P,T] = meshgrid(P,T) ; pr = P/Pc ; tr = T/Tc ; p = pr+tr ; ...

21 Tage ago | 0

Plotting issue where the curve is missing
w=linspace(-5,-0.01) ; s=100; O = zeros(size(w)) ; for i=1:s F = (exp(-1.863*10^-2)+w(i).^(-2)*exp(-1.9*10^-4)-2*w...

21 Tage ago | 0

| accepted