답변 있음
HOW Plot the Cubic Spline together with the data points (1; 0:5), (2; 1=3), (3; 0:25) and (4; 0:2)?
Since the data in your question is not so clear, I am taking an example to clear your doubts. x = [1:10]; y=randi(1...

7년 초과 전 | 1

답변 있음
How to solve second diffrential equation that look like this ?
Hi Nora Khaled, refer these links: <https://www.mathworks.com/help/symbolic/solve-a-single-differential-equation.html> <ht...

7년 초과 전 | 1

답변 있음
How can I get a noise free binary image? Specifically, what type of filters do I need to use to reduce noise?
I hope these links help you. <https://in.mathworks.com/matlabcentral/answers/56974-how-to-reduce-noise-in-image#answer_68932>...

7년 초과 전 | 1

| 수락됨

질문


Activity list is not updating
From the last 15 hours, I have contributed in term of comments and answers. But I am neither getting mail for the updates not it...

7년 초과 전 | 답변 수: 2 | 1

2

답변

답변 있음
what does it mean by index exceed matrics dimension
"index exceed matrix dimension" means that the index which you are trying of extract from matrix is out of the size of matrix. ...

7년 초과 전 | 2

답변 있음
how to take average with specific condition and write to excel file again ?
clc clear A=xlsread('testM.xls'); AA=A(:,2:end); AAA=squeeze(nanmean(reshape(AA,4,[],6),1)) xlswrite('testM.xls...

7년 초과 전 | 2

| 수락됨

답변 있음
How can I store fitdist output as a variable in a matrix please?
Since you have not provided the data, I am taking random data to run loops. clc clear for i=1:200 pd = fitdist...

7년 초과 전 | 2

| 수락됨

답변 있음
3D surface plots
I have made few modifications. In your program, you are not saving the output of P for each diameter and gear ratio. clear ...

7년 초과 전 | 4

| 수락됨

답변 있음
How do I create a new matrix based on elements from a previous matrix?
depth=[1 2 3 4 5 6 7 8] year=[2007 1960 1915 1871 1828 1785 1735 1680] depth2=[3 4 5 7 8] year2=arrayfun(@(x) year(de...

7년 초과 전 | 2

| 수락됨

답변 있음
How to write a .txt file in this way?
name={'pre','post','shift'} A={rand(1,12),rand(1,12),rand(1,12)} %taking a random data for pre, post and shift for kk=1:...

7년 초과 전 | 3

답변 있음
how to use cell array in stateflow?
Param1 = {1,2,3,4,5,6,7,8,9,10}; B1=arrayfun(@(x) num2str(x) , cell2mat(Param1),'uni',0) Param2 = {7,6,5,4,3,2,1}; B2...

7년 초과 전 | 2

| 수락됨

답변 있음
How to write an output text file in a tabular form in matlab??
X= [0.22, 0.3456,0.5567]' ; Y= [0.1123,1.9823,1.2345]' ; Z= [0.34,0.332,0.897]' ; AA=[X Y Z] B=arrayfun(@(x) n...

7년 초과 전 | 2

답변 있음
How to make a crop image with a white color result ?
Do you want white space or not any space over cropped area. Refer this. Since you have not pasted the original image, I am tak...

7년 초과 전 | 3

| 수락됨

답변 있음
How to write Output text file in Tabular format in matlab??
I am taking a random data to give you an example. A=rand(1,61); B=rand(1,61); C=rand(1,61); AA=[A' B' C'] dlmwr...

7년 초과 전 | 2

답변 있음
excel data into a single columns using loop
What do you mean by equal spacing between each column. You cannot keep blank any element in matrix. You can do in cell. Here is ...

7년 초과 전 | 2

| 수락됨

답변 있음
sir, can you please help me to convert this python code into matlab
Commented lines are the python code and uncommented lines are the matlab codes. There are few python functions which you have us...

7년 초과 전 | 2

| 수락됨

답변 있음
Apply a mask of smaller size onto an image of a larger size
Just crop the data itself before using imshow. clc clear RGB=imread('f010.png'); subplot(1,2,1) imshow(RGB) ...

7년 초과 전 | 3

답변 있음
How to write a MATLAB program which calculates the exact values for the geometric series?
a=1; %first term r=1/7; n=5; %number of values in geometric series s = a*r.^(0:n-1) If you want sum, then write ...

7년 초과 전 | 3

| 수락됨

답변 있음
help with griddata (interpolate 2D data)
Since you have not uploaded any data set, I am taking an example to resolve your issue. lon=[65:95]; lat=[0:35]; ...

7년 초과 전 | 2

답변 있음
How collect three different .mat files in one .mat file?
Just load the data. Once you can see all the variables in workspace, just write save('file.mat')

7년 초과 전 | 2

답변 있음
How to plot graph x,y for text file
A=load('test.txt'); plot(A(:,1),A(:,2))

7년 초과 전 | 5

| 수락됨

답변 있음
Choosing not number elements from matrix to use in title figures and plots
isletter gives the logical values where ever the letter is in your string. Use this is extract only letters and put this as titl...

7년 초과 전 | 3

| 수락됨

답변 있음
i have a matlab code for feature extraction, how i apply this code to all my dataset in a file .without applying it one at atime.
F=dir('*.nc') % write extension for i =1:length(F) % write your commands. call the filename as F(i).name F(i).name ...

7년 초과 전 | 2

| 수락됨

답변 있음
How to read multi three dimensions netcdf files in a loop and append their third dimensions?
Store it in fourth dimension "the size of each file in 21 x 23 x 248" for ii = 1:length(files) my_new_matrix(:,:,:,...

7년 초과 전 | 2

| 수락됨

답변 있음
i want to store 3 attributes in 3 columns of excel sheet and 10 times
f1='13_1_1'; f2='13_1_2'; a=0; A={f1,f2,a} xlswrite('sample.xlsx',A,'sheet1 ','A1') You can easily put th...

7년 초과 전 | 3

답변 있음
second-degree linear system
Firstly make all equation equal to 0. Write this in a function and save this as as first.m function F = first(x) F(1)=...

7년 초과 전 | 2

답변 있음
append data in excel sheet
Just write the cell name at the time of using xlswrite A=rand(6,12)+10 %random data xlswrite('sample.xlsx',A,'sheet na...

7년 초과 전 | 2

답변 있음
How to get rid of empty space and unit in my output
Merge both two columns into one and then write into text file. See this example. column1={'A','B','C','D','E','F','G',...

7년 초과 전 | 2

답변 있음
plz explain the code
contour_thres = 0.005; asssigning the value in contour_thres thres_func = @(x) (x<contour_thres); creating a an...

7년 초과 전 | 3

| 수락됨

더 보기