回答済み
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

| 採用済み

さらに読み込む