Answered
Plot last point of column
T = readtable('https://in.mathworks.com/matlabcentral/answers/uploaded_files/1040940/zch4.txt') ; A = table2array(T) ; [r,c] =...

14 Tage ago | 0

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

15 Tage ago | 0

Answered
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

Answered
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

Answered
reading in excel data with a specific heading
REad about readtable

16 Tage ago | 0

Answered
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

Answered
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

Answered
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

Answered
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

Answered
Loading a .csv file that contains units
Read about readtable

19 Tage ago | 0

Answered
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

Answered
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

Answered
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

Answered
How to plot multiple 3D matrices
Read about slice

20 Tage ago | 0

| accepted

Answered
How to determine the start time and the end time of the signal
T = readtable('https://in.mathworks.com/matlabcentral/answers/uploaded_files/1033920/signal.csv') ; t = T.(1) ; x = T.(2) ; i...

20 Tage ago | 0

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

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

21 Tage ago | 0

Answered
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

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

21 Tage ago | 0

| accepted

Answered
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

Answered
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

Answered
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

Answered
Invalid data format for digital channel. Data must be of double or logical type and contain values of 0 or 1.
The error is simple. Indexing of array in MATLAB should be positive integers or logicals. A = rand(5,1) ; A(1) % no error ...

22 Tage ago | 0

Answered
How do you plot a circular colour map for just one variable?
Z = randi(20,25) ; [m,n] = size(Z) ; r = linspace(0,1,n) ; th = linspace(0,2*pi,m) ; [R,T] = meshgrid(r,th) ; X = R.*co...

22 Tage ago | 0

Load more