Answered
How can I convert my 3 columns data to a .raw image file so that I can read it as an image?
Let A be your matrix of three columns. x = A(:,1) ; y = A(:,2) ; z = A(:,3) ; %%structured xi = unique(x) ; yi = unique(y)...

5 years ago | 1

Answered
3 D plot with three input and one output
Matrix= [ 9 3 4 324880.4 7 4 4 278983.1 5 5 3 256614.1 5 6 2 245502.9 4 7 1 240079.1 4...

5 years ago | 0

Answered
Creating depth specific contours from bathymetry data
You can save the file in the .nc format. MATLAB has functions like ncdisp to view the conntents of nc file and ncread to load th...

5 years ago | 0

| accepted

Answered
How to print numbers 1 to 4 and add all numbers to a one array?
Read about fprintf and sum.

5 years ago | 0

Answered
How to denote the node numbers , when the co-ordinates of all nodes are known?
Refer: https://in.mathworks.com/matlabcentral/fileexchange/44670-mesh-a-plate-with-hole https://in.mathworks.com/matlabcentr...

5 years ago | 0

Answered
How can I see which version of Matlab I run?
Type version. version

5 years ago | 1

Answered
How can I extract the same variable from multiple files & concatenate them efficiently?
You can make a 3D matrix if each file's data is same. You can make them a cell araay if each file's data is different. % To st...

5 years ago | 0

Answered
How to remove empty cells from array
If C is your cell array, you can remove the empty cells using: C = C(~cellfun('isempty',C)) ;

5 years ago | 3

Answered
How to make a new table from two different table with common value?
Let T1 and T2 be your tables having two columnn each. idx = ismember(T.(1),T.(2)) ; T1 = T1(idx,:) ; T1.(3) = T2.(2) ;

5 years ago | 0

Answered
How to get all the solution of a function?
Refer this, you need to provide close approximate solution value to get both the solutions. https://in.mathworks.com/matlabcen...

5 years ago | 0

Answered
fitting different regressions for cyclic data
Read about polyfit. This will fit you striaght line/ curve for a given data (x,y).

5 years ago | 0

Answered
How to find a particular value of a grid resolution from satellite data?
To get the resolution, you need to find the difference between sucessive latitudes and longitudes. Read about unique and diff fu...

5 years ago | 0

Answered
reshape() error in the function created by matlabFunction()
Read the documentation of reshape and understand it. The error is clear, you are trying to create extra elements than present in...

5 years ago | 0

Answered
Determine if a point is over land or water
Download GEBCO bathymetry data.... https://www.gebco.net/data_and_products/gridded_bathymetry_data/ For a given lon, lat; use ...

5 years ago | 0

| accepted

Answered
Surface plot using surf() and mesh grid
You can use interp2, imresize to resize your desired matrices into required dimensions. Let Omega be your matrix of size 12*74...

5 years ago | 1

| accepted

Answered
How to adjust x-axis in a plot?
To limit axes read about xlim, ylim, axis. To put up your required lables on the axis read about xticklabel and yticklabel.

5 years ago | 1

Answered
How I can run two different functions at the same time ?
https://in.mathworks.com/matlabcentral/answers/318764-how-to-run-two-matlab-scripts-in-parallel

5 years ago | 0

Answered
Input matrix contains NaN or Inf: how to solve it?
Check why you are getting NaN/ inf. Mostly you will get when you 0/0, 1/0. Also if your value goes beyong the floating-point rep...

5 years ago | 0

Answered
Count the number of times a word appears?
A = {'fishX' ; 'fishY' ; 'fishZ' ; 'fishX' ; 'fishX' } ; B = [3 ; 3 ; 2 ; 2 ; 2] ...

5 years ago | 0

Answered
Show Names of Variables in Plot
Read about the function text. With this you can place text any where on the plot. x = 1:10 ; y = x.^2 ; plot(x,y) ; hold on...

5 years ago | 0

| accepted

Answered
Error meassge while using wavread and audioread
Try treplacing this line: wav_file = char(strcat(dir_path,file_name_array(k),'0',num2str(i))); with wav_file = [dir_path,file...

5 years ago | 1

Answered
how do you do matrix calculation
A = C*b

5 years ago | 0

Answered
Why should we write x(i,1)=cos(theta(1,i) in this format while using the for loop?
x = zeros(n+1,1) ; for i=1:n+1 x(i)=R*cos(Theta_n(i) You can very much write like you shown. But keep in mind that the varia...

5 years ago | 1

| accepted

Answered
How to copy excel specific cell data in matlab ?
Read the Excel file data using readtable. And then extract your required data using indexing.

5 years ago | 0

| accepted

Answered
How to create random number between (0....1]?
Read about rand. iwant = rand(1,10)

5 years ago | 1

Answered
How to get X and Y points (or function(s)) from a plotted line
yData = smooth(q3_base) ; % Interpolation m = 100 ; % change this for required number of points xi = linspace(min(xData)...

5 years ago | 0

| accepted

Answered
How to get line in the traced point of the GRABIT function dynamically?
Check the line in the function where it is plotting the picked point. The picked points should be stored in some array in the ...

5 years ago | 0

Answered
Area for contour plot - object oriented
Read about polyarea. You got (X,Y) coordinates of contour.

5 years ago | 0

Answered
Need help for Renaming Matlab Image png
thepath =' '; % give the path of the folder imgNames =dir( fullfile(thepath, '*.png') ); for img = 1 : numel(imgNames ) ...

5 years ago | 0

Answered
How can I create a surface plot (with height in Z) from X-Y coordinates and Z as a matrix?
load('mymatrix.mat') ; surf(mymatrix) ; shading interp colorbar

5 years ago | 0

Load more