Answered
how to export cell array to excel
Lets say "cell_data" is cell array [r c]=size(cell_data); sheet_num=1; for i=1:r for j=1:c data=cell_data{i,j}; xlswrite('...

5 years ago | 0

| accepted

Answered
How to find the number of human population when the year is 2012?
As the y and n defined within the function, hence it is not requred to consier as input arguments. function sol= polyreg(x) y...

5 years ago | 0

Answered
How to scale up image using imresize
result=imresize(input_image,[128,128]); % 'bicubic' is default If you are specific on up/down sampling method ( Interpolation m...

5 years ago | 0

Answered
How to solve this problem?
This? data=rand(1,10); %Exampe data min_val=min(data); max_val=max(data); norm_data=(data-min_val)/(max_val-min_val)

5 years ago | 0

Answered
clear one plot in multiple (hold) figure
x = 1:0.01:25; y = sin(x); n = numel(x); %figure; for i = 1:n h=plot(x(i),y(i),'+r'); xlim([0 25]); ylim([-1....

5 years ago | 1

| accepted

Answered
Changing size (3D to 4D)
data=rand(10000,40,40); result=reshape(data,[10000,40,40,1]); Is there any sense? data (10000,40,40) might considering same fo...

5 years ago | 0

Answered
Matrix Dimension Must Agree
Please change in the following line, having permisible matrix dimention to works perfectly Cep=k*kron(A,A)+2*M*(B-1/3*(kron(A,...

5 years ago | 0

Answered
Plot Graph with different b Values
b = [1/4, 1/2, 1, 2]; r=1:0.01:5; % Example Define r, array data for i=1:length(b) M=1./((1-r.^2).^2+b(i)^2*r.^2); ...

5 years ago | 0

| accepted

Answered
How do I write something to run this function?
crc32(data); %......^?? You have to pass the input arguments (data) as mentioned in the function code. e.g. >>data=[1:18]; %...

5 years ago | 1

| accepted

Answered
How to remove outliers without using filter?
Use diff function, more details result=diff(data); You will get a large variation in such cases (Use threshold to get the ind...

5 years ago | 0

| accepted

Answered
Average of 3d matrix
#One Way m=cumsum([0,31,28,31,30,31,30,31,31,30,31,30,31]); data=rand(61,57,365); %Sample Data month_ave=zeros(1,12) for i=1...

5 years ago | 0

| accepted

Answered
Create an RGB image from an elevation array.
Lets suppose 'data' is the the elevation data set data= randi([-5,5],[50,50]); % Example %....................^the array may h...

5 years ago | 1

Answered
Signal to Interference plus Noise Ratio
You can search in google, this is Antenna directionality related question right? More than 20dB> Excellent Good 13 to 19 Fai...

5 years ago | 0

Answered
How to make the estimation error and average it correctly?
It seems the code considering the mean error for the last experiment iteration. You may same the E of all experiment and later g...

5 years ago | 1

Answered
Help! I'm getting NaN + NaNi values...
Till TIME_LOOP=5, its perfectly works. The code is so lengthy, it quite difficult to bebug. Please check carefully. The main iss...

5 years ago | 0

Answered
Readmatrix skipping first few lines of Excel sheet
Yes, there is no numeric data avaliabe in the initials rows (rows 1 to 6), please check the file. Same for column also.

5 years ago | 0

Answered
How to write the name of Objects in the image after recognition of them.
#Modified prop = regionprops('table',bw,{'Area','centroid'}); % Modified here......^ Dollor1=0; Dollor2=0; for i=1:n i...

5 years ago | 0

| accepted

Answered
How to assume an unknown value?
If x will be a single value (scalar), it does not need to be defined as initialization. But you can start it as zero, later X ca...

5 years ago | 0

| accepted

Answered
Not enough input arguments.
Yes, what repmat suppose to do here, repmat(A,n) returns an array containing n copies of A in the row and column dimensions. May...

5 years ago | 0

| accepted

Answered
make it to numbers
vpa here

5 years ago | 0

| accepted

Answered
Please give me a solution to this problem. I can't get result number this matlab
As per the file attached, RN return to following with all values "1" >> whos RN Name Size Bytes Class ...

5 years ago | 0

| accepted

Answered
How to insert an array into a matrix?
In the it read the two cell elements from the excel file lon = xlsread('datatrial.xlsx','A1:A2'); Hence the resultant "lon" wi...

5 years ago | 0

Answered
Is there a function Is_array in matlab ?
No, there is no "Is_array" inbuilt function in MATLAB, there is "isvector" inbuilt function isvector(data) returns logical 1 (t...

5 years ago | 0

| accepted

Answered
Counting the number of elements of a matrix with reporting what those numbers are(which number have been counted how many times)!
M= [134, 175, 134, 1700, 134, 134, 175, 134, 175]; First_Result_Matrix=unique(M) Second_Result_Matrix=zeros(1,length(result1))...

5 years ago | 0

Answered
how to add lables of X axis in boxplot
Please avoid "." in the variable name, it represents the structure. As you have defined the each data as indivisual box, it ...

5 years ago | 0

| accepted

Answered
Finding closest value in data table
Hints: data=[0.52299 0.000237 1.04598 0.041598 1.56897 0.005755 2.09196 0.012987 2.614949 0.009894 3.137939 0.050168 3.6...

5 years ago | 0

| accepted

Answered
For Loops with Multiple Arrays
r=1:1:100; z=1:1:50; H=50; z1=10; z=?? % Define z, I assumed it as a scalar (single value) syms m p=vpa(symsum(sin((m*pi*...

5 years ago | 0

Answered
Why am I getting this error? Error using horzcat Dimensions of arrays being concatenated are not consistent. Error in flow1d2phase (line 59) subplot(3,1,2); plot([xSw_rf xt_shock max(xSw_all)], ...
Here is the issue- plot([xSw_rf xt_shock max(xSw_all)], [Sw_rf Sw0 Sw0].... See details >> whos xSw_rf Name Size ...

5 years ago | 0

Answered
Lung Segmentation Image Issue
The example shown with "3-D MRI chest scan data", might be you have tried with single image 2-D data.

5 years ago | 0

Answered
Error: the surface Z must contain more than one row or column.
MATLAB Docs: The function meshc(X,Y,Z) plots the values in matrix Z as heights above a grid in the x-y plane defined by X and Y....

5 years ago | 1

| accepted

Load more