답변 있음

App designer (excel /database /sheets )

you can directly read/write the excel file with readtable/readmatrix and writetable/writematrix. That works pretty fluently if y...

App designer (excel /database /sheets )

you can directly read/write the excel file with readtable/readmatrix and writetable/writematrix. That works pretty fluently if y...

약 11시간 전 | 0

| 수락됨

답변 있음

finction datestr and writetable

May I ask you to use the "code" function of this website to add your code instead of a picture. It makes it easier for us to cop...

finction datestr and writetable

May I ask you to use the "code" function of this website to add your code instead of a picture. It makes it easier for us to cop...

약 13시간 전 | 1

| 수락됨

답변 있음

How can I remove duplicate values from cell array?

Does the function unique() solve your problem? So in your case, because you have a cell array: S = {1 2 2 3}; S = num2cell(...

How can I remove duplicate values from cell array?

Does the function unique() solve your problem? So in your case, because you have a cell array: S = {1 2 2 3}; S = num2cell(...

3일 전 | 0

| 수락됨

답변 있음

How to password protect an excel file through Matlab?

I recommand you to use the xls_protect_sheets() from MATLAB exchange. It will be easier for you.

How to password protect an excel file through Matlab?

I recommand you to use the xls_protect_sheets() from MATLAB exchange. It will be easier for you.

4일 전 | 0

답변 있음

Why can't i plot a bar figure like this example?

If I transpose life like this: x=[0 5 10 15 20 25] life=[1344 423 133 41 12 3; 939 296 93 29 9 2] L=bar(x,life'); Then I get...

Why can't i plot a bar figure like this example?

If I transpose life like this: x=[0 5 10 15 20 25] life=[1344 423 133 41 12 3; 939 296 93 29 9 2] L=bar(x,life'); Then I get...

7일 전 | 0

답변 있음

Splitting Function into Imaginary and Real

you can use the functions real() and imag() to extract respectively the real and imaginary part of a number. It also accepts vec...

Splitting Function into Imaginary and Real

you can use the functions real() and imag() to extract respectively the real and imaginary part of a number. It also accepts vec...

8일 전 | 0

답변 있음

how to use passing by value and passing by reference

I highly recommend you to check the basic types of MATLAB. There is not such thing as a reference in MATLAB. However, for classe...

how to use passing by value and passing by reference

I highly recommend you to check the basic types of MATLAB. There is not such thing as a reference in MATLAB. However, for classe...

15일 전 | 0

| 수락됨

답변 있음

How to extract information on year when data is in quarterly format

have you thought about using extractBefore() function? For example: function year = extractYear(s) year = str2double(extr...

How to extract information on year when data is in quarterly format

have you thought about using extractBefore() function? For example: function year = extractYear(s) year = str2double(extr...

16일 전 | 0

답변 있음

Interpolation or curve fit data suggestions

I would recommand you to take a look at: 1D data: interp1() griddedinterpolant() 2D data: interp2() griddedinterpolant() ...

Interpolation or curve fit data suggestions

I would recommand you to take a look at: 1D data: interp1() griddedinterpolant() 2D data: interp2() griddedinterpolant() ...

17일 전 | 1

답변 있음

Multiply the complex number 1+8i with its complex conjugate

%code removed Btw, I don't think this website is there to do your homework. I highly recommend you to learn how to you a search...

Multiply the complex number 1+8i with its complex conjugate

%code removed Btw, I don't think this website is there to do your homework. I highly recommend you to learn how to you a search...

20일 전 | 0

답변 있음

Percentage difference in matlab

Hey Sarah, The following code could help you: diff = x2 - x1; % x2 and x1 are your input variables. x1 is reference and x2 the...

Percentage difference in matlab

Hey Sarah, The following code could help you: diff = x2 - x1; % x2 and x1 are your input variables. x1 is reference and x2 the...

23일 전 | 0

답변 있음

How do you determine the average values in second column of an excel data corresponding to a particular range of values in first column ?

For that situation, the easiest way is to select data based on a criteria. For example, if your table is named t: indRows = t(:...

How do you determine the average values in second column of an excel data corresponding to a particular range of values in first column ?

For that situation, the easiest way is to select data based on a criteria. For example, if your table is named t: indRows = t(:...

24일 전 | 0

답변 있음

code to read the data in matfile

Read the matfile documentation. It contains what you want.

code to read the data in matfile

Read the matfile documentation. It contains what you want.

약 1달 전 | 0

| 수락됨

해결됨

Counting Sequence

Given a vector x, find the "counting sequence" y. A counting sequence is formed by "counting" the entries in a given sequence...

약 2달 전

답변 있음

How to link an App-Designer push button to a keyboard key?

Hey, you can implement the callback UIFigureKeyRelease on your UIFigure object. Then, you juste have to implement the code to g...

How to link an App-Designer push button to a keyboard key?

Hey, you can implement the callback UIFigureKeyRelease on your UIFigure object. Then, you juste have to implement the code to g...

약 2달 전 | 0

답변 있음

License hostID does not match license id

Hi Wiliam, the license is connected to your harddrive. So if you copy the content of your harddrive on a new one, you have to d...

License hostID does not match license id

Hi Wiliam, the license is connected to your harddrive. So if you copy the content of your harddrive on a new one, you have to d...

약 2달 전 | 0

| 수락됨

답변 있음

How to call a python program from matlabr2019a

Hey Saugata, you should follow this guide from mathworks: Undefined variable "py" or function "py.command" It helps you to ens...

How to call a python program from matlabr2019a

Hey Saugata, you should follow this guide from mathworks: Undefined variable "py" or function "py.command" It helps you to ens...

약 2달 전 | 0

답변 있음

rename the image name

Hey, I think, the commands that could help you are the following: movefile('src', 'dest'); % move a file, you can even...

rename the image name

Hey, I think, the commands that could help you are the following: movefile('src', 'dest'); % move a file, you can even...

약 2달 전 | 0

답변 있음

Finding index location in volume?

Hi, for your case, I would write your code like that: x = 2000:0.5:2004; y = 45000:0.3:45009; z = 10:0.2:12; % no need to u...

Finding index location in volume?

Hi, for your case, I would write your code like that: x = 2000:0.5:2004; y = 45000:0.3:45009; z = 10:0.2:12; % no need to u...

약 2달 전 | 1

답변 있음

Bilinear interpolation of gridded data

Hi, may I recommand you to take a look at the function griddedInterpolant to solve your case? It will be definitely faster than...

Bilinear interpolation of gridded data

Hi, may I recommand you to take a look at the function griddedInterpolant to solve your case? It will be definitely faster than...

2달 전 | 0

답변 있음

How to split merged signals

Hello Anna, I am not very familiar with the merge block, but apparently, you cannot put a scope on the signals you are gonna me...

How to split merged signals

Hello Anna, I am not very familiar with the merge block, but apparently, you cannot put a scope on the signals you are gonna me...

2달 전 | 0

답변 있음

how to do Serial and Parrarell computing, multiple simulink models in a loop?

Hi Mona, I would recommend you to take a look at the parsim command. Its documentation is very well done and give multiple exam...

how to do Serial and Parrarell computing, multiple simulink models in a loop?

Hi Mona, I would recommend you to take a look at the parsim command. Its documentation is very well done and give multiple exam...

2달 전 | 0

답변 있음

Problem with diff operating on a row vector from regionprops

Hi Jason, I tried the following code: MM = [53742.57, 18435.82, 49121.64, 54437.08]; y = diff(MM); I get the following answ...

Problem with diff operating on a row vector from regionprops

Hi Jason, I tried the following code: MM = [53742.57, 18435.82, 49121.64, 54437.08]; y = diff(MM); I get the following answ...

2달 전 | 0

| 수락됨

답변 있음

Complex number math problems

Complex numbers work literally like all other numbers in MATLAB. The only interesting things are how you create them: z1 = 1 + ...

Complex number math problems

Complex numbers work literally like all other numbers in MATLAB. The only interesting things are how you create them: z1 = 1 + ...

2달 전 | 1

| 수락됨

해결됨

Tic Tac Toe FTW

Given a tic tac toe board: * 1 represents X * 0 represents empty. * -1 represents O It is X's move. If there is an imme...

2달 전

답변 있음

Dealing with wrong input

Okay, then I would use the exception catching method: str = ''; num = NaN; while isnan(num) try num = input('Pl...

Dealing with wrong input

Okay, then I would use the exception catching method: str = ''; num = NaN; while isnan(num) try num = input('Pl...

2달 전 | 0

답변 있음

How can i find cumulative mean inside a for loop?

Hi, For your situation, you should consider that . So they are 2 situations: All vectors have the same size Vectors can have ...

How can i find cumulative mean inside a for loop?

Hi, For your situation, you should consider that . So they are 2 situations: All vectors have the same size Vectors can have ...

2달 전 | 0

| 수락됨

답변 있음

How to save tables to different sheets in one xlsx file?

Have you done a step-by-step execution of your code to be sure that there are multiple files read? Looking at it like that, I w...

How to save tables to different sheets in one xlsx file?

Have you done a step-by-step execution of your code to be sure that there are multiple files read? Looking at it like that, I w...

2달 전 | 0

| 수락됨

답변 있음

Program output is correct but not plotting anything

Hi Griffin, please in future, post your code into the post. It makes the life of others easier than having to read it into a fi...

Program output is correct but not plotting anything

Hi Griffin, please in future, post your code into the post. It makes the life of others easier than having to read it into a fi...

3달 전 | 0

| 수락됨

답변 있음

open large csv file

Hi Asad, have you considered using readcell or readtable depending of what you need for data type? You can configure it to defi...

open large csv file

Hi Asad, have you considered using readcell or readtable depending of what you need for data type? You can configure it to defi...

3달 전 | 0