解決済み


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

10年弱 前

解決済み


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

10年弱 前

回答済み
Is it possible to insert in a legend a calculated variable?
for eg: z = 1; %loop1 data1 = [1:10];% data obtained in loop1 z = 2.5; %loop2 data2 = [1:2.5:25];% d...

10年弱 前 | 4

| 採用済み

回答済み
How can i save after each loop the variable in the same vector?
Hi Chris. Its better to maintain a vector of the results instead of writing into a text file and again loading it. If you want ...

10年弱 前 | 0

| 採用済み

回答済み
How can i import data from ms access in matlab
Try this link. <http://www.mathworks.com/matlabcentral/answers/6471 Interface with MS Access> <http://www.mathworks.in/matlab...

10年弱 前 | 0

回答済み
how to set the stop time in the scope of simulink
Hi Stanley, Have you tried un-checking the history option in the scope.PFA image <</matlabcentral/answers/uploaded_files/111...

10年弱 前 | 0

回答済み
Create matrix 64x64 using Matlab Simulink
Hi Maximum,, the error is .. input signal to reshape is a signal of [61 x 1] where as the reshape block needs a matrix of [4096...

10年弱 前 | 0

| 採用済み

回答済み
Simulink function block to multiply a signal with -1 if its negative
find the attached logic <</matlabcentral/answers/uploaded_files/10866/simulinklogic.png>>

10年弱 前 | 0

| 採用済み

回答済み
search in data structure type
<http://www.mathworks.in/matlabcentral/fileexchange/29808-structfind Struct Find> I hope this will help you.

10年弱 前 | 1

回答済み
how to get the length of text in matlab?
str = 'sandy sorathiya ' len = length(str);%length of the string

10年弱 前 | 1

回答済み
How can I use variable of one M-file into other M-file ?
you can make functions and pass as arguments or u can declare them as global.

10年弱 前 | 0

回答済み
is it possible to make a dialog box from excel file?
yes... [~,str1] = xlsread('xlsname.xls','SheetNam','A1:B1'); msgbox(char(str1)))

10年弱 前 | 0

回答済み
copy pasting rows of a file to columns of other file
clear all; clc; fp1 = fopen('f1.ap','r'); i = 1; while(~feof(fp1)) mat{i,:}= fgetl(fp1); i = i+1; ...

10年弱 前 | 0

| 採用済み

回答済み
what is the difference between ert.tlc model and idelink_ert.tlc model?
<http://www.mathworks.in/products/embedded-coder/description3.html Selecting Targets>

10年弱 前 | 0

回答済み
increment values which are larger than three
a = find(A>3); A(a) = A(a)+1;

10年弱 前 | 1

回答済み
cell2mat not working when cell array of type char has numbers of different lengths
In the second case the B{1} has 12 characters where as B{2} has only 11 characters . this is making an inconsistent matrix when ...

10年弱 前 | 0

解決済み


Remove any row in which a NaN appears
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

10年弱 前

解決済み


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

10年弱 前

回答済み
initialize set of sequence variables in a loop
Ti = [1:5]; is this what you are looking for?

10年弱 前 | 1

回答済み
call a function within another function
I guess you want to have two function within same m file. function fun_one() fun_two();%this is another function ...

10年弱 前 | 0

解決済み


Length of the hypotenuse
Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<http://upload....

10年弱 前

解決済み


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

10年弱 前

回答済み
operation using *.m file
make hthresh.m and sthresh.m as function files function val1 = hthresh() function val2 = sthresh() and us...

10年弱 前 | 0

| 採用済み

回答済み
Simulink display block as stateflow output
Display block can be used only to see the latest output.but if you want to see how the output varies over a period of time then ...

10年弱 前 | 0

解決済み


Is the input divisible by 3?
Return true if the input is divisible by 3 and false if not.

約10年 前

解決済み


Return area of square
Side of square=input=a Area=output=b

約10年 前

解決済み


Find max
Find the maximum value of a given vector or matrix.

約10年 前

解決済み


Is it a number?
Determine if input is numeric. If it is,output is 1; if it is not, output is 0.

約10年 前

解決済み


Add two numbers
Calculate the sum of two numbers. Example input = [2 3] output = 5

約10年 前

解決済み


Determine Whether an array is empty
Input a matrix x, output y is TRUE if x is empty, otherwise FALSE.

約10年 前

さらに読み込む