답변 있음
can i access field by using values in structure?
S = struct ; S.name = {'Tom' 'Dick' 'Harry'} ; S.sex = {'M' 'M' 'F'} ; S.Age = [16 17 18] ; val = 'F' ; fields = fieldna...

3년 초과 전 | 0

| 수락됨

답변 있음
How do I obtain a scatter plot of the vegetation optical depth (VOD) data in MATLAB?
Let X,Y be our lon and lat data; Z be your VOD data matrix. pcolor(X,Y,Z) colormap(jet) shading interp colorbar

3년 초과 전 | 0

| 수락됨

답변 있음
Represent a vector as ± form
v1 = [86 90 87 89 88]; iwant = [v1-2;v1+2] % first row is v1+2 and second row is v1-2

3년 초과 전 | 0

답변 있음
Unrecognized function or variable 'gammatonegram'. Any reason why this is happening?
It is not a inbuil function. You need to provide the function. A quick google lead me to this link: https://github.com/MuSAELa...

3년 초과 전 | 1

| 수락됨

답변 있음
HOW TO CONVERT FORTRAN CODE TO MATLAB?
The code says it LU decomposition. SEarch in google and file exchange you will get many codesw riteen and submitted. https://i...

3년 초과 전 | 0

| 수락됨

답변 있음
I do not understand why this script {8/2<5*3+1>9} with logical operators gives NO (0)?
8/2<(5*3+1) & (5*3+1)>9

3년 초과 전 | 0

답변 있음
How to write data to text file with the same space before and after values?
You need to proceed like shown below. A = rand(4) ;% Demo matrix [mrows, ncols] = size(A) ; fmt = [repmat('%f ', 1, ncols) '...

3년 초과 전 | 1

| 수락됨

답변 있음
how i can plot orbit of vibration of a rotating shaft with its center
x1=BD(1:10000,1 ) % the vibration vector readings in x direction y1=BD(10001:20000,2) % the vibration vector reading...

3년 초과 전 | 0

답변 있음
How to use quiver correctly?
T = readtable('https://in.mathworks.com/matlabcentral/answers/uploaded_files/1147075/quiver_input.csv') ; WDate = datenum(T.(1)...

3년 초과 전 | 1

답변 있음
time series comparison and grouping similarly behaving time series
REad about plotregression

3년 초과 전 | 1

답변 있음
Plotting a bird using mathematical equation issue.
You need to modify the radius Rk so that, it gives the look. clear; close all; clc; A =@(k) sin((pi*k)./20000); B =@(k) cos((...

3년 초과 전 | 0

| 수락됨

답변 있음
Graph not showing plots
If you want to use loop, you need to use a marker to show up the plot. clear; hold on grid on g=9.8; for m=60:70 y=(14*...

3년 초과 전 | 0

답변 있음
Graph not showing plots
clear; g=9.8; m=60:70 y=(14*35)./(m.*g); plot(m,y) grid on

3년 초과 전 | 0

답변 있음
How do i determine the highest values of my for loop?
x = 3:0.2:9 ; y=(cos(x+1)./(pi*x-1)); [val,idx] = max(y) ; [x(idx) y(idx)]

3년 초과 전 | 0

| 수락됨

답변 있음
Trying to find the value of z for any value of k
Read about subs. Using this, you can substitute the required value of k. You need to convert the result/ syms call into a number...

3년 초과 전 | 0

| 수락됨

답변 있음
I want to use between two values while plotting
a=linspace(0,1,50) ; x=linspace(0,1,50) ; [X,Y] = meshgrid(a,x) ; Z=X.^Y; surf(X,Y,Z)

3년 초과 전 | 0

| 수락됨

답변 있음
I want to only run my loop till 22 but it shoud take odd numbers for x_random and even for y_random
for i=1:22 if mod(i,2)==0 P(2,i) = y_random(i); %y coordinate else P(1,i) = x_random(i); %x coordi...

3년 초과 전 | 1

| 수락됨

답변 있음
Remove white space in plot
Read about axis, xlim, ylim

3년 초과 전 | 0

| 수락됨

답변 있음
How to replace matrix elements by using statements?
It is very simple and straight forward. Consider this example. A = rand(3) ; A(A<0.3) = 0 ; A(A>0.8) = 1 ;

3년 초과 전 | 1

| 수락됨

답변 있음
Extract data along line from gridded data
Read about interp2.

3년 초과 전 | 0

| 수락됨

답변 있음
Implementing Euler's method for a 1D system
h=0.1; x=-5:h:5; y=zeros(size(x)); y(1)=0; for n=1:length(x)-1 dydx=3*x(n).^2+2*x(n)-12; y(n+1)=y(n)+dydx*h; end ...

3년 초과 전 | 0

| 수락됨

답변 있음
Plot of a butterfly using mathematical equations
Don't use loop...instead use scatter. Read about it. clc; clear all ; clear; close all; clc; sin1 =@(k) sin((pi*k)./40000...

3년 초과 전 | 1

| 수락됨

답변 있음
Scatter points with a colormap based on distances
You can use scatter3. x = rand(10,1) ; y = rand(10,1) ; z = rand(10,1) ; d = rand(10,1) ; scatter3(x,y,z,[],d,'filled') ...

3년 초과 전 | 1

| 수락됨

답변 있음
how to calculate and plot rmse matrix
Let O be your observation data array of size mX1 and M be your model data array of size mx40. O = rand(30,1) ; M = rand(30,40...

3년 초과 전 | 0

| 수락됨

답변 있음
How to use gpu for deep learning
Check the trainingOptions, in there you have option to specify the execution environment. Example: options = trainingOpti...

3년 초과 전 | 0

답변 있음
create a function from temperature data
Read about interpft

3년 초과 전 | 0

답변 있음
Finding the highest mountain peak
[val,idx] = max(Z,[],3) ; Get the maximum along third dimension, idx gives you the thirs index where max occurs. Now find the ...

3년 초과 전 | 0

답변 있음
How to wrap image along a polygon
REad about warp

3년 초과 전 | 0

답변 있음
Find the polar representation of (𝑖 − √3 )
Hint: Use abs to find r. Use atan to find the angle. Use sin, cos to get the polar form. x = r*cos(theta) ; y = r*sin(th...

3년 초과 전 | 0

더 보기