Answered
how to append three text files together in a new text file ?
% REad file1 fid = fopen(file1,'rt') ; % edited as suggested by Stephen Cobeldick S1 = textscan(fid,'%s','delimiter','\n') ;...

8 years ago | 0

| accepted

Answered
Please help me to remove "/" from following Data.
S = '-FC4F/-FE2C/-F9D5/-FDA0/05A7/0390/0079/04C0/-FA87/006C/-F978/-FA2E/-FF62/-F899/06CE/-FEA0/0686/0570' ; idx = strfind(S,'...

8 years ago | 0

| accepted

Answered
How to highlight a row in a surface plot?
[X,Y,Z] = peaks(100) ; % seperate here (pick some row randomly) idx = randsample(100,1) ; figure hold on surf(X,Y,Z) ; ...

8 years ago | 2

| accepted

Answered
solving variable in exponential equation
syms y a r t eqn = y == a * ((exp((r*t)))); S = solve(eqn,t) ; a = 600; r = .10; y = 600; S = subs(S,a) ; S = subs...

8 years ago | 0

Answered
Scatter plot of data based on speed and load
Read about Scatter, griddata, scatteredinterpolant ..to plot a contour straight away from scattered data, you can use the below ...

8 years ago | 0

Answered
How to solve the error using plot stating color value must be a 3 element vector.
Note that the color which you speicfy should be a RGB color code......so it should be a 1X3 vector......YOu can check the below:...

8 years ago | 0

| accepted

Answered
Imagesc for triangular element
YOu can straight away plot contour with your data. Have a look in the following file exchange function: https://in.mathworks.com...

8 years ago | 1

| accepted

Answered
function instead of grid data without Interpolation
x=[1,8,2,8]; y=[2,3,0,9]; z=[80,30,30,40]; [X,Y]=meshgrid(x,y) ; F = scatteredInterpolant(x',y',z') ; Z = F(X,Y) ; u=t...

8 years ago | 0

Answered
how to create a 2D shell element
YOu may refer these: https://in.mathworks.com/matlabcentral/fileexchange/31788-the-plane-stress-problem https://in.mathwor...

8 years ago | 0

| accepted

Answered
Overwriting specific line in a text file and data export
file1 = 'FLUX FACTORS.txt' ; file2 = 'HISTORY.txt' ; % REad file1 fid = fopen(file1,'r') ; S1 = textscan(fid,'%s','delimite...

8 years ago | 0

| accepted

Answered
How to colour contour temperature data over its lat and lon?
Let lon,lat,Z be your data M = 100 ; N = 100 ; xi = linspace(min(lon),max(lon),M) ; yi = linspace(min(lat),max(lat),N) ; ...

8 years ago | 0

Answered
Program that separates even and odd numbers and shows them in two vectors.
A = magic(5) ; A = A(:) ; idx = mod(A,2)==0 ; E = A(idx) ; % Even numbers O = A(~idx) ; % Odd numbers

8 years ago | 1

Answered
Why is there no plot on my figure?
YOu are generating only a point data with the functions.....So you have to use a marker. Try: semilogx(h,a(t(N,r(N),h),g),...

8 years ago | 0

Answered
Save long symbolic variable as .txt
Let x be your symbolic variable. fid = fopen('test.txt', 'wt'); fprintf(fid, '%s\n', char(x)); fclose(fid);

8 years ago | 0

| accepted

Answered
Hi, Myself planning to do project for hotspot detection using thermal image processing.where do i start?
YOu need to have images for that in the first place. Images are read in MATLAB using imread Once read, they are displayed us...

8 years ago | 0

Answered
how to code in matlab struct form
Read about pdist and pdist2. If you have coordinates(x1,y1) and (x2,y2) you may straight away use distance formula: d = sqrt(...

8 years ago | 0

| accepted

Answered
How i can extract a variable x,y coordinates , to polygone shape file?
REad about shapewrite https://in.mathworks.com/help/map/ref/shapewrite.html

8 years ago | 0

| accepted

Answered
Non-uniform axis spacing in a plot
Do interpolation....read about interp1 A = [0.5,0.65,0.7,0.66,0.81] ; B = [5,10,20,100,1000] ; plot(B,A,'*r') hold on B...

8 years ago | 0

Answered
to remove zero elements from n number matrices
Let A be your matrix...to remove rows with all zeros use: A(~any(A,2),:) = []

8 years ago | 0

Answered
feature extraction of Raman spectrum finger print
You have to pick the peak (x,y) values.....there are four peaks..so you will get respective peaks (x,y) i.e wavelength and ampli...

8 years ago | 0

| accepted

Answered
3D plotting and interpolation
surf(X,Y,Z) ; Read about surf

8 years ago | 0

| accepted

Answered
I keep on getting index matrix exceeds dimensions. Kindly assist. Thank you.
You have entered Northing and EAsting as an empty value i.e []. So the error. You have to enter some value to aovid error.

8 years ago | 0

| accepted

Answered
How to find the file position in mathlab
files = dir('*.h5') ; filenames = {files(:).name} ; f = '3DIMG_02DEC2017_0530_L2G_AOD.h5' ; idx = find(strcmp(filenames,f))

8 years ago | 0

| accepted

Answered
Extraction of individual matrix from cell array
Praveen Kumar Ramani it is a bad idea to save each cell into individual matrix.....infact you need not to do it. It is waste of ...

8 years ago | 1

Answered
How can I export a matrix as a geotiff file?
Let A be your matrix and (xmin,xmax) be your xlimits and (ymin,ymax) be your y limits. % Get geo referenced R = georasterref...

8 years ago | 1

| accepted

Answered
Conditionally Swap the entries of an aray
O = [11 12 13 21 14 22 23 31 25 24 32 33 34] ; O1 = O ; for i =1:length(O)-1 v1 = flo...

8 years ago | 0

| accepted

Answered
How to speed up my code
I think almost all the codes up there are vectorised......you can striaght away use a matrix and specify the dimension i.e you w...

8 years ago | 0

Answered
How do I find similar columns in a matrix?
You can have a llok on ismember, ismemebrtol. Also you can use isequal for logical check whether the lements matching exactly. Y...

8 years ago | 0

Answered
How to save a figure through each run of a for loop?
load('BR_PD10_SRTT_pwr_M1.mat') for m= 1:6 itc_delta=itc_trial{m}; itc_delta=itc_delta(2,:,:); itc_delta=squ...

8 years ago | 2

Answered
call fortran code from matlab
If the code is pretty simple..convert the Fortran code to MATLAB and use....else you should explore the option of mex files. ...

8 years ago | 0

| accepted

Load more