Risolto


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 ...

oltre 10 anni fa

Risolto


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...

oltre 10 anni fa

Risposto
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...

oltre 10 anni fa | 4

| accettato

Risposto
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 ...

oltre 10 anni fa | 0

| accettato

Risposto
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...

oltre 10 anni fa | 0

Risposto
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...

oltre 10 anni fa | 0

Risposto
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...

oltre 10 anni fa | 0

| accettato

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

oltre 10 anni fa | 0

| accettato

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

oltre 10 anni fa | 1

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

oltre 10 anni fa | 1

Risposto
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.

oltre 10 anni fa | 0

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

oltre 10 anni fa | 0

Risposto
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; ...

oltre 10 anni fa | 0

| accettato

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

oltre 10 anni fa | 0

Risposto
increment values which are larger than three
a = find(A>3); A(a) = A(a)+1;

oltre 10 anni fa | 1

Risposto
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 ...

oltre 10 anni fa | 0

Risolto


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...

oltre 10 anni fa

Risolto


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...

oltre 10 anni fa

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

oltre 10 anni fa | 1

Risposto
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 ...

oltre 10 anni fa | 0

Risolto


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....

oltre 10 anni fa

Risolto


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

oltre 10 anni fa

Risposto
operation using *.m file
make hthresh.m and sthresh.m as function files function val1 = hthresh() function val2 = sthresh() and us...

oltre 10 anni fa | 0

| accettato

Risposto
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 ...

oltre 10 anni fa | 0

Risolto


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

oltre 10 anni fa

Risolto


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

oltre 10 anni fa

Risolto


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

oltre 10 anni fa

Risolto


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

oltre 10 anni fa

Risolto


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

oltre 10 anni fa

Risolto


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

oltre 10 anni fa

Carica altro